Class: UI::TitleControls
- Inherits:
-
SpriteStack
- Object
- SpriteStack
- UI::TitleControls
- Defined in:
- docs/4_Systems_001_Title.rb
Overview
UI component showing the controls of the title screen (Play / Credits)
Constant Summary
Constants inherited from SpriteStack
Instance Attribute Summary collapse
-
#credit_bg ⇒ Sprite
readonly
Get the credit bg button.
-
#index ⇒ Integer
Get the index of the selection.
-
#play_bg ⇒ Sprite
readonly
Get the play bg button.
Attributes inherited from SpriteStack
#animated, #data, #font_id, #moving, #stack, #viewport, #x, #y
Instance Method Summary collapse
-
#done? ⇒ Boolean
Tell if the controls are done transitionning.
-
#initialize(viewport) ⇒ TitleControls
constructor
A new instance of TitleControls.
-
#update
Update the animation.
Methods inherited from SpriteStack
#[], #add_background, #add_line, #add_text, #anime, #anime_delta_set, #dispose, #each, #execute_anime, #move, #move_to, #opacity, #opacity=, #push, #push_sprite, #set_origin, #set_position, #simple_mouse_in?, #size, #stop_animation, #translate_mouse_coords, #update_animation, #update_position, #visible, #visible=, #with_cache, #with_font, #with_surface, #z, #z=
Constructor Details
#initialize(viewport) ⇒ TitleControls
Returns a new instance of TitleControls.
131 132 |
# File 'docs/4_Systems_001_Title.rb', line 131 def initialize() end |
Instance Attribute Details
#credit_bg ⇒ Sprite (readonly)
Get the credit bg button
130 131 132 |
# File 'docs/4_Systems_001_Title.rb', line 130 def credit_bg @credit_bg end |
#index ⇒ Integer
Get the index of the selection
124 125 126 |
# File 'docs/4_Systems_001_Title.rb', line 124 def index @index end |
#play_bg ⇒ Sprite (readonly)
Get the play bg button
127 128 129 |
# File 'docs/4_Systems_001_Title.rb', line 127 def play_bg @play_bg end |
Instance Method Details
#done? ⇒ Boolean
Tell if the controls are done transitionning
142 143 |
# File 'docs/4_Systems_001_Title.rb', line 142 def done? end |
#update
Update the animation
138 139 |
# File 'docs/4_Systems_001_Title.rb', line 138 def update end |