68 lines
2.1 KiB
Plaintext
68 lines
2.1 KiB
Plaintext
[gd_scene load_steps=3 format=3 uid="uid://dhvk3terpgsp3"]
|
|
|
|
[ext_resource type="Script" path="res://scripts/test_scene.gd" id="1_mj8nf"]
|
|
|
|
[sub_resource type="LabelSettings" id="LabelSettings_ppp5s"]
|
|
|
|
[node name="TestScene" type="Control"]
|
|
layout_mode = 3
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
script = ExtResource("1_mj8nf")
|
|
|
|
[node name="MarginContainer" type="MarginContainer" parent="."]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer"]
|
|
layout_mode = 2
|
|
size_flags_vertical = 8
|
|
|
|
[node name="HBoxContainer" type="HBoxContainer" parent="MarginContainer/VBoxContainer"]
|
|
layout_mode = 2
|
|
|
|
[node name="OutputLabels" type="VBoxContainer" parent="MarginContainer/VBoxContainer/HBoxContainer"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
size_flags_vertical = 4
|
|
|
|
[node name="TestMaxHealth" type="Label" parent="MarginContainer/VBoxContainer/HBoxContainer/OutputLabels"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 8
|
|
text = "Max Health:"
|
|
horizontal_alignment = 2
|
|
|
|
[node name="Output" type="VBoxContainer" parent="MarginContainer/VBoxContainer/HBoxContainer"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
size_flags_vertical = 4
|
|
|
|
[node name="TestMaxHealthVal" type="Label" parent="MarginContainer/VBoxContainer/HBoxContainer/Output"]
|
|
layout_mode = 2
|
|
size_flags_vertical = 3
|
|
text = "Value"
|
|
label_settings = SubResource("LabelSettings_ppp5s")
|
|
|
|
[node name="Controls" type="VBoxContainer" parent="MarginContainer/VBoxContainer"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
size_flags_vertical = 8
|
|
|
|
[node name="TestButton" type="Button" parent="MarginContainer/VBoxContainer/Controls"]
|
|
layout_mode = 2
|
|
text = "Test"
|
|
|
|
[node name="ExitButton" type="Button" parent="MarginContainer/VBoxContainer/Controls"]
|
|
layout_mode = 2
|
|
text = "Exit"
|
|
|
|
[connection signal="pressed" from="MarginContainer/VBoxContainer/Controls/TestButton" to="." method="_on_test_button_pressed"]
|
|
[connection signal="pressed" from="MarginContainer/VBoxContainer/Controls/ExitButton" to="." method="_on_exit_button_pressed"]
|