Class: UI::PokemonFootSprite

Inherits:
Sprite show all
Defined in:
scripts/01450 Systems/00000 General/00100 UI Generics/00500 HelperSprites.rb

Overview

Class that show the icon sprite of a Pokemon

Constant Summary collapse

D3 =

Format of the icon name

'%03d'

Instance Attribute Summary

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 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?

Instance Method Details

#data=(pokemon)

Set the pokemon

Parameters:



291
292
293
# File 'scripts/01450 Systems/00000 General/00100 UI Generics/00500 HelperSprites.rb', line 291

def data=(pokemon)
  self.bitmap = RPG::Cache.foot_print(format(D3, pokemon.id)) if (self.visible = (pokemon ? true : false))
end