diff options
| author | radiohotline <radoihotline@disroot.rg> | 2026-08-25 16:33:56 +0300 |
|---|---|---|
| committer | radiohotline <radoihotline@disroot.rg> | 2026-08-25 16:33:56 +0300 |
| commit | a89e744ed0e8c759caf041a580112365bbfe4303 (patch) | |
| tree | dd61e320904176995727e86a857d00c90d4933ba /addons/escoria-core/ui_library/inventory | |
| parent | 6d53d8cac78250dc888aa49d5f9d4175c6652feb (diff) | |
Diffstat (limited to 'addons/escoria-core/ui_library/inventory')
| -rw-r--r-- | addons/escoria-core/ui_library/inventory/esc_inventory_button.gd | 2 | ||||
| -rw-r--r-- | addons/escoria-core/ui_library/inventory/esc_inventory_container.gd | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/addons/escoria-core/ui_library/inventory/esc_inventory_button.gd b/addons/escoria-core/ui_library/inventory/esc_inventory_button.gd index b109c38..390055f 100644 --- a/addons/escoria-core/ui_library/inventory/esc_inventory_button.gd +++ b/addons/escoria-core/ui_library/inventory/esc_inventory_button.gd @@ -1,7 +1,7 @@ ## The inventory representation of an ESC item if pickable (only used by ## the inventory components) -extends TextureButton class_name ESCInventoryButton +extends TextureButton ## Signal emitted when the item was left clicked.[br] ## [br] diff --git a/addons/escoria-core/ui_library/inventory/esc_inventory_container.gd b/addons/escoria-core/ui_library/inventory/esc_inventory_container.gd index 1e6dab8..748d714 100644 --- a/addons/escoria-core/ui_library/inventory/esc_inventory_container.gd +++ b/addons/escoria-core/ui_library/inventory/esc_inventory_container.gd @@ -1,7 +1,7 @@ ## Inventory container handler that acts as a base for UIs inventory containers. -extends Control class_name ESCInventoryContainer +extends Control ## Whether any item in the container is currently focused.[br] var item_focused: bool = false @@ -85,7 +85,7 @@ func get_inventory_button(inventory_item: ESCInventoryItem) -> ESCInventoryButto ## #### Returns[br] ## [br] ## Returns nothing. -func _on_inventory_item_focused(item_id): +func _on_inventory_item_focused(_item_id): item_focused = true |
