243 lines
5.8 KiB
Text
243 lines
5.8 KiB
Text
[gd_scene load_steps=2 format=2]
|
|
|
|
[ext_resource path="res://addons/zylann.hterrain/tools/generate_mesh_dialog.gd" type="Script" id=1]
|
|
|
|
[node name="GenerateMeshDialog" type="WindowDialog" index="0"]
|
|
|
|
anchor_left = 0.0
|
|
anchor_top = 0.0
|
|
anchor_right = 0.0
|
|
anchor_bottom = 0.0
|
|
margin_left = 57.0
|
|
margin_top = 83.0
|
|
margin_right = 505.0
|
|
margin_bottom = 269.0
|
|
rect_min_size = Vector2( 448, 186 )
|
|
rect_pivot_offset = Vector2( 0, 0 )
|
|
rect_clip_content = false
|
|
mouse_filter = 0
|
|
mouse_default_cursor_shape = 0
|
|
size_flags_horizontal = 1
|
|
size_flags_vertical = 1
|
|
popup_exclusive = false
|
|
window_title = "Generate full mesh"
|
|
resizable = false
|
|
script = ExtResource( 1 )
|
|
_sections_unfolded = [ "Rect" ]
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="." index="1"]
|
|
|
|
anchor_left = 0.0
|
|
anchor_top = 0.0
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
margin_left = 8.0
|
|
margin_top = 8.0
|
|
margin_right = -8.0
|
|
margin_bottom = -8.0
|
|
rect_pivot_offset = Vector2( 0, 0 )
|
|
rect_clip_content = false
|
|
mouse_filter = 1
|
|
mouse_default_cursor_shape = 0
|
|
size_flags_horizontal = 1
|
|
size_flags_vertical = 1
|
|
alignment = 0
|
|
_sections_unfolded = [ "Margin" ]
|
|
|
|
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer" index="0"]
|
|
|
|
anchor_left = 0.0
|
|
anchor_top = 0.0
|
|
anchor_right = 0.0
|
|
anchor_bottom = 0.0
|
|
margin_right = 432.0
|
|
margin_bottom = 24.0
|
|
rect_pivot_offset = Vector2( 0, 0 )
|
|
rect_clip_content = false
|
|
mouse_filter = 1
|
|
mouse_default_cursor_shape = 0
|
|
size_flags_horizontal = 1
|
|
size_flags_vertical = 1
|
|
alignment = 0
|
|
|
|
[node name="Label" type="Label" parent="VBoxContainer/HBoxContainer" index="0"]
|
|
|
|
anchor_left = 0.0
|
|
anchor_top = 0.0
|
|
anchor_right = 0.0
|
|
anchor_bottom = 0.0
|
|
margin_top = 5.0
|
|
margin_right = 28.0
|
|
margin_bottom = 19.0
|
|
rect_pivot_offset = Vector2( 0, 0 )
|
|
rect_clip_content = false
|
|
mouse_filter = 2
|
|
mouse_default_cursor_shape = 0
|
|
size_flags_horizontal = 1
|
|
size_flags_vertical = 4
|
|
text = "LOD"
|
|
percent_visible = 1.0
|
|
lines_skipped = 0
|
|
max_lines_visible = -1
|
|
|
|
[node name="LODSpinBox" type="SpinBox" parent="VBoxContainer/HBoxContainer" index="1"]
|
|
|
|
anchor_left = 0.0
|
|
anchor_top = 0.0
|
|
anchor_right = 0.0
|
|
anchor_bottom = 0.0
|
|
margin_left = 32.0
|
|
margin_right = 432.0
|
|
margin_bottom = 24.0
|
|
rect_pivot_offset = Vector2( 0, 0 )
|
|
rect_clip_content = false
|
|
mouse_filter = 0
|
|
mouse_default_cursor_shape = 0
|
|
size_flags_horizontal = 3
|
|
size_flags_vertical = 1
|
|
min_value = 1.0
|
|
max_value = 16.0
|
|
step = 1.0
|
|
page = 0.0
|
|
value = 1.0
|
|
exp_edit = false
|
|
rounded = false
|
|
editable = true
|
|
prefix = ""
|
|
suffix = ""
|
|
_sections_unfolded = [ "Size Flags" ]
|
|
|
|
[node name="PreviewLabel" type="Label" parent="VBoxContainer" index="1"]
|
|
|
|
anchor_left = 0.0
|
|
anchor_top = 0.0
|
|
anchor_right = 0.0
|
|
anchor_bottom = 0.0
|
|
margin_top = 28.0
|
|
margin_right = 432.0
|
|
margin_bottom = 42.0
|
|
rect_pivot_offset = Vector2( 0, 0 )
|
|
rect_clip_content = false
|
|
mouse_filter = 2
|
|
mouse_default_cursor_shape = 0
|
|
size_flags_horizontal = 1
|
|
size_flags_vertical = 4
|
|
text = "9999 vertices, 9999 triangles"
|
|
percent_visible = 1.0
|
|
lines_skipped = 0
|
|
max_lines_visible = -1
|
|
|
|
[node name="Spacer" type="Control" parent="VBoxContainer" index="2"]
|
|
|
|
anchor_left = 0.0
|
|
anchor_top = 0.0
|
|
anchor_right = 0.0
|
|
anchor_bottom = 0.0
|
|
margin_top = 46.0
|
|
margin_right = 432.0
|
|
margin_bottom = 54.0
|
|
rect_min_size = Vector2( 0, 8 )
|
|
rect_pivot_offset = Vector2( 0, 0 )
|
|
rect_clip_content = false
|
|
mouse_filter = 0
|
|
mouse_default_cursor_shape = 0
|
|
size_flags_horizontal = 1
|
|
size_flags_vertical = 1
|
|
_sections_unfolded = [ "Rect" ]
|
|
|
|
[node name="Label" type="Label" parent="VBoxContainer" index="3"]
|
|
|
|
anchor_left = 0.0
|
|
anchor_top = 0.0
|
|
anchor_right = 0.0
|
|
anchor_bottom = 0.0
|
|
margin_top = 58.0
|
|
margin_right = 432.0
|
|
margin_bottom = 123.0
|
|
rect_pivot_offset = Vector2( 0, 0 )
|
|
rect_clip_content = false
|
|
mouse_filter = 2
|
|
mouse_default_cursor_shape = 0
|
|
size_flags_horizontal = 1
|
|
size_flags_vertical = 4
|
|
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
|
|
percent_visible = 1.0
|
|
lines_skipped = 0
|
|
max_lines_visible = -1
|
|
_sections_unfolded = [ "custom_colors" ]
|
|
|
|
[node name="Buttons" type="HBoxContainer" parent="VBoxContainer" index="4"]
|
|
|
|
anchor_left = 0.0
|
|
anchor_top = 0.0
|
|
anchor_right = 0.0
|
|
anchor_bottom = 0.0
|
|
margin_top = 127.0
|
|
margin_right = 432.0
|
|
margin_bottom = 147.0
|
|
rect_pivot_offset = Vector2( 0, 0 )
|
|
rect_clip_content = false
|
|
mouse_filter = 1
|
|
mouse_default_cursor_shape = 0
|
|
size_flags_horizontal = 1
|
|
size_flags_vertical = 1
|
|
custom_constants/separation = 32
|
|
alignment = 1
|
|
_sections_unfolded = [ "custom_constants" ]
|
|
|
|
[node name="Generate" type="Button" parent="VBoxContainer/Buttons" index="0"]
|
|
|
|
anchor_left = 0.0
|
|
anchor_top = 0.0
|
|
anchor_right = 0.0
|
|
anchor_bottom = 0.0
|
|
margin_left = 137.0
|
|
margin_right = 208.0
|
|
margin_bottom = 20.0
|
|
rect_pivot_offset = Vector2( 0, 0 )
|
|
rect_clip_content = false
|
|
focus_mode = 2
|
|
mouse_filter = 0
|
|
mouse_default_cursor_shape = 0
|
|
size_flags_horizontal = 1
|
|
size_flags_vertical = 1
|
|
toggle_mode = false
|
|
enabled_focus_mode = 2
|
|
shortcut = null
|
|
group = null
|
|
text = "Generate"
|
|
flat = false
|
|
align = 1
|
|
|
|
[node name="Cancel" type="Button" parent="VBoxContainer/Buttons" index="1"]
|
|
|
|
anchor_left = 0.0
|
|
anchor_top = 0.0
|
|
anchor_right = 0.0
|
|
anchor_bottom = 0.0
|
|
margin_left = 240.0
|
|
margin_right = 294.0
|
|
margin_bottom = 20.0
|
|
rect_pivot_offset = Vector2( 0, 0 )
|
|
rect_clip_content = false
|
|
focus_mode = 2
|
|
mouse_filter = 0
|
|
mouse_default_cursor_shape = 0
|
|
size_flags_horizontal = 1
|
|
size_flags_vertical = 1
|
|
toggle_mode = false
|
|
enabled_focus_mode = 2
|
|
shortcut = null
|
|
group = null
|
|
text = "Cancel"
|
|
flat = false
|
|
align = 1
|
|
|
|
[connection signal="value_changed" from="VBoxContainer/HBoxContainer/LODSpinBox" to="." method="_on_LODSpinBox_value_changed"]
|
|
|
|
[connection signal="pressed" from="VBoxContainer/Buttons/Generate" to="." method="_on_Generate_pressed"]
|
|
|
|
[connection signal="pressed" from="VBoxContainer/Buttons/Cancel" to="." method="_on_Cancel_pressed"]
|
|
|
|
|