Class: UI::Hall_of_Fame::League_Champion_Text_Box

Inherits:
SpriteStack show all
Defined in:
docs/4_Systems_300_Hall_of_fame.rb

Overview

Class that define the League Champion text box stack

Constant Summary collapse

Y_FINAL =

Final Y coordinate

10
WHITE_COLOR =

White color

Color.new(255, 255, 255, 255)

Constants inherited from SpriteStack

SpriteStack::NO_INITIAL_IMAGE

Instance Attribute Summary collapse

Attributes inherited from SpriteStack

#animated, #data, #moving, #stack, #viewport, #x, #y

Instance Method Summary collapse

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

Parameters:



316
317
# File 'docs/4_Systems_300_Hall_of_fame.rb', line 316

def initialize(viewport)
end

Instance Attribute Details

#text

Returns the value of attribute text.



309
310
311
# File 'docs/4_Systems_300_Hall_of_fame.rb', line 309

def text
  @text
end

Instance Method Details

#box_filenameString

The base filename of the window

Returns:



324
325
# File 'docs/4_Systems_300_Hall_of_fame.rb', line 324

def box_filename
end

#initial_coordinatesArray<Integer>

The SpriteStack initial coordinates

Returns:

  • (Array<Integer>)

    the coordinates



320
321
# File 'docs/4_Systems_300_Hall_of_fame.rb', line 320

def initial_coordinates
end

#text_coordinatesArray<Integer>

The base coordinates of the text

Returns:

  • (Array<Integer>)

    the coordinates



332
333
# File 'docs/4_Systems_300_Hall_of_fame.rb', line 332

def text_coordinates
end

#y_finalInteger

Get the constant’s value

Returns:

  • (Integer)


328
329
# File 'docs/4_Systems_300_Hall_of_fame.rb', line 328

def y_final
end