shift click items across inventories

This commit is contained in:
Tabby 2026-01-11 18:11:14 +11:00
parent c05f2c703b
commit 64d6e72407
15 changed files with 94 additions and 5 deletions

View file

@ -1,6 +1,7 @@
extends Inventory
@export var action_button : Button
@export var craft_recipes : Array[CraftRecipe]
#@export var no_style : StyleBox
@export var assemble_style : StyleBox
@export var assemble_style_hover : StyleBox
@ -26,9 +27,14 @@ func _process(delta: float) -> void:
func _notification(what: int) -> void:
super(what)
if what == Node.NOTIFICATION_DRAG_END:
# check against recipies!
check_recipes()
pass
func check_recipes():
print("checking now")
# write checking logic
pass
func style_assemble():
action_button.add_theme_stylebox_override("normal",assemble_style)
action_button.add_theme_stylebox_override("hover",assemble_style_hover)