[gd_scene load_steps=4 format=3 uid="uid://cdu3sqa0k8dgs"] [ext_resource type="Script" path="res://scripts/NPC.gd" id="1_m6htj"] [ext_resource type="Texture2D" uid="uid://b10c1776j6j60" path="res://assets/icon.svg" id="2_yarwk"] [sub_resource type="RectangleShape2D" id="RectangleShape2D_tv6kf"] size = Vector2(196, 175) [node name="NPC" type="CharacterBody2D"] script = ExtResource("1_m6htj") [node name="CollisionShape2D" type="CollisionShape2D" parent="."] position = Vector2(0, -11.5) shape = SubResource("RectangleShape2D_tv6kf") [node name="Sprite2D" type="Sprite2D" parent="."] texture = ExtResource("2_yarwk") [node name="MarginContainer" type="MarginContainer" parent="Sprite2D"] anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 offset_left = -91.0 offset_top = -94.0 offset_right = -36.0 offset_bottom = -57.0 grow_horizontal = 2 grow_vertical = 2 [node name="Nameplate" type="VBoxContainer" parent="Sprite2D/MarginContainer"] layout_mode = 2 [node name="Healthbar" type="ProgressBar" parent="Sprite2D/MarginContainer/Nameplate"] unique_name_in_owner = true custom_minimum_size = Vector2(0, 16) layout_mode = 2 max_value = 10.0 step = 1.0 value = 10.0 show_percentage = false [node name="TitleBox" type="HBoxContainer" parent="Sprite2D/MarginContainer/Nameplate"] layout_mode = 2 [node name="TierLabel" type="Label" parent="Sprite2D/MarginContainer/Nameplate/TitleBox"] layout_mode = 2 size_flags_horizontal = 4 size_flags_vertical = 0 text = "Tier " [node name="NPCNameLabel" type="Label" parent="Sprite2D/MarginContainer/Nameplate/TitleBox"] unique_name_in_owner = true layout_mode = 2 size_flags_horizontal = 4 size_flags_vertical = 0 text = "Name"