Class: BattleUI::ExpDistribution::Statistics
- Inherits:
-
UI::SpriteStack
- Object
- UI::SpriteStack
- BattleUI::ExpDistribution::Statistics
- Includes:
- GoingInOut
- Defined in:
- scripts/01600 Alpha 25 Battle Engine/00001 Battle_Scene/00001 BattleUI/00500 ExpDistribution.rb
Overview
UI element showing the new statistics
Constant Summary collapse
- IN_POSITION =
Position of the sprite when it's in
[0, 144]
Constants inherited from UI::SpriteStack
UI::SpriteStack::NO_INITIAL_IMAGE
Instance Attribute Summary collapse
-
#animation_handler ⇒ Yuki::Animation::Handler{ Symbol => Yuki::Animation::TimedAnimation}
readonly
Get the animation handler.
Attributes inherited from UI::SpriteStack
#animated, #data, #moving, #stack, #viewport, #x, #y
Instance Method Summary collapse
-
#done? ⇒ Boolean
Tell if the animation is done.
-
#initialize(viewport, pokemon, list0, list1) ⇒ Statistics
constructor
Create a new Statistics UI.
-
#update
Update the animation.
Methods included from GoingInOut
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, pokemon, list0, list1) ⇒ Statistics
Create a new Statistics UI
197 198 199 200 201 202 203 204 205 |
# File 'scripts/01600 Alpha 25 Battle Engine/00001 Battle_Scene/00001 BattleUI/00500 ExpDistribution.rb', line 197 def initialize(, pokemon, list0, list1) super(, 0, .rect.height) @animation_handler = Yuki::Animation::Handler.new @list0 = list0 @list1 = list1 create_sprites @__in_out = :out self.data = pokemon end |
Instance Attribute Details
#animation_handler ⇒ Yuki::Animation::Handler{ Symbol => Yuki::Animation::TimedAnimation} (readonly)
Get the animation handler
189 190 191 |
# File 'scripts/01600 Alpha 25 Battle Engine/00001 Battle_Scene/00001 BattleUI/00500 ExpDistribution.rb', line 189 def animation_handler @animation_handler end |
Instance Method Details
#done? ⇒ Boolean
Tell if the animation is done
209 210 211 |
# File 'scripts/01600 Alpha 25 Battle Engine/00001 Battle_Scene/00001 BattleUI/00500 ExpDistribution.rb', line 209 def done? @animation_handler.done? end |
#update
Update the animation
214 215 216 |
# File 'scripts/01600 Alpha 25 Battle Engine/00001 Battle_Scene/00001 BattleUI/00500 ExpDistribution.rb', line 214 def update @animation_handler.update end |