Skip to content

Instantly share code, notes, and snippets.

@roolo
Last active August 29, 2015 14:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save roolo/0a8201ee2aecebc60060 to your computer and use it in GitHub Desktop.
Save roolo/0a8201ee2aecebc60060 to your computer and use it in GitHub Desktop.
Do it once!
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