ile-de-test/addons/zylann.hterrain/tools/exporter/export_image_dialog.tscn

126 lines
3.8 KiB
Text
Raw Normal View History

2023-10-05 18:02:23 +00:00
[gd_scene load_steps=3 format=3 uid="uid://bcocysgmum5ag"]
[ext_resource type="Script" path="res://addons/zylann.hterrain/tools/exporter/export_image_dialog.gd" id="1"]
[ext_resource type="PackedScene" path="res://addons/zylann.hterrain/tools/util/dialog_fitter.tscn" id="2"]
[node name="ExportImageDialog" type="AcceptDialog"]
size = Vector2i(500, 340)
min_size = Vector2i(500, 250)
script = ExtResource("1")
[node name="VB" type="VBoxContainer" parent="."]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = 8.0
offset_top = 8.0
offset_right = -8.0
offset_bottom = -18.0
[node name="Grid" type="GridContainer" parent="VB"]
layout_mode = 2
columns = 2
[node name="OutputPathLabel" type="Label" parent="VB/Grid"]
layout_mode = 2
text = "Output path:"
[node name="OutputPath" type="HBoxContainer" parent="VB/Grid"]
layout_mode = 2
size_flags_horizontal = 3
[node name="HeightmapPathLineEdit" type="LineEdit" parent="VB/Grid/OutputPath"]
layout_mode = 2
size_flags_horizontal = 3
[node name="HeightmapPathBrowseButton" type="Button" parent="VB/Grid/OutputPath"]
layout_mode = 2
text = "..."
[node name="FormatLabel" type="Label" parent="VB/Grid"]
layout_mode = 2
text = "Format:"
[node name="FormatSelector" type="OptionButton" parent="VB/Grid"]
layout_mode = 2
[node name="HeightRangeLabel" type="Label" parent="VB/Grid"]
layout_mode = 2
text = "Height range:"
[node name="HeightRange" type="HBoxContainer" parent="VB/Grid"]
layout_mode = 2
[node name="Label" type="Label" parent="VB/Grid/HeightRange"]
layout_mode = 2
text = "Min"
[node name="HeightRangeMin" type="SpinBox" parent="VB/Grid/HeightRange"]
custom_minimum_size = Vector2(100, 0)
layout_mode = 2
min_value = -10000.0
max_value = 10000.0
step = 0.0
value = -2000.0
[node name="Label2" type="Label" parent="VB/Grid/HeightRange"]
layout_mode = 2
text = "Max"
[node name="HeightRangeMax" type="SpinBox" parent="VB/Grid/HeightRange"]
custom_minimum_size = Vector2(100, 0)
layout_mode = 2
min_value = -10000.0
max_value = 10000.0
step = 0.0
value = 2000.0
[node name="HeightRangeAutoButton" type="Button" parent="VB/Grid/HeightRange"]
layout_mode = 2
size_flags_horizontal = 3
text = "Auto"
[node name="ShowInExplorerCheckbox" type="CheckBox" parent="VB"]
layout_mode = 2
text = "Show in explorer after export"
[node name="Spacer" type="Control" parent="VB"]
custom_minimum_size = Vector2(0, 16)
layout_mode = 2
[node name="Label" type="Label" parent="VB"]
layout_mode = 2
text = "Note: height range is needed for integer image formats, as they can't directly represent the real height. 8-bit formats may cause precision loss."
autowrap_mode = 2
[node name="Spacer2" type="Control" parent="VB"]
custom_minimum_size = Vector2(0, 16)
layout_mode = 2
[node name="Buttons" type="HBoxContainer" parent="VB"]
layout_mode = 2
alignment = 1
[node name="ExportButton" type="Button" parent="VB/Buttons"]
layout_mode = 2
text = "Export"
[node name="CancelButton" type="Button" parent="VB/Buttons"]
layout_mode = 2
text = "Cancel"
[node name="DialogFitter" parent="." instance=ExtResource("2")]
layout_mode = 3
anchors_preset = 0
offset_left = 8.0
offset_top = 8.0
offset_right = 492.0
offset_bottom = 322.0
[connection signal="text_changed" from="VB/Grid/OutputPath/HeightmapPathLineEdit" to="." method="_on_HeightmapPathLineEdit_text_changed"]
[connection signal="pressed" from="VB/Grid/OutputPath/HeightmapPathBrowseButton" to="." method="_on_HeightmapPathBrowseButton_pressed"]
[connection signal="item_selected" from="VB/Grid/FormatSelector" to="." method="_on_FormatSelector_item_selected"]
[connection signal="pressed" from="VB/Grid/HeightRange/HeightRangeAutoButton" to="." method="_on_HeightRangeAutoButton_pressed"]
[connection signal="pressed" from="VB/Buttons/ExportButton" to="." method="_on_ExportButton_pressed"]
[connection signal="pressed" from="VB/Buttons/CancelButton" to="." method="_on_CancelButton_pressed"]