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, #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.
126 127 |
# File 'docs/4_Systems_001_Title.rb', line 126 def initialize() end |
Instance Attribute Details
#credit_bg ⇒ Sprite (readonly)
Get the credit bg button
125 126 127 |
# File 'docs/4_Systems_001_Title.rb', line 125 def credit_bg @credit_bg end |
#index ⇒ Integer
Get the index of the selection
119 120 121 |
# File 'docs/4_Systems_001_Title.rb', line 119 def index @index end |
#play_bg ⇒ Sprite (readonly)
Get the play bg button
122 123 124 |
# File 'docs/4_Systems_001_Title.rb', line 122 def play_bg @play_bg end |
Instance Method Details
#done? ⇒ Boolean
Tell if the controls are done transitionning
137 138 |
# File 'docs/4_Systems_001_Title.rb', line 137 def done? end |
#update
Update the animation
133 134 |
# File 'docs/4_Systems_001_Title.rb', line 133 def update end |