PointClickEngine::Graphics::UI::InventoryRenderer
Inherits Reference < Object
Inventory grid renderer
Constructors
new(columns : Int32 = 6, rows : Int32 = 4)
SourceInstance methods
draw_centered(screen_width : Float32 = Display.reference_width.to_f32, screen_height : Float32 = Display.reference_height.to_f32)
Draw centered on screen
highlight_color
Sourcehighlight_color=(highlight_color : RL::Color)
Sourcepadding
Sourcepadding=(padding : Float32)
Sourcequantity_offset
Sourcequantity_offset=(quantity_offset : RL::Vector2)
Sourcerows
Sourcerows=(rows : Int32)
Sourceselected_color
Sourceselected_color=(selected_color : RL::Color)
Sourceset_item_at(column : Int32, row : Int32, item_id : String | Nil, quantity : Int32 = 1)
Set item in grid position
show_quantity
Sourceshow_quantity=(show_quantity : Bool)
Sourceslot_background
Sourceslot_background=(slot_background : NinePatch | Nil)
Sourceslot_color
Sourceslot_color=(slot_color : RL::Color)
Sourceslot_highlight
Sourceslot_highlight=(slot_highlight : NinePatch | Nil)
Sourceslot_selected
Sourceslot_selected=(slot_selected : NinePatch | Nil)
Sourceslot_size
Sourceslot_size=(slot_size : Float32)
Sourceslot_spacing
Sourceslot_spacing=(slot_spacing : Float32)
Sourcetotal_height
Source