shift click items across inventories
This commit is contained in:
parent
c05f2c703b
commit
64d6e72407
15 changed files with 94 additions and 5 deletions
|
|
@ -4,6 +4,7 @@ class_name ItemSlot
|
|||
@export var icon : TextureRect
|
||||
@export var item: ItemData
|
||||
@export var label : Label
|
||||
var type : String
|
||||
|
||||
func _ready() -> void:
|
||||
update_ui()
|
||||
|
|
@ -19,6 +20,7 @@ func update_ui():
|
|||
label.text = item.value
|
||||
|
||||
|
||||
|
||||
func _get_drag_data(at_position: Vector2) -> Variant:
|
||||
if not item:
|
||||
return
|
||||
|
|
@ -51,9 +53,11 @@ func _on_mouse_entered() -> void:
|
|||
#print("im real?")
|
||||
if item:
|
||||
Tooltip.show_tip(item.item_name)
|
||||
MouseTweaks.hovered_slot = self
|
||||
pass # Replace with function body.
|
||||
|
||||
|
||||
func _on_mouse_exited() -> void:
|
||||
Tooltip.hide_tip()
|
||||
MouseTweaks.hovered_slot = null
|
||||
pass # Replace with function body.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue