Class: GGLib::MenuBase
- Inherits:
-
StateObject
- Object
- StateObject
- GGLib::MenuBase
- Defined in:
- lib/state.rb
Instance Method Summary collapse
Methods inherited from StateObject
#button_up, #draw, #end, #onEnd, #onStart, #onTerminate, #start, #update, #window
Instance Method Details
#button_down(id) ⇒ Object
54 55 56 57 58 59 60 |
# File 'lib/state.rb', line 54 def (id) #if id == Gosu::Button::KbEscape # close if id == Gosu::Button::MsLeft mouse($window.mouse_x,$window.mouse_y) end end |
#mouse(x, y) ⇒ Object
61 62 63 |
# File 'lib/state.rb', line 61 def mouse(x,y) #does nothing by default end |