Class: UI::Summary_Skills

Inherits:
SpriteStack show all
Defined in:
docs/4_Systems_102_Party.rb

Overview

UI part displaying the Skills of the Pokemon in the Summary

Direct Known Subclasses

Summary_Remind

Constant Summary

Constants inherited from SpriteStack

UI::SpriteStack::NO_INITIAL_IMAGE

Instance Attribute Summary collapse

Attributes inherited from SpriteStack

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

Constructor Details

#initialize(viewport) ⇒ Summary_Skills

Create a new Skills UI for the summary

Parameters:



208
209
# File 'docs/4_Systems_102_Party.rb', line 208

def initialize(viewport)
end

Instance Attribute Details

#indexInteger

Returns The index of the move.

Returns:

  • (Integer)

    The index of the move



203
204
205
# File 'docs/4_Systems_102_Party.rb', line 203

def index
  @index
end

#skillsArray<UI::Summary_Skill> (readonly)

Returns The skills.

Returns:



205
206
207
# File 'docs/4_Systems_102_Party.rb', line 205

def skills
  @skills
end

Instance Method Details

#data=(pokemon)

Set the data of the UI

Parameters:



212
213
# File 'docs/4_Systems_102_Party.rb', line 212

def data=(pokemon)
end

#visible=(value)

Set the visibility of the UI

Parameters:

  • value (Boolean)

    new visibility



216
217
# File 'docs/4_Systems_102_Party.rb', line 216

def visible=(value)
end