inventory refactor + inv ui interactable
This commit is contained in:
@@ -3,6 +3,7 @@ class_name InventoryGuiItem
|
||||
|
||||
@export var no_item_texture_path : Texture2D
|
||||
|
||||
signal item_clicked()
|
||||
|
||||
const MODULATE_INSPECTED_COLOR = Color.GRAY
|
||||
|
||||
@@ -25,6 +26,10 @@ func _on_mouse_excited():
|
||||
if current_item:
|
||||
Pointer.stop_inspect(self)
|
||||
|
||||
func _on_gui_input(_event: InputEvent) -> void:
|
||||
if Input.is_action_just_pressed("action"):
|
||||
emit_signal("item_clicked")
|
||||
|
||||
func inspector_info() -> Inspector.Info:
|
||||
return current_item.inspector_info()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user