Class: UI::Summary_Skill
- Inherits:
-
SpriteStack
- Object
- SpriteStack
- UI::Summary_Skill
- Defined in:
- docs/4_Systems_102_Party.rb
Overview
UI part displaying a Skill in the Summary_Skills UI
Direct Known Subclasses
Constant Summary collapse
- FINAL_COORDINATES =
Array describing the various coordinates of the skills in the UI
[[28, 138], [174, 138], [28, 170], [174, 170]]
- SELECTED_COLOR =
Color when it’s selected
Color.new(0, 200, 0, 255)
- NO_SELECT_COLOR =
Color when it’s not selected
Color.new(0, 0, 0, 0)
Constants inherited from SpriteStack
UI::SpriteStack::NO_INITIAL_IMAGE
Instance Attribute Summary collapse
-
#moving ⇒ Boolean
If the move is currently being moved.
-
#selected ⇒ Boolean
If the move is currently selected.
Attributes inherited from SpriteStack
#animated, #data, #stack, #viewport, #x, #y
Instance Method Summary collapse
-
#data=(skill)
Set the skill data.
-
#initialize(viewport, index) ⇒ Summary_Skill
constructor
Create a new skill.
-
#visible ⇒ Boolean
Get the visibility of the sprite.
-
#visible=(value)
Set the visibility of the sprite.
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, #with_cache, #with_font, #with_surface, #z, #z=
Constructor Details
#initialize(viewport, index) ⇒ Summary_Skill
Create a new skill
272 273 |
# File 'docs/4_Systems_102_Party.rb', line 272 def initialize(, index) end |
Instance Attribute Details
#moving ⇒ Boolean
Returns if the move is currently being moved.
268 269 270 |
# File 'docs/4_Systems_102_Party.rb', line 268 def moving @moving end |
#selected ⇒ Boolean
Returns if the move is currently selected.
266 267 268 |
# File 'docs/4_Systems_102_Party.rb', line 266 def selected @selected end |
Instance Method Details
#data=(skill)
Set the skill data
276 277 |
# File 'docs/4_Systems_102_Party.rb', line 276 def data=(skill) end |
#visible ⇒ Boolean
Get the visibility of the sprite
284 285 |
# File 'docs/4_Systems_102_Party.rb', line 284 def visible end |
#visible=(value)
Set the visibility of the sprite
280 281 |
# File 'docs/4_Systems_102_Party.rb', line 280 def visible=(value) end |