Class: UI::Shop::MoneyWindow

Inherits:
UI::SpriteStack show all
Defined in:
docs/01450_Systems_00203_Shop.rb

Overview

Window displaying the money amount

Constant Summary collapse

COORD_X =

X coordinate of the money window

7
COORD_Y =

Y coordinate of the money window

4
BLACK_COLOR =

Black color

Color.new(0, 0, 0)
WHITE_COLOR =

White color

Color.new(255, 255, 255)

Constants inherited from UI::SpriteStack

UI::SpriteStack::NO_INITIAL_IMAGE

Instance Attribute Summary

Attributes inherited from UI::SpriteStack

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

Instance Method Summary collapse

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, #update_animation, #update_position, #visible, #visible=, #with_cache, #with_font, #with_surface, #z, #z=

Constructor Details

#initialize(viewport) ⇒ MoneyWindow

Initializing the money window graphics and texts

Parameters:

  • viewport (Viewport)

    viewport in which the SpriteStack will be displayed



106
107
# File 'docs/01450_Systems_00203_Shop.rb', line 106

def initialize(viewport)
end

Instance Method Details

#text=(text)

Update the money text

Parameters:

  • text (String)

    the new string to display



110
111
# File 'docs/01450_Systems_00203_Shop.rb', line 110

def text=(text)
end