Class: UI::MoveTeaching::NewSkill

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

Overview

UI part displaying the new skill informations in the Skill Learn scene

Constant Summary

Constants inherited from SpriteStack

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, #with_cache, #with_font, #with_surface, #z, #z=

Constructor Details

#initialize(viewport, index) ⇒ NewSkill

Create informations of the new skill to learn

Parameters:



86
87
# File 'docs/01450_Systems_00301_MoveTeaching.rb', line 86

def initialize(viewport, index)
end

Instance Attribute Details

#selectedBoolean

Returns if the move is currently selected.

Returns:

  • (Boolean)

    if the move is currently selected



82
83
84
# File 'docs/01450_Systems_00301_MoveTeaching.rb', line 82

def selected
  @selected
end

Instance Method Details

#data=(skill)

Set the skill data

Parameters:



90
91
# File 'docs/01450_Systems_00301_MoveTeaching.rb', line 90

def data=(skill)
end

#visibleBoolean

Get the visibility of the sprite

Returns:

  • (Boolean)


98
99
# File 'docs/01450_Systems_00301_MoveTeaching.rb', line 98

def visible
end

#visible=(value)

Set the visibility of the sprite

Parameters:

  • value (Boolean)

    new visibility



94
95
# File 'docs/01450_Systems_00301_MoveTeaching.rb', line 94

def visible=(value)
end