Class: UI::Storage::Summary
- Inherits:
-
UI::SpriteStack
- Object
- UI::SpriteStack
- UI::Storage::Summary
- Defined in:
- docs/4_Systems_200_Storage.rb
Overview
Stack responsive of showing a summary
Constant Summary collapse
- POSITION =
Position of the summary depending on the state
[[210, 200], [210, 10]]
- LETTER_POSITION =
Position of the letter depending on the state
[[1, 0], [95, 15]]
- TEXT_TRANSITION_TIME =
Time between each text transition
2
Constants inherited from UI::SpriteStack
UI::SpriteStack::NO_INITIAL_IMAGE
Instance Attribute Summary collapse
-
#reduced ⇒ Boolean
readonly
Tell if the UI is reduced or not.
Attributes inherited from UI::SpriteStack
#animated, #data, #moving, #stack, #viewport, #x, #y
Instance Method Summary collapse
-
#data=(pokemon)
Update the shown pokemon.
-
#done? ⇒ boolean
Tell if the animation is done.
-
#initialize(viewport, reduced) ⇒ Summary
constructor
Create a new summary object.
-
#no_egg(object)
Set an object invisible if the Pokemon is an egg.
-
#reduce
Reduce the UI (start animation).
-
#show
Show the UI (start animation).
-
#update
Update the composition state.
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_animation, #update_position, #visible, #visible=, #with_cache, #with_font, #with_surface, #z, #z=
Constructor Details
#initialize(viewport, reduced) ⇒ Summary
Create a new summary object
870 871 |
# File 'docs/4_Systems_200_Storage.rb', line 870 def initialize(, reduced) end |
Instance Attribute Details
#reduced ⇒ Boolean (readonly)
Tell if the UI is reduced or not
860 861 862 |
# File 'docs/4_Systems_200_Storage.rb', line 860 def reduced @reduced end |
Instance Method Details
#data=(pokemon)
Update the shown pokemon
880 881 |
# File 'docs/4_Systems_200_Storage.rb', line 880 def data=(pokemon) end |
#done? ⇒ boolean
Tell if the animation is done
884 885 |
# File 'docs/4_Systems_200_Storage.rb', line 884 def done? end |
#no_egg(object)
Set an object invisible if the Pokemon is an egg
877 878 |
# File 'docs/4_Systems_200_Storage.rb', line 877 def no_egg(object) end |
#reduce
Reduce the UI (start animation)
887 888 |
# File 'docs/4_Systems_200_Storage.rb', line 887 def reduce end |
#show
Show the UI (start animation)
890 891 |
# File 'docs/4_Systems_200_Storage.rb', line 890 def show end |
#update
Update the composition state
873 874 |
# File 'docs/4_Systems_200_Storage.rb', line 873 def update end |