Global refactor

This commit is contained in:
Rendo 2025-12-09 11:53:52 +05:00
commit 0589ca4e23
180 changed files with 249 additions and 401 deletions

View file

@ -0,0 +1,11 @@
extends Label
@export var inventory: WeaponSystem
func _process(_delta: float) -> void:
var weapons = ""
for child in inventory.get_children():
if child is WeaponSubStateMachine:
weapons += child.name + ", "
text = weapons

View file

@ -0,0 +1 @@
uid://dmy6ahci16los

View file

@ -0,0 +1,21 @@
extends VBoxContainer
@export var property_array: Dictionary[NodePath,StringName]
func _ready() -> void:
for target in property_array.keys():
var hbox = HBoxContainer.new()
var name_label = Label.new()
var splitted = property_array[target].split(":")
name_label.text = splitted[len(splitted)-1]
name_label.name = "Name"
var value_label = Label.new()
value_label.name = "Value"
hbox.add_child(name_label,true)
hbox.add_child(value_label,true)
hbox.name = str(target).replace("/","_").replace(".","")
add_child(hbox,true)
func _process(_delta: float) -> void:
for target in property_array:
get_node(str(target).replace("/","_").replace(".","")+"/Value").text = str(get_node(target).get(property_array[target]))

View file

@ -0,0 +1 @@
uid://7gmgcaxfh8sb