Many bug fixes, record node now takes custom parameters
This commit is contained in:
parent
ece5f8d724
commit
8993f80078
9 changed files with 132 additions and 10 deletions
|
@ -1,4 +1,6 @@
|
|||
[gd_scene format=3 uid="uid://bwvshov2sptun"]
|
||||
[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
|
||||
|
@ -12,3 +14,63 @@ 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"]
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
[ext_resource type="Script" uid="uid://c46u2u0lup1mm" path="res://Scripts/GL_Search.gd" id="1_g1g1x"]
|
||||
|
||||
[node name="Search" type="Control"]
|
||||
z_index = 100
|
||||
custom_minimum_size = Vector2(200, 200)
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue