Class: UI::MoveTeaching::NewSkill

Inherits:
SpriteStack show all
Defined in:
docs/4_Systems_301_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, #font_id, #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:



87
88
# File 'docs/4_Systems_301_MoveTeaching.rb', line 87

def initialize(viewport, index)
end

Instance Attribute Details

#selected ⇒ Boolean

Returns if the move is currently selected.

Returns:

  • (Boolean) —

    if the move is currently selected



83
84
85
# File 'docs/4_Systems_301_MoveTeaching.rb', line 83

def selected
  @selected
end

Instance Method Details

#data=(skill)

Set the skill data

Parameters:



91
92
# File 'docs/4_Systems_301_MoveTeaching.rb', line 91

def data=(skill)
end

#visible ⇒ Boolean

Get the visibility of the sprite

Returns:

  • (Boolean)


99
100
# File 'docs/4_Systems_301_MoveTeaching.rb', line 99

def visible
end

#visible=(value)

Set the visibility of the sprite

Parameters:

  • value (Boolean) —

    new visibility



95
96
# File 'docs/4_Systems_301_MoveTeaching.rb', line 95

def visible=(value)
end