Class: UI::Summary_Skill

Inherits:
SpriteStack show all
Defined in:
docs/01450_Systems_00102_Party.rb

Overview

UI part displaying a Skill in the Summary_Skills UI

Direct Known Subclasses

Remind_Skill

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

Attributes inherited from SpriteStack

#animated, #data, #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, #update_animation, #update_position, #with_cache, #with_font, #with_surface, #z, #z=

Constructor Details

#initialize(viewport, index) ⇒ Summary_Skill

Create a new skill

Parameters:

  • viewport (Viewport)
  • index (Integer)

    index of the skill in the UI



262
263
# File 'docs/01450_Systems_00102_Party.rb', line 262

def initialize(viewport, index)
end

Instance Attribute Details

#movingBoolean

Returns if the move is currently being moved.

Returns:

  • (Boolean)

    if the move is currently being moved



258
259
260
# File 'docs/01450_Systems_00102_Party.rb', line 258

def moving
  @moving
end

#selectedBoolean

Returns if the move is currently selected.

Returns:

  • (Boolean)

    if the move is currently selected



256
257
258
# File 'docs/01450_Systems_00102_Party.rb', line 256

def selected
  @selected
end

Instance Method Details

#data=(skill)

Set the skill data

Parameters:



266
267
# File 'docs/01450_Systems_00102_Party.rb', line 266

def data=(skill)
end

#visibleBoolean

Get the visibility of the sprite

Returns:

  • (Boolean)


274
275
# File 'docs/01450_Systems_00102_Party.rb', line 274

def visible
end

#visible=(value)

Set the visibility of the sprite

Parameters:

  • value (Boolean)

    new visibility



270
271
# File 'docs/01450_Systems_00102_Party.rb', line 270

def visible=(value)
end