Class: BattleUI::SkillChoice::MoveButton
- Inherits:
-
UI::SpriteStack
- Object
- UI::SpriteStack
- BattleUI::SkillChoice::MoveButton
- Defined in:
- docs/5_Battle_01_Scene.rb
Overview
Button of a move
Constant Summary
Constants inherited from UI::SpriteStack
UI::SpriteStack::NO_INITIAL_IMAGE
Instance Attribute Summary collapse
-
#index ⇒ Integer
readonly
Get the index.
Attributes inherited from UI::SpriteStack
#animated, #data, #moving, #stack, #viewport, #x, #y
Instance Method Summary collapse
-
#data=(pokemon)
Set the data.
-
#initialize(viewport, index) ⇒ MoveButton
constructor
Create a new Move button.
-
#visible=(visible)
Make sure sprite is visible only if the data is right.
Methods inherited from UI::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) ⇒ MoveButton
Create a new Move button
1416 1417 |
# File 'docs/5_Battle_01_Scene.rb', line 1416 def initialize(, index) end |
Instance Attribute Details
#index ⇒ Integer (readonly)
Get the index
1412 1413 1414 |
# File 'docs/5_Battle_01_Scene.rb', line 1412 def index @index end |
Instance Method Details
#data=(pokemon)
Set the data
1420 1421 |
# File 'docs/5_Battle_01_Scene.rb', line 1420 def data=(pokemon) end |
#visible=(visible)
Make sure sprite is visible only if the data is right
1424 1425 |
# File 'docs/5_Battle_01_Scene.rb', line 1424 def visible=(visible) end |