2022-01-16 15:40:52 +00:00
[gd_scene load_steps=3 format=2]
2021-10-15 14:29:08 +00:00
[ext_resource path="res://addons/zylann.hterrain/tools/generate_mesh_dialog.gd" type="Script" id=1]
2022-01-16 15:40:52 +00:00
[ext_resource path="res://addons/zylann.hterrain/tools/util/dialog_fitter.tscn" type="PackedScene" id=2]
2021-10-15 14:29:08 +00:00
2022-01-16 15:40:52 +00:00
[node name="GenerateMeshDialog" type="WindowDialog"]
2021-10-15 14:29:08 +00:00
margin_left = 57.0
margin_top = 83.0
margin_right = 505.0
margin_bottom = 269.0
rect_min_size = Vector2( 448, 186 )
window_title = "Generate full mesh"
script = ExtResource( 1 )
2022-01-16 15:40:52 +00:00
[node name="VBoxContainer" type="VBoxContainer" parent="."]
2021-10-15 14:29:08 +00:00
anchor_right = 1.0
anchor_bottom = 1.0
margin_left = 8.0
margin_top = 8.0
margin_right = -8.0
margin_bottom = -8.0
2022-01-16 15:40:52 +00:00
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer"]
2021-10-15 14:29:08 +00:00
margin_right = 432.0
margin_bottom = 24.0
2022-01-16 15:40:52 +00:00
[node name="Label" type="Label" parent="VBoxContainer/HBoxContainer"]
2021-10-15 14:29:08 +00:00
margin_top = 5.0
margin_right = 28.0
margin_bottom = 19.0
text = "LOD"
2022-01-16 15:40:52 +00:00
[node name="LODSpinBox" type="SpinBox" parent="VBoxContainer/HBoxContainer"]
2021-10-15 14:29:08 +00:00
margin_left = 32.0
margin_right = 432.0
margin_bottom = 24.0
size_flags_horizontal = 3
min_value = 1.0
max_value = 16.0
value = 1.0
2022-01-16 15:40:52 +00:00
[node name="PreviewLabel" type="Label" parent="VBoxContainer"]
2021-10-15 14:29:08 +00:00
margin_top = 28.0
margin_right = 432.0
margin_bottom = 42.0
text = "9999 vertices, 9999 triangles"
2022-01-16 15:40:52 +00:00
[node name="Spacer" type="Control" parent="VBoxContainer"]
2021-10-15 14:29:08 +00:00
margin_top = 46.0
margin_right = 432.0
margin_bottom = 54.0
rect_min_size = Vector2( 0, 8 )
2022-01-16 15:40:52 +00:00
[node name="Label" type="Label" parent="VBoxContainer"]
2021-10-15 14:29:08 +00:00
margin_top = 58.0
margin_right = 432.0
margin_bottom = 123.0
text = "Note: generating a full mesh from the terrain may result in a huge amount of vertices for a single object. It is preferred to do this for small terrains, or as a temporary workaround to generate a navmesh."
autowrap = true
2022-01-16 15:40:52 +00:00
[node name="Buttons" type="HBoxContainer" parent="VBoxContainer"]
2021-10-15 14:29:08 +00:00
margin_top = 127.0
margin_right = 432.0
margin_bottom = 147.0
custom_constants/separation = 32
alignment = 1
2022-01-16 15:40:52 +00:00
[node name="Generate" type="Button" parent="VBoxContainer/Buttons"]
2021-10-15 14:29:08 +00:00
margin_left = 137.0
margin_right = 208.0
margin_bottom = 20.0
text = "Generate"
2022-01-16 15:40:52 +00:00
[node name="Cancel" type="Button" parent="VBoxContainer/Buttons"]
2021-10-15 14:29:08 +00:00
margin_left = 240.0
margin_right = 294.0
margin_bottom = 20.0
text = "Cancel"
2022-01-16 15:40:52 +00:00
[node name="DialogFitter" parent="." instance=ExtResource( 2 )]
2021-10-15 14:29:08 +00:00
2022-01-16 15:40:52 +00:00
[connection signal="value_changed" from="VBoxContainer/HBoxContainer/LODSpinBox" to="." method="_on_LODSpinBox_value_changed"]
2021-10-15 14:29:08 +00:00
[connection signal="pressed" from="VBoxContainer/Buttons/Generate" to="." method="_on_Generate_pressed"]
[connection signal="pressed" from="VBoxContainer/Buttons/Cancel" to="." method="_on_Cancel_pressed"]