extends Control @onready var styling: Control = $Styling func _on_exit_button_pressed() -> void: get_tree().quit() func _on_test_button_pressed() -> void: var rand_difficulty = NPC.npcDifficulties.values().pick_random() var rand_tier = NPC.npcTiers.values().pick_random() var anNPC = NPC.new() %TestNMEMaxHealthVal.text = str(anNPC.maxHealth) #TestEMaxHealthVal.label_settings = LabelSettings.new() %TestNMEName.text = str(NPC.npcDifficulties.find_key(anNPC.npcDifficulty)) %TestNMETierVal.text = str(NPC.npcTiers.find_key(anNPC.npcTier)) # style the name label based on the difficulty styling.format_label_difficulty(%TestNMEName, anNPC.npcDifficulty) #anNPC.position = Vector2(64, 64) #add_child(anNPC)