diff options
author | Gone2Daly <71726742+Gone2Daly@users.noreply.github.com> | 2023-07-22 21:05:42 +0200 |
---|---|---|
committer | Gone2Daly <71726742+Gone2Daly@users.noreply.github.com> | 2023-07-22 21:05:42 +0200 |
commit | 71b3cd829f80de4c2cd3972d8bfd5ee470a5d180 (patch) | |
tree | b4280fde6eef2ae6987648bc7bf8e00e9011bb7f /game/addons/zylann.hterrain/tools/exporter/export_image_dialog.tscn | |
parent | ce9022d0df74d6c33db3686622be2050d873ab0b (diff) |
init_testtest3d
Diffstat (limited to 'game/addons/zylann.hterrain/tools/exporter/export_image_dialog.tscn')
-rw-r--r-- | game/addons/zylann.hterrain/tools/exporter/export_image_dialog.tscn | 125 |
1 files changed, 125 insertions, 0 deletions
diff --git a/game/addons/zylann.hterrain/tools/exporter/export_image_dialog.tscn b/game/addons/zylann.hterrain/tools/exporter/export_image_dialog.tscn new file mode 100644 index 0000000..a702181 --- /dev/null +++ b/game/addons/zylann.hterrain/tools/exporter/export_image_dialog.tscn @@ -0,0 +1,125 @@ +[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"] |