Class: UI::Hall_of_Fame::League_Champion_Text_Box
- Inherits:
-
SpriteStack
- Object
- SpriteStack
- UI::Hall_of_Fame::League_Champion_Text_Box
- Defined in:
- scripts/01450 Systems/00300 Hall of fame/00002 UI/00022 League_Champion_Text_Box.rb
Overview
Class that define the League Champion text box stack
Constant Summary collapse
Constants inherited from SpriteStack
Instance Attribute Summary collapse
-
#text
Returns the value of attribute text.
Attributes inherited from SpriteStack
#animated, #data, #moving, #stack, #viewport, #x, #y
Instance Method Summary collapse
-
#box_filename ⇒ String
The base filename of the window.
-
#initial_coordinates ⇒ Array<Integer>
The SpriteStack initial coordinates.
-
#initialize(viewport) ⇒ League_Champion_Text_Box
constructor
Initialize the SpriteStack.
-
#text_coordinates ⇒ Array<Integer>
The base coordinates of the text.
-
#y_final ⇒ Integer
Get the constant's value.
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, #update_animation, #update_position, #visible, #visible=, #with_cache, #with_font, #with_surface, #z, #z=
Constructor Details
#initialize(viewport) ⇒ League_Champion_Text_Box
Initialize the SpriteStack
10 11 12 13 14 15 16 17 |
# File 'scripts/01450 Systems/00300 Hall of fame/00002 UI/00022 League_Champion_Text_Box.rb', line 10 def initialize() super(, *initial_coordinates) @box = add_sprite(0, 0, box_filename) @text = add_text(*text_coordinates, parse_text(32, 111), 1) @text.fill_color = WHITE_COLOR @text.draw_shadow = false @text.opacity = 0 end |
Instance Attribute Details
#text
Returns the value of attribute text.
5 6 7 |
# File 'scripts/01450 Systems/00300 Hall of fame/00002 UI/00022 League_Champion_Text_Box.rb', line 5 def text @text end |
Instance Method Details
#box_filename ⇒ String
The base filename of the window
27 28 29 |
# File 'scripts/01450 Systems/00300 Hall of fame/00002 UI/00022 League_Champion_Text_Box.rb', line 27 def box_filename 'hall_of_fame/text_window_congrats' end |
#initial_coordinates ⇒ Array<Integer>
The SpriteStack initial coordinates
21 22 23 |
# File 'scripts/01450 Systems/00300 Hall of fame/00002 UI/00022 League_Champion_Text_Box.rb', line 21 def initial_coordinates return 10, -28 end |
#text_coordinates ⇒ Array<Integer>
The base coordinates of the text
39 40 41 |
# File 'scripts/01450 Systems/00300 Hall of fame/00002 UI/00022 League_Champion_Text_Box.rb', line 39 def text_coordinates return 40, 5, 220, 16 end |