Class: UI::Shop::PkmDesc

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

Overview

Description of a creature in the Shop UI

Constant Summary collapse

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

Initialize the item description window graphisms and texts

Parameters:

  • viewport (Viewport)

    the viewport in which the SpriteStack will be displayed



405
406
# File 'docs/4_Systems_203_Shop.rb', line 405

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



409
410
# File 'docs/4_Systems_203_Shop.rb', line 409

def name=(name)
end

#nb_in_stock=(nb)

Update the number of the Pokémon in stock

Parameters:

  • nb (Integer)

    the number of the currently shown item in stock



421
422
# File 'docs/4_Systems_203_Shop.rb', line 421

def nb_in_stock=(nb)
end

#species=(species)

Update the species text for the Pokemon

Parameters:

  • species (String)

    the string of the Pokemon’s species



417
418
# File 'docs/4_Systems_203_Shop.rb', line 417

def species=(species)
end

#text=(text)

Update the level text for the Pokemon

Parameters:

  • text (String)

    the string of the Pokemon’s level



413
414
# File 'docs/4_Systems_203_Shop.rb', line 413

def text=(text)
end