Anim Editor: added FoeFlip property, Space to play, S to swap sides, P to show/hide property lines for selected particle

This commit is contained in:
Maruno17
2024-04-18 22:35:15 +01:00
parent 15033d6114
commit 4480def33c
23 changed files with 264 additions and 161 deletions

View File

@@ -58,7 +58,7 @@ class AnimationEditor
ret = btn[0]
break
end
ret = :cancel if Input.trigger?(Input::BACK)
ret = :cancel if Input.triggerex?(:ESCAPE)
break if ret
buttons.each { |btn| btn[1].repaint }
end
@@ -110,7 +110,7 @@ class AnimationEditor
end
anim_properties.clear_changed
end
break if !anim_properties.busy? && Input.trigger?(Input::BACK)
break if !anim_properties.busy? && Input.triggerex?(:ESCAPE)
anim_properties.repaint
end
# Dispose and return
@@ -242,10 +242,13 @@ class AnimationEditor
end
graphic_chooser.clear_changed
end
ret = selected if !graphic_chooser.busy? && Input.trigger?(Input::BACK)
break if ret
graphic_chooser.repaint
end
if !graphic_chooser.busy? && Input.triggerex?(:ESCAPE)
ret = selected
break
end
end
# Dispose and return
bg_bitmap.dispose
@@ -315,13 +318,14 @@ class AnimationEditor
end
audio_chooser.clear_changed
end
if !audio_chooser.busy? && Input.trigger?(Input::BACK)
ret = selected
cance = true
end
break if ret
audio_chooser.repaint
end
if !audio_chooser.busy? && Input.triggerex?(:ESCAPE)
ret = selected
cancel = true
break
end
end
vol = (cancel) ? volume : audio_chooser.get_control(:volume).value
ptch = (cancel) ? pitch : audio_chooser.get_control(:pitch).value
@@ -332,5 +336,4 @@ class AnimationEditor
audio_chooser.visible = false
return [ret, vol, ptch]
end
end