Class: BattleUI::PlayerChoice::ItemInfo
- Inherits:
-
UI::SpriteStack
- Object
- UI::SpriteStack
- BattleUI::PlayerChoice::ItemInfo
- Includes:
- HideShow
- Defined in:
- docs/5_Battle_01_Scene.rb
Overview
UI showing the info about the last used item
Constant Summary
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
-
#data=(item)
Set the data shown by the UI.
-
#done? ⇒ Boolean
Tell if the animation is done.
-
#initialize(viewport) ⇒ ItemInfo
constructor
Create a new Item Info box.
-
#update
Update the sprite.
Methods included from HideShow
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) ⇒ ItemInfo
Create a new Item Info box
1305 1306 |
# File 'docs/5_Battle_01_Scene.rb', line 1305 def initialize() end |
Instance Attribute Details
#animation_handler ⇒ Yuki::Animation::Handler{ Symbol => Yuki::Animation::TimedAnimation} (readonly)
Get the animation handler
1302 1303 1304 |
# File 'docs/5_Battle_01_Scene.rb', line 1302 def animation_handler @animation_handler end |
Instance Method Details
#data=(item)
Set the data shown by the UI
1309 1310 |
# File 'docs/5_Battle_01_Scene.rb', line 1309 def data=(item) end |
#done? ⇒ Boolean
Tell if the animation is done
1316 1317 |
# File 'docs/5_Battle_01_Scene.rb', line 1316 def done? end |
#update
Update the sprite
1312 1313 |
# File 'docs/5_Battle_01_Scene.rb', line 1312 def update end |