Class: UI::DexButton
- Inherits:
-
SpriteStack
- Object
- SpriteStack
- UI::DexButton
- Defined in:
- docs/4_Systems_101_Dex.rb
Overview
Dex sprite that show the Pokemon infos
Constant Summary
Constants inherited from SpriteStack
Instance Attribute Summary
Attributes inherited from SpriteStack
#animated, #data, #moving, #stack, #viewport, #x, #y
Instance Method Summary collapse
-
#data=(pokemon)
Change the data.
-
#initialize(viewport, index) ⇒ DexButton
constructor
Create a new dex button.
-
#selected=(value)
Tell the button if it’s selected or not : change the obfuscator visibility & x position.
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, #visible=, #with_cache, #with_font, #with_surface, #z, #z=
Constructor Details
#initialize(viewport, index) ⇒ DexButton
Create a new dex button
229 230 |
# File 'docs/4_Systems_101_Dex.rb', line 229 def initialize(, index) end |
Instance Method Details
#data=(pokemon)
Change the data
233 234 |
# File 'docs/4_Systems_101_Dex.rb', line 233 def data=(pokemon) end |
#selected=(value)
Tell the button if it’s selected or not : change the obfuscator visibility & x position
237 238 |
# File 'docs/4_Systems_101_Dex.rb', line 237 def selected=(value) end |