Class | GGLib::StateObject |
In: |
gglib/state.rb
|
Parent: | Object |
A StaticScreen is a menu. It suspends the game and redirects all input to itself. StaticScreen is typically used through derivation, although it can be used otherwise. StaticScreen#start suspends the game and starts the menu. StaticScreen#end returns to the game.
This method is called when the static screen is uninitialized. It is ment to be overridden in derived classes. This is a good place to preform tasks such as stopping audio. Widgets are automatically destroyed on exit by the base class StaticScreen