Class: EndMenu

Inherits:
GGLib::StateObject show all
Defined in:
lib/examples/FadeIn.rb

Overview

The menu we will fade to

Instance Method Summary collapse

Methods inherited from GGLib::StateObject

#button_down, #button_up, #draw, #end, #onEnd, #onTerminate, #start, #update, #window

Instance Method Details

#onStartObject



33
34
35
36
# File 'lib/examples/FadeIn.rb', line 33

def onStart
  $window.setBackground("img/bg.png")
  GGLib::ThemeButton.new("button1", "Fade Back", 270, 200, Proc.new{ |widget| $window.state = GGLib::FadeScreen.new(StartMenu.new, 2) })
end