started on crafting and clock panels
This commit is contained in:
parent
aa81f860b5
commit
f58fd81ec5
20 changed files with 506 additions and 68 deletions
19
inv_system/player_inventory.gd
Normal file
19
inv_system/player_inventory.gd
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
extends Node
|
||||
|
||||
@export var inventory_panel : Inventory
|
||||
@export var button : Button
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
button.text = "Show Inventory" if !inventory_panel.visible else "Hide Inventory"
|
||||
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:
|
||||
inventory_panel.visible = !inventory_panel.visible
|
||||
button.text = "Show Inventory" if !inventory_panel.visible else "Hide Inventory"
|
||||
Loading…
Add table
Add a link
Reference in a new issue