Class: UI::Storage::BoxStack
- Inherits:
-
UI::SpriteStack
- Object
- UI::SpriteStack
- UI::Storage::BoxStack
- Defined in:
- docs/4_Systems_200_Storage.rb
Overview
Stack responsive of showing a box
Constant Summary
Constants inherited from UI::SpriteStack
UI::SpriteStack::NO_INITIAL_IMAGE
Instance Attribute Summary collapse
-
#mode ⇒ Symbol
Get the current mode.
Attributes inherited from UI::SpriteStack
#animated, #data, #moving, #stack, #viewport, #x, #y
Instance Method Summary collapse
-
#box_option_hovered? ⇒ Boolean
Tell if the name background is hovered in order to show the option menu.
-
#data=(data)
Update the data.
-
#gray_pokemon {|pokemon| ... }
Make the pokemon gray depending on a criteria.
-
#initialize(viewport, mode_handler, selection_handler) ⇒ BoxStack
constructor
Create a new box stack.
-
#pokemon_sprites ⇒ Array<Sprite>
Get the Pokemon sprites.
-
#update_selection(selection)
Update the selection.
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, #visible=, #with_cache, #with_font, #with_surface, #z, #z=
Constructor Details
#initialize(viewport, mode_handler, selection_handler) ⇒ BoxStack
Create a new box stack
722 723 |
# File 'docs/4_Systems_200_Storage.rb', line 722 def initialize(, mode_handler, selection_handler) end |
Instance Attribute Details
#mode ⇒ Symbol
Get the current mode
717 718 719 |
# File 'docs/4_Systems_200_Storage.rb', line 717 def mode @mode end |
Instance Method Details
#box_option_hovered? ⇒ Boolean
Tell if the name background is hovered in order to show the option menu
726 727 |
# File 'docs/4_Systems_200_Storage.rb', line 726 def box_option_hovered? end |
#data=(data)
Update the data
734 735 |
# File 'docs/4_Systems_200_Storage.rb', line 734 def data=(data) end |
#gray_pokemon {|pokemon| ... }
Make the pokemon gray depending on a criteria
738 739 |
# File 'docs/4_Systems_200_Storage.rb', line 738 def gray_pokemon end |
#pokemon_sprites ⇒ Array<Sprite>
Get the Pokemon sprites
746 747 |
# File 'docs/4_Systems_200_Storage.rb', line 746 def pokemon_sprites end |
#update_selection(selection)
Update the selection
730 731 |
# File 'docs/4_Systems_200_Storage.rb', line 730 def update_selection(selection) end |