PopochiuInventoryGrid

Extends: HBoxContainer

Description

Constants Descriptions

EMPTY_SLOT

const EMPTY_SLOT: String = "[Empty Slot]00"

Property Descriptions

slot_scene

@export var slot_scene: PackedScene = null
  • Setter: @slot_scene_setter

columns

@export var columns: int = 4
  • Setter: @columns_setter

visible_rows

@export var visible_rows: int = 2
  • Setter: @visible_rows_setter

number_of_slots

@export var number_of_slots: int = 16
  • Setter: @number_of_slots_setter

h_separation

@export var h_separation: int = 0
  • Setter: @h_separation_setter

v_separation

@export var v_separation: int = 0
  • Setter: @v_separation_setter

show_arrows

@export var show_arrows: bool = true
  • Setter: @show_arrows_setter

scroll_with_mouse_wheel

@export var scroll_with_mouse_wheel: bool = true

rows

var rows: int = 0

max_scroll

var max_scroll: float = 0

slot_size

var slot_size: float = 0

scroll_container

var scroll_container: ScrollContainer

box

var box: GridContainer

scroll_buttons

var scroll_buttons: VBoxContainer

up

var up: TextureButton

down

var down: TextureButton

gap_size

var gap_size: int

Method Descriptions

set_visible_rows

func set_visible_rows(value: int) -> void

set_columns

func set_columns(value: int) -> void

set_slot_scene

func set_slot_scene(value: PackedScene) -> void

set_number_of_slots

func set_number_of_slots(value: int) -> void

set_h_separation

func set_h_separation(value: int) -> void

set_v_separation

func set_v_separation(value: int) -> void

set_show_arrows

func set_show_arrows(value: bool) -> void