Change interface management (see commit notes).

This commit is contained in:
Major- committed 2013-11-03 19:16:51 +00:00
1 parent e6bf527dff
commit 43c5a23851
18 files changed
+171 -128

No files matched your search

+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