summaryrefslogtreecommitdiff
path: root/addons/escoria-core/ui_library/inventory
diff options
context:
space:
mode:
Diffstat (limited to 'addons/escoria-core/ui_library/inventory')
-rw-r--r--addons/escoria-core/ui_library/inventory/esc_inventory_button.gd2
-rw-r--r--addons/escoria-core/ui_library/inventory/esc_inventory_container.gd4
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