Class: UI::Storage::PokemonIcon

Overview

Icon of a creature in the storage UI

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 PokemonIconSprite

#update

Methods inherited from SpriteSheet

#bitmap=, #resize, #select

Methods inherited from Sprite

#load, #mouse_in?, #set_origin_div, #set_rect, #set_rect_div, #set_z, #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, index) ⇒ PokemonIcon

Returns a new instance of PokemonIcon.



772
773
# File 'docs/4_Systems_200_Storage.rb', line 772

def initialize(viewport, index)
end

Instance Method Details

#data=(box)

Set the box data

Parameters:



776
777
# File 'docs/4_Systems_200_Storage.rb', line 776

def data=(box)
end

#simple_mouse_in?(mouse_x = Mouse.x, mouse_y = Mouse.y) ⇒ Boolean

Tell if the mouse is in the sprite

Returns:

  • (Boolean)


779
780
# File 'docs/4_Systems_200_Storage.rb', line 779

def simple_mouse_in?(mouse_x = Mouse.x, mouse_y = Mouse.y)
end