Last active
August 29, 2015 14:19
-
-
Save roolo/0a8201ee2aecebc60060 to your computer and use it in GitHub Desktop.
Do it once!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unless defined? @already | |
UI.menu("Plugins").add_item("Draw stairs") { | |
UI.messagebox("I'm about to draw stairs!") | |
# Call our new method. | |
draw_stairs | |
} | |
UI.menu("Plugins").add_item("Reload stairs") { | |
load 'stairs.rb' | |
} | |
@already = true | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment