Class: UI::ContestSkillChoice::ContestMoveButton
- Inherits:
-
SpriteStack
- Object
- SpriteStack
- UI::ContestSkillChoice::ContestMoveButton
- Defined in:
- docs/6_Contest_01_Scene.rb
Overview
Button of a move
Constant Summary
Constants inherited from SpriteStack
Instance Attribute Summary collapse
-
#index ⇒ Integer
readonly
Get the index of the button.
Attributes inherited from SpriteStack
#animated, #data, #font_id, #moving, #stack, #viewport, #x, #y
Instance Method Summary collapse
-
#data=(creature)
Set the data.
-
#initialize(viewport, index) ⇒ ContestMoveButton
constructor
Create a new Move button.
-
#visible=(visible)
Make sure sprite is visible only if the data is right.
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, #update_animation, #update_position, #visible, #with_cache, #with_font, #with_surface, #z, #z=
Constructor Details
#initialize(viewport, index) ⇒ ContestMoveButton
Create a new Move button
239 240 |
# File 'docs/6_Contest_01_Scene.rb', line 239 def initialize(, index) end |
Instance Attribute Details
#index ⇒ Integer (readonly)
Get the index of the button
235 236 237 |
# File 'docs/6_Contest_01_Scene.rb', line 235 def index @index end |
Instance Method Details
#data=(creature)
Set the data
243 244 |
# File 'docs/6_Contest_01_Scene.rb', line 243 def data=(creature) end |
#visible=(visible)
Make sure sprite is visible only if the data is right
247 248 |
# File 'docs/6_Contest_01_Scene.rb', line 247 def visible=(visible) end |