Class: UI::TitleControls

Inherits:
SpriteStack show all
Defined in:
scripts/01450 Systems/00001 Title/00002 UI_Title/00001 TitleControls.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.

Instance Attribute Details

#credit_bgSprite (readonly)

Get the credit bg button

Returns:

#indexInteger

Get the index of the selection

Returns:

#play_bgSprite (readonly)

Get the play bg button

Returns:

Instance Method Details

#done?Boolean

Tell if the controls are done transitionning

Returns:

  • (Boolean)

#update

Update the animation