Class: BattleUI::SkillChoice::SpecialButton

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

Overview

Element showing a special button

Constant Summary

Constants inherited from UI::SpriteStack

UI::SpriteStack::NO_INITIAL_IMAGE

Instance Attribute Summary

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, scene, type) ⇒ SpecialButton

Create a new special button

Parameters:



1443
1444
# File 'docs/01600_Alpha_25_Battle_Engine_00001_Battle_Scene.rb', line 1443

def initialize(viewport, scene, type)
end

Instance Method Details

#data=(pokemon)

Set the data of the button

Parameters:



1447
1448
# File 'docs/01600_Alpha_25_Battle_Engine_00001_Battle_Scene.rb', line 1447

def data=(pokemon)
end

#refresh(mega = false)

Update the special button content

Parameters:

  • mega (Boolean) (defaults to: false)


1451
1452
# File 'docs/01600_Alpha_25_Battle_Engine_00001_Battle_Scene.rb', line 1451

def refresh(mega = false)
end

#visible=(visible)

Set the visibility of the button

Parameters:

  • visible (Boolean)


1455
1456
# File 'docs/01600_Alpha_25_Battle_Engine_00001_Battle_Scene.rb', line 1455

def visible=(visible)
end