76 lines
2.4 KiB
Text
76 lines
2.4 KiB
Text
[gd_scene load_steps=2 format=3 uid="uid://bwvshov2sptun"]
|
|
|
|
[ext_resource type="Script" uid="uid://0trc0nel0023" path="res://Scripts/GL_Node_Add.gd" id="1_vw1dw"]
|
|
|
|
[node name="OptionButton" type="OptionButton"]
|
|
offset_right = 68.0
|
|
offset_bottom = 31.0
|
|
selected = 0
|
|
allow_reselect = true
|
|
item_count = 3
|
|
popup/item_0/text = "+Add Float"
|
|
popup/item_0/id = 0
|
|
popup/item_1/text = "+Add Bool"
|
|
popup/item_1/id = 1
|
|
popup/item_2/text = "+Add Color"
|
|
popup/item_2/id = 2
|
|
script = ExtResource("1_vw1dw")
|
|
|
|
[node name="Panel" type="PanelContainer" parent="."]
|
|
visible = false
|
|
z_index = 10
|
|
layout_mode = 1
|
|
anchors_preset = 7
|
|
anchor_left = 0.5
|
|
anchor_top = 1.0
|
|
anchor_right = 0.5
|
|
anchor_bottom = 1.0
|
|
offset_left = -75.0
|
|
offset_top = -130.0
|
|
offset_right = 75.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 0
|
|
|
|
[node name="MarginContainer" type="MarginContainer" parent="Panel"]
|
|
layout_mode = 2
|
|
theme_override_constants/margin_left = 10
|
|
theme_override_constants/margin_top = 10
|
|
theme_override_constants/margin_right = 10
|
|
theme_override_constants/margin_bottom = 10
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="Panel/MarginContainer"]
|
|
layout_mode = 2
|
|
|
|
[node name="HBoxContainer" type="HBoxContainer" parent="Panel/MarginContainer/VBoxContainer"]
|
|
layout_mode = 2
|
|
|
|
[node name="Label" type="Label" parent="Panel/MarginContainer/VBoxContainer/HBoxContainer"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
size_flags_vertical = 1
|
|
text = "Set Name"
|
|
horizontal_alignment = 1
|
|
vertical_alignment = 1
|
|
|
|
[node name="Button" type="Button" parent="Panel/MarginContainer/VBoxContainer/HBoxContainer"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 0
|
|
size_flags_vertical = 0
|
|
text = "X"
|
|
|
|
[node name="MarginContainer" type="MarginContainer" parent="Panel/MarginContainer/VBoxContainer"]
|
|
layout_mode = 2
|
|
size_flags_vertical = 3
|
|
theme_override_constants/margin_left = 20
|
|
theme_override_constants/margin_top = 20
|
|
theme_override_constants/margin_right = 20
|
|
theme_override_constants/margin_bottom = 20
|
|
|
|
[node name="LineEdit" type="LineEdit" parent="Panel/MarginContainer/VBoxContainer/MarginContainer"]
|
|
layout_mode = 2
|
|
placeholder_text = "name"
|
|
alignment = 1
|
|
|
|
[connection signal="item_selected" from="." to="." method="_selected"]
|
|
[connection signal="pressed" from="Panel/MarginContainer/VBoxContainer/HBoxContainer/Button" to="." method="_cancelled"]
|
|
[connection signal="text_submitted" from="Panel/MarginContainer/VBoxContainer/MarginContainer/LineEdit" to="." method="_named"]
|