2026-01-11 16:05:12 +11:00
|
|
|
extends Node
|
|
|
|
|
|
|
|
|
|
@export var inventory_panel : Inventory
|
|
|
|
|
@export var button : Button
|
2026-01-14 19:00:40 +11:00
|
|
|
@export var money : int = 0
|
|
|
|
|
@export var money_label : Label
|
2026-01-14 20:10:03 +11:00
|
|
|
@export var botnet_servers : int = 0
|
2026-01-15 23:10:10 +11:00
|
|
|
@export var botnet : Array[ItemData] = []
|
2026-01-17 17:07:53 +11:00
|
|
|
#@export var power_values : Dictionary[ItemData,int]
|
2026-01-11 16:05:12 +11:00
|
|
|
|
|
|
|
|
# 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:
|
2026-01-14 19:00:40 +11:00
|
|
|
money_label.text = "Money: $" + str(money)
|
2026-01-11 16:05:12 +11:00
|
|
|
|
|
|
|
|
|
|
|
|
|
func _on_button_pressed() -> void:
|
|
|
|
|
inventory_panel.visible = !inventory_panel.visible
|
|
|
|
|
button.text = "Show Inventory" if !inventory_panel.visible else "Hide Inventory"
|