Change interface management (see commit notes).

This commit is contained in:
Major-
2013-11-03 19:16:51 +00:00
parent e6bf527dff
commit 43c5a23851
18 changed files with 171 additions and 128 deletions
+2 -9
View File
@@ -2,16 +2,9 @@ WALK_BUTTON_ID = 152
RUN_BUTTON_ID = 153
on :button, WALK_BUTTON_ID do |player|
player.running = false
player.toggle_running
end
on :button, RUN_BUTTON_ID do |player|
player.running = true
end
on :command, :run do |player, command|
running = player.is_running
player.running = !running
player.send_message(running ? "You are now running." : "You are no longer running.")
player.toggle_running
end