Class: UI::TitleControls

Inherits:
SpriteStack show all
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

SpriteStack::NO_INITIAL_IMAGE

Instance Attribute Summary collapse

Attributes inherited from SpriteStack

#animated, #data, #moving, #stack, #viewport, #x, #y

Instance Method Summary collapse

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(viewport)
end

Instance Attribute Details

#credit_bgSprite (readonly)

Get the credit bg button

Returns:



125
126
127
# File 'docs/4_Systems_001_Title.rb', line 125

def credit_bg
  @credit_bg
end

#indexInteger

Get the index of the selection

Returns:

  • (Integer)


119
120
121
# File 'docs/4_Systems_001_Title.rb', line 119

def index
  @index
end

#play_bgSprite (readonly)

Get the play bg button

Returns:



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

Returns:

  • (Boolean)


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