struct

PointClickEngine::Graphics::UI::InventorySlot

Inherits Struct < Value < Object

Inventory slot for rendering

Constructors

new(position : RL::Vector2, size : RL::Vector2)
Source

Instance methods

bounds
Source
contains?(x : Float32, y : Float32) : Bool
Source
highlighted
Source
highlighted=(highlighted : Bool)
Source
item_id
Source
item_id=(item_id : String | Nil)
Source
position
Source
position=(position : RL::Vector2)
Source
quantity
Source
quantity=(quantity : Int32)
Source
selected
Source
selected=(selected : Bool)
Source
size
Source
size=(size : RL::Vector2)
Source