Stopped U-turn switching if the battle is over, ensured animation spritesheet file extensions are removed from animation data, added Debug function to reload system cache, Pokémon debug menu now shows the Pokémon's status problem, changed mkxp.json to fix uncommon rendering problems

This commit is contained in:
Maruno17
2021-07-10 19:23:56 +01:00
parent 16a11d314f
commit 4b98850c3a
5 changed files with 24 additions and 8 deletions

View File

@@ -47,8 +47,9 @@ def pbSelectAnim(canvas,animwin)
ctlwin.update
bmpwin.hue=ctlwin.value(0) if ctlwin.changed?(0)
if Input.trigger?(Input::USE) && animfiles.length>0
bitmap=AnimatedBitmap.new("Graphics/Animations/"+cmdwin.commands[cmdwin.index],ctlwin.value(0)).deanimate
canvas.animation.graphic=cmdwin.commands[cmdwin.index]
filename = cmdwin.commands[cmdwin.index]
bitmap=AnimatedBitmap.new("Graphics/Animations/" + filename, ctlwin.value(0)).deanimate
canvas.animation.graphic = File.basename(filename, ".png")
canvas.animation.hue=ctlwin.value(0)
canvas.animbitmap=bitmap
animwin.animbitmap=bitmap