Class: BattleUI::SkillChoice::MoveButton

Inherits:
UI::SpriteStack show all
Defined in:
docs/01600_Alpha_25_Battle_Engine_00001_Battle_Scene.rb

Overview

Button of a move

Constant Summary

Constants inherited from UI::SpriteStack

UI::SpriteStack::NO_INITIAL_IMAGE

Instance Attribute Summary collapse

Attributes inherited from UI::SpriteStack

#animated, #data, #moving, #stack, #viewport, #x, #y

Instance Method Summary collapse

Methods inherited from UI::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, index) ⇒ MoveButton

Create a new Move button

Parameters:



1387
1388
# File 'docs/01600_Alpha_25_Battle_Engine_00001_Battle_Scene.rb', line 1387

def initialize(viewport, index)
end

Instance Attribute Details

#indexInteger (readonly)

Get the index

Returns:

  • (Integer)


1383
1384
1385
# File 'docs/01600_Alpha_25_Battle_Engine_00001_Battle_Scene.rb', line 1383

def index
  @index
end

Instance Method Details

#data=(pokemon)

Set the data

Parameters:



1391
1392
# File 'docs/01600_Alpha_25_Battle_Engine_00001_Battle_Scene.rb', line 1391

def data=(pokemon)
end

#visible=(visible)

Make sure sprite is visible only if the data is right

Parameters:

  • visible (Boolean)


1395
1396
# File 'docs/01600_Alpha_25_Battle_Engine_00001_Battle_Scene.rb', line 1395

def visible=(visible)
end