Class: UI::PokemonIconSprite

Inherits:
SpriteSheet show all
Defined in:
docs/01450_Systems_00000_General_00100_UI_Generics.rb

Overview

Class that show the icon sprite of a Pokemon

Direct Known Subclasses

Storage::PokemonIcon

Instance Attribute Summary

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

Methods inherited from LiteRGSS::Sprite

new, #set_origin, #set_position

Methods inherited from LiteRGSS::Disposable

#dispose, #disposed?

Constructor Details

#initialize(viewport, auto_align = true) ⇒ PokemonIconSprite

Create a new Pokemon FaceSprite

Parameters:

  • viewport (Viewport)

    Viewport in which the sprite is shown

  • auto_align (Boolean) (defaults to: true)

    if the sprite auto align itself (sets its own ox/oy when data= is called)



648
649
# File 'docs/01450_Systems_00000_General_00100_UI_Generics.rb', line 648

def initialize(viewport, auto_align = true)
end

Instance Method Details

#data=(pokemon)

Set the pokemon

Parameters:



652
653
# File 'docs/01450_Systems_00000_General_00100_UI_Generics.rb', line 652

def data=(pokemon)
end

#update

Update the pokemon animation



655
656
# File 'docs/01450_Systems_00000_General_00100_UI_Generics.rb', line 655

def update
end