trash slot blocks travel
This commit is contained in:
parent
866d869756
commit
217efd9f9f
4 changed files with 20 additions and 17 deletions
|
|
@ -17,7 +17,7 @@ func _ready() -> void:
|
|||
slot.type = type
|
||||
if type == "Inventory":
|
||||
MouseTweaks.player_inventory = self
|
||||
elif type != "Install":
|
||||
elif type != "Install" and type != "Trash":
|
||||
MouseTweaks.other_inventory = self
|
||||
pass # Replace with function body.
|
||||
|
||||
|
|
|
|||
|
|
@ -1,17 +1,10 @@
|
|||
extends PanelContainer
|
||||
extends Inventory
|
||||
|
||||
@export var slot : ItemSlot
|
||||
#@export var slot : ItemSlot
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
pass # Replace with function body.
|
||||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta: float) -> void:
|
||||
pass
|
||||
|
||||
|
||||
func _on_button_pressed() -> void:
|
||||
slot.item = null
|
||||
slot.update_ui()
|
||||
empty_grid()
|
||||
#slot.item = null
|
||||
#slot.update_ui()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue