Class: UI::ResultBanner
- Inherits:
-
SpriteStack
- Object
- SpriteStack
- UI::ResultBanner
- Includes:
- BattleUI::GoingInOut, UI
- Defined in:
- docs/6_Contest_01_Scene.rb
Overview
Class that represents the result banner shown at the end of a contest
Constant Summary collapse
- BANNER_Y_COORDINATES =
Y Coordinate of the banner depending on its index
[19, 59, 99, 139]
- RESULT_BANNER_BACKGROUND =
Result banner's background
'contest/result_banner'- RESULT_BANNER_PLACE =
Result banner place sprite
'contest/result_place'- RESULT_BANNER_SCORE_BAR =
Result banner score bar
'contest/score_bar'
Constants inherited from SpriteStack
Instance Attribute Summary collapse
-
#animation_handler ⇒ Yuki::Animation::Handler{ Symbol => Yuki::AnimationMixin}
readonly
Get the animation handler.
-
#index ⇒ Integer
readonly
Index of the banner.
-
#place_sprite ⇒ Sprite
readonly
The place sprite of the banner.
-
#scene ⇒ Contest::Scene
readonly
Get the scene linked to this object.
-
#score ⇒ Integer
The score shown by the banner.
Attributes inherited from SpriteStack
#animated, #data, #font_id, #moving, #stack, #viewport, #x, #y
Instance Method Summary collapse
-
#create_animation
Create the animation.
-
#data=(creature)
Set the Creature to show in the Result Banner.
-
#done? ⇒ Boolean
Tell if the InfoBox animations are done.
-
#go_in_animation ⇒ Yuki::AnimationMixin
Creates the go_in animation.
-
#go_out_animation ⇒ Yuki::AnimationMixin
Creates the go_out animation.
-
#initialize(viewport, scene, index) ⇒ ResultBanner
constructor
Create a new Result Banner.
-
#score_animation ⇒ Yuki::AnimationMixin
Create the score bar filling animation.
-
#show_place(place)
Show the place sprite of the result banner.
-
#update
Update the InfoBox.
Methods included from BattleUI::GoingInOut
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_animation, #update_position, #visible, #visible=, #with_cache, #with_font, #with_surface, #z, #z=
Constructor Details
#initialize(viewport, scene, index) ⇒ ResultBanner
Create a new Result Banner
731 732 |
# File 'docs/6_Contest_01_Scene.rb', line 731 def initialize(, scene, index) end |
Instance Attribute Details
#animation_handler ⇒ Yuki::Animation::Handler{ Symbol => Yuki::AnimationMixin} (readonly)
Get the animation handler
714 715 716 |
# File 'docs/6_Contest_01_Scene.rb', line 714 def animation_handler @animation_handler end |
#index ⇒ Integer (readonly)
Index of the banner
717 718 719 |
# File 'docs/6_Contest_01_Scene.rb', line 717 def index @index end |
#place_sprite ⇒ Sprite (readonly)
The place sprite of the banner
723 724 725 |
# File 'docs/6_Contest_01_Scene.rb', line 723 def place_sprite @place_sprite end |
#scene ⇒ Contest::Scene (readonly)
Get the scene linked to this object
720 721 722 |
# File 'docs/6_Contest_01_Scene.rb', line 720 def scene @scene end |
#score ⇒ Integer
The score shown by the banner
726 727 728 |
# File 'docs/6_Contest_01_Scene.rb', line 726 def score @score end |
Instance Method Details
#create_animation
Create the animation
734 735 |
# File 'docs/6_Contest_01_Scene.rb', line 734 def create_animation end |
#data=(creature)
Set the Creature to show in the Result Banner
745 746 |
# File 'docs/6_Contest_01_Scene.rb', line 745 def data=(creature) end |
#done? ⇒ Boolean
Tell if the InfoBox animations are done
741 742 |
# File 'docs/6_Contest_01_Scene.rb', line 741 def done? end |
#go_in_animation ⇒ Yuki::AnimationMixin
Creates the go_in animation
753 754 |
# File 'docs/6_Contest_01_Scene.rb', line 753 def go_in_animation end |
#go_out_animation ⇒ Yuki::AnimationMixin
Creates the go_out animation
757 758 |
# File 'docs/6_Contest_01_Scene.rb', line 757 def go_out_animation end |
#score_animation ⇒ Yuki::AnimationMixin
Create the score bar filling animation
761 762 |
# File 'docs/6_Contest_01_Scene.rb', line 761 def score_animation end |
#show_place(place)
Show the place sprite of the result banner
749 750 |
# File 'docs/6_Contest_01_Scene.rb', line 749 def show_place(place) end |
#update
Update the InfoBox
737 738 |
# File 'docs/6_Contest_01_Scene.rb', line 737 def update end |