Class: UI::Storage::ModeSprite

Overview

Sprite showing the current box mode

Constant Summary collapse

SHEET_INDEXES =

List of sheet index for all modes

{pokemon: 3, item: 4, battle: 6, box: 5}
SHEET_SIZE =

Constant telling how much section there’s in the sprite

[1, 7]

Instance Attribute Summary collapse

Attributes inherited from SpriteSheet

#nb_x, #nb_y, #sx, #sy

Attributes inherited from LiteRGSS::ShaderedSprite

#blendmode, #shader

Attributes inherited from LiteRGSS::Sprite

#__index__, #angle, #bitmap, #height, #mirror, #opacity, #ox, #oy, #src_rect, #viewport, #visible, #width, #x, #y, #z, #zoom, #zoom_x, #zoom_y

Instance Method Summary collapse

Methods inherited from SpriteSheet

#bitmap=, #resize, #select

Methods inherited from Sprite

#load, #mouse_in?, #set_origin_div, #set_rect, #set_rect_div, #set_z, #simple_mouse_in?, #translate_mouse_coords, #update

Methods inherited from LiteRGSS::Sprite

new, #set_origin, #set_position

Methods inherited from LiteRGSS::Disposable

#dispose, #disposed?

Constructor Details

#initialize(viewport, mode_handler) ⇒ ModeSprite

Create a new ModeSprite

Parameters:

  • viewport (Viewport)

    viewport used to display the sprite

  • mode_handler (ModeHandler)

    class responsive of handling the mode



222
223
# File 'docs/4_Systems_200_Storage.rb', line 222

def initialize(viewport, mode_handler)
end

Instance Attribute Details

#modeSymbol

Get the mode

Returns:

  • (Symbol)


214
215
216
# File 'docs/4_Systems_200_Storage.rb', line 214

def mode
  @mode
end