Class: UI::PSDKMenuButton
- Inherits:
-
SpriteStack
- Object
- SpriteStack
- UI::PSDKMenuButton
- Defined in:
- docs/4_Systems_100_Menu.rb
Overview
Button that is shown in the main menu
Constant Summary collapse
- BASIC_COORDINATE =
Basic coordinate of the button on screen
[192, 16]
- OFFSET_COORDINATE =
Offset between each button
[0, 24]
- SELECT_POSITION_OFFSET =
Offset between selected position and unselected position
[-6, 0]
- TEXT_MESSAGES =
List of text message to send in order to get the right text
[[:text_get, 14, 1], [:text_get, 14, 0], [:text_get, 14, 2], [:text_get, 14, 3], [:text_get, 14, 5], [:text_get, 14, 4], [:ext_text, 9000, 26], [:text_get, 14, 2]]
- ANGLE_VARIATION =
Angle variation of the icon in one direction
15
Constants inherited from SpriteStack
Instance Attribute Summary collapse
-
#selected ⇒ Boolean
Selected.
Attributes inherited from SpriteStack
#animated, #data, #moving, #stack, #viewport, #x, #y
Instance Method Summary collapse
-
#initialize(viewport, real_index, positional_index) ⇒ PSDKMenuButton
constructor
Create a new PSDKMenuButton.
-
#update
Update the button 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, real_index, positional_index) ⇒ PSDKMenuButton
Create a new PSDKMenuButton
119 120 |
# File 'docs/4_Systems_100_Menu.rb', line 119 def initialize(, real_index, positional_index) end |
Instance Attribute Details
#selected ⇒ Boolean
Returns selected.
114 115 116 |
# File 'docs/4_Systems_100_Menu.rb', line 114 def selected @selected end |
Instance Method Details
#update
Update the button animation
122 123 |
# File 'docs/4_Systems_100_Menu.rb', line 122 def update end |