Class: UI::TitleControls

Inherits:
SpriteStack show all
Defined in:
docs/01450_Systems_00001_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.



125
126
# File 'docs/01450_Systems_00001_Title.rb', line 125

def initialize(viewport)
end

Instance Attribute Details

#credit_bgSprite (readonly)

Get the credit bg button

Returns:



124
125
126
# File 'docs/01450_Systems_00001_Title.rb', line 124

def credit_bg
  @credit_bg
end

#indexInteger

Get the index of the selection

Returns:

  • (Integer)


118
119
120
# File 'docs/01450_Systems_00001_Title.rb', line 118

def index
  @index
end

#play_bgSprite (readonly)

Get the play bg button

Returns:



121
122
123
# File 'docs/01450_Systems_00001_Title.rb', line 121

def play_bg
  @play_bg
end

Instance Method Details

#done?Boolean

Tell if the controls are done transitionning

Returns:

  • (Boolean)


136
137
# File 'docs/01450_Systems_00001_Title.rb', line 136

def done?
end

#update

Update the animation



132
133
# File 'docs/01450_Systems_00001_Title.rb', line 132

def update
end