Class: GamesAndRpgParadise::MainWindow
- Inherits:
-
Gosu::Window
show all
- Defined in:
- lib/games_and_rpg_paradise/gui/gosu/books/main_window.rb
Instance Method Summary
collapse
#gosu_button_down?, #image, #image10?, #image1?, #image2?, #image3?, #image4?, #image5?, #image6?, #image7?, #image8?, #image9?, #on_left_arrow_pressed?, #on_right_arrow_pressed?, #q_means_quit, #reset, #set_font, #set_title, #sqrt, #tab_key?, #write_this_text
Constructor Details
13
14
15
16
17
|
# File 'lib/games_and_rpg_paradise/gui/gosu/books/main_window.rb', line 13
def initialize
Window << super(800,608,nil,40)
self.caption = 'KBookPages'
@scene = SceneKBookPages.new(1)
end
|
Instance Method Details
19
20
21
|
# File 'lib/games_and_rpg_paradise/gui/gosu/books/main_window.rb', line 19
def button_down(id)
@scene.button_down(id)
end
|
23
|
# File 'lib/games_and_rpg_paradise/gui/gosu/books/main_window.rb', line 23
def button_down?(id) @scene.button_down?(id) end
|
22
|
# File 'lib/games_and_rpg_paradise/gui/gosu/books/main_window.rb', line 22
def button_up(id) @scene.button_up(id) end
|
#draw ⇒ Object
28
29
30
|
# File 'lib/games_and_rpg_paradise/gui/gosu/books/main_window.rb', line 28
def draw
@scene.draw
end
|
#update ⇒ Object
25
26
27
|
# File 'lib/games_and_rpg_paradise/gui/gosu/books/main_window.rb', line 25
def update
@scene.update
end
|