Class: UI::Shop::ItemDesc

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

Overview

UI element showing the item description

Constant Summary

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

Initialize the item description window graphisms and texts

Parameters:

  • viewport (Viewport)

    the viewport in which the SpriteStack will be displayed



245
246
# File 'docs/01450_Systems_00203_Shop.rb', line 245

def initialize(viewport)
end

Instance Method Details

#name=(name)

Update the text of the item’s name

Parameters:

  • name (String)

    the string of the item’s name



249
250
# File 'docs/01450_Systems_00203_Shop.rb', line 249

def name=(name)
end

#nb_in_stock=(nb)

Update the number of the item in stock

Parameters:

  • nb (Integer)

    the number of the currently shown item in stock



261
262
# File 'docs/01450_Systems_00203_Shop.rb', line 261

def nb_in_stock=(nb)
end

#nb_item=(nb)

Update the number of currently possessed same item

Parameters:

  • nb (Integer)

    the number of the currrently shown item in the player bag



257
258
# File 'docs/01450_Systems_00203_Shop.rb', line 257

def nb_item=(nb)
end

#text=(text)

Update the description text for the item

Parameters:

  • text (String)

    the string of the item’s description



253
254
# File 'docs/01450_Systems_00203_Shop.rb', line 253

def text=(text)
end