You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (sys.FileSystem.exists(Paths.modsImages(imageInputText.text)) ||sys.FileSystem.exists('assets/shared/images/'+imageInputText.text))
675
-
{
676
-
char.imageFile=imageInputText.text;
677
-
reloadCharacterImage();
678
-
if(char.animation.curAnim!=null) {
679
-
char.playAnim(char.animation.curAnim.name, true);
680
-
}
681
-
} else {
682
-
trace ("mods/"+Paths.currentModDirectory+'/images/'+imageInputText.text+".png or assets/shared/images/"+imageInputText.text+".png couldn't be found!");
683
-
CoolUtil.coolError("The image/XML you tried to load couldn't be found!\nEither it doesn't exist, or the name doesn't match with the one you're putting?", "JS Engine Anti-Crash Tool");
674
+
char.imageFile=imageInputText.text;
675
+
reloadCharacterImage();
676
+
if(char.animation.curAnim!=null) {
677
+
char.playAnim(char.animation.curAnim.name, true);
684
678
}
685
679
});
686
680
@@ -1153,7 +1147,7 @@ class CharacterEditorState extends MusicBeatState
@@ -1171,6 +1165,9 @@ class CharacterEditorState extends MusicBeatState
1171
1165
}
1172
1166
}
1173
1167
char.frames=charFrames;
1168
+
} else {
1169
+
trace ("The png file the game looked for wasn't found!");
1170
+
CoolUtil.coolError("The image/XML/Atlas files you tried to load couldn't be found!\nEither it doesn't exist, or the name doesn't match with the one you're putting?", "JS Engine Anti-Crash Tool");
0 commit comments