Class: ConsoleDemoState
- Inherits:
-
GGLib::StateObject
- Object
- GGLib::StateObject
- ConsoleDemoState
- Defined in:
- lib/examples/ConsoleDemo.rb
Instance Method Summary collapse
Methods inherited from GGLib::StateObject
#button_down, #button_up, #draw, #end, #onEnd, #onTerminate, #start, #update, #window
Instance Method Details
#onStart ⇒ Object
20 21 22 23 |
# File 'lib/examples/ConsoleDemo.rb', line 20 def onStart $window.setBackground("img/bg.png") GGLib::Button.new("button2", "Open Console", 270, 200, Proc.new{ || GGLib::DebugConsole.new }, GGLib::Themes::BlueSteel) end |