crafting system and improveemnts to mousetweaks
This commit is contained in:
parent
64d6e72407
commit
ccb15800a3
6 changed files with 45 additions and 5 deletions
|
|
@ -1,5 +1,8 @@
|
|||
extends Control
|
||||
|
||||
@export var ewaste_button : Button
|
||||
@export var computer_button : Button
|
||||
@export var crafting_inv : Inventory
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
|
|
@ -8,7 +11,12 @@ func _ready() -> void:
|
|||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta: float) -> void:
|
||||
pass
|
||||
if crafting_inv.filled_slots() > 0:
|
||||
ewaste_button.disabled = true
|
||||
computer_button.disabled = true
|
||||
else:
|
||||
ewaste_button.disabled = false
|
||||
computer_button.disabled = false
|
||||
|
||||
|
||||
func _on_goto_ewaste_pressed() -> void:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue