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

@@ -457,6 +457,7 @@ class AnimationEditor
break
end
end
break if Input.triggerex?(:SPACE)
break if anim_player.finished?
end
anim_player.dispose
@@ -741,6 +742,15 @@ class AnimationEditor
end
end
def update_input
if Input.triggerex?(:S)
@settings[:user_opposes] = !@settings[:user_opposes]
refresh
elsif Input.triggerex?(:SPACE)
@ready_to_play = true
end
end
def update
old_keyframe = keyframe
old_particle_index = particle_index
@@ -769,6 +779,7 @@ class AnimationEditor
break
end
end
update_input
end
#-----------------------------------------------------------------------------