Class: UI::Bag::InfoCompact

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

Overview

Class that shows the minimal item info

Constant Summary collapse

COORDINATES =

Coordinate of the UI

9, 145

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

Create a new InfoCompact

Parameters:

  • viewport (Viewport)
  • mode (Symbol)

    mode of the bag scene



400
401
# File 'docs/01450_Systems_00103_Bag.rb', line 400

def initialize(viewport, mode)
end

Instance Attribute Details

#modeSymbol (readonly)

Mode of the bag

Returns:

  • (Symbol)


394
395
396
# File 'docs/01450_Systems_00103_Bag.rb', line 394

def mode
  @mode
end

Instance Method Details

#show_item(id)

Change the item it shows

Parameters:

  • id (Integer)

    ID of the item to show



404
405
# File 'docs/01450_Systems_00103_Bag.rb', line 404

def show_item(id)
end