Class: UI::Bag::InfoWide

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

Overview

Class that shows the full item info (descr)

Constant Summary collapse

COORDINATES =

Coordinate of the UI

0, 33

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, mode) ⇒ InfoWide

Create a new InfoWide

Parameters:

  • viewport (Viewport)
  • mode (Symbol)

    mode of the bag scene



437
438
# File 'docs/01450_Systems_00103_Bag.rb', line 437

def initialize(viewport, mode)
end

Instance Attribute Details

#modeSymbol (readonly)

Mode of the bag

Returns:

  • (Symbol)


431
432
433
# File 'docs/01450_Systems_00103_Bag.rb', line 431

def mode
  @mode
end

Instance Method Details

#show_item(id)

Change the item it shows

Parameters:

  • id (Integer)

    ID of the item to show



441
442
# File 'docs/01450_Systems_00103_Bag.rb', line 441

def show_item(id)
end