Class: UI::Bag::WinPocket

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

Overview

UI element showing the name of the Pocket in the bag

Constant Summary collapse

BACKGROUND =

Name of the background file

'bag/win_pocket'
COORDINATES =

Coordinate of the spritestack

15, 4

Constants inherited from SpriteStack

SpriteStack::NO_INITIAL_IMAGE

Instance Attribute Summary

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) ⇒ WinPocket

Create a new WinPocket

Parameters:



182
183
# File 'docs/01450_Systems_00103_Bag.rb', line 182

def initialize(viewport)
end

Instance Method Details

#text=(text)

Set the text to show

Parameters:

  • text (String)

    the text to show



186
187
# File 'docs/01450_Systems_00103_Bag.rb', line 186

def text=(text)
end