159 lines
5.6 KiB
Text
159 lines
5.6 KiB
Text
[gd_scene load_steps=7 format=3 uid="uid://gt402qqhab7j"]
|
|
|
|
[ext_resource type="Script" path="res://addons/zylann.hterrain/tools/resize_dialog/resize_dialog.gd" id="1"]
|
|
[ext_resource type="Texture2D" uid="uid://b4ya0po3a4nqa" path="res://addons/zylann.hterrain/tools/icons/icon_heightmap_unmask.svg" id="2"]
|
|
[ext_resource type="Texture2D" uid="uid://d3vie0tj3ry6k" path="res://addons/zylann.hterrain/tools/icons/icon_long_arrow_right.svg" id="3"]
|
|
[ext_resource type="Texture2D" uid="uid://b6l5dys0awbwd" path="res://addons/zylann.hterrain/tools/icons/icon_long_arrow_down.svg" id="4"]
|
|
[ext_resource type="Texture2D" uid="uid://bdkcgtv1r5j31" path="res://addons/zylann.hterrain/tools/icons/icon_small_circle.svg" id="5"]
|
|
[ext_resource type="PackedScene" path="res://addons/zylann.hterrain/tools/util/dialog_fitter.tscn" id="6"]
|
|
|
|
[node name="ResizeDialog" type="AcceptDialog"]
|
|
title = "Resize terrain"
|
|
size = Vector2i(300, 201)
|
|
min_size = Vector2i(300, 200)
|
|
script = ExtResource("1")
|
|
|
|
[node name="VBoxContainer" 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="GridContainer" type="GridContainer" parent="VBoxContainer"]
|
|
layout_mode = 2
|
|
columns = 2
|
|
|
|
[node name="Label" type="Label" parent="VBoxContainer/GridContainer"]
|
|
layout_mode = 2
|
|
text = "Resolution"
|
|
|
|
[node name="ResolutionDropdown" type="OptionButton" parent="VBoxContainer/GridContainer"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
toggle_mode = false
|
|
|
|
[node name="Label3" type="Label" parent="VBoxContainer/GridContainer"]
|
|
layout_mode = 2
|
|
text = "Stretch"
|
|
|
|
[node name="StretchCheckBox" type="CheckBox" parent="VBoxContainer/GridContainer"]
|
|
layout_mode = 2
|
|
|
|
[node name="Label2" type="Label" parent="VBoxContainer/GridContainer"]
|
|
layout_mode = 2
|
|
text = "Direction"
|
|
|
|
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer/GridContainer"]
|
|
layout_mode = 2
|
|
|
|
[node name="AnchorControl" type="GridContainer" parent="VBoxContainer/GridContainer/HBoxContainer"]
|
|
layout_mode = 2
|
|
columns = 3
|
|
|
|
[node name="TopLeftButton" type="Button" parent="VBoxContainer/GridContainer/HBoxContainer/AnchorControl"]
|
|
layout_mode = 2
|
|
icon = ExtResource("2")
|
|
|
|
[node name="TopButton" type="Button" parent="VBoxContainer/GridContainer/HBoxContainer/AnchorControl"]
|
|
layout_mode = 2
|
|
icon = ExtResource("2")
|
|
|
|
[node name="TopRightButton" type="Button" parent="VBoxContainer/GridContainer/HBoxContainer/AnchorControl"]
|
|
layout_mode = 2
|
|
icon = ExtResource("2")
|
|
|
|
[node name="LeftButton" type="Button" parent="VBoxContainer/GridContainer/HBoxContainer/AnchorControl"]
|
|
layout_mode = 2
|
|
icon = ExtResource("2")
|
|
|
|
[node name="CenterButton" type="Button" parent="VBoxContainer/GridContainer/HBoxContainer/AnchorControl"]
|
|
layout_mode = 2
|
|
icon = ExtResource("2")
|
|
|
|
[node name="RightButton" type="Button" parent="VBoxContainer/GridContainer/HBoxContainer/AnchorControl"]
|
|
layout_mode = 2
|
|
icon = ExtResource("2")
|
|
|
|
[node name="ButtomLeftButton" type="Button" parent="VBoxContainer/GridContainer/HBoxContainer/AnchorControl"]
|
|
layout_mode = 2
|
|
icon = ExtResource("2")
|
|
|
|
[node name="ButtomButton" type="Button" parent="VBoxContainer/GridContainer/HBoxContainer/AnchorControl"]
|
|
layout_mode = 2
|
|
icon = ExtResource("2")
|
|
|
|
[node name="BottomRightButton" type="Button" parent="VBoxContainer/GridContainer/HBoxContainer/AnchorControl"]
|
|
layout_mode = 2
|
|
icon = ExtResource("2")
|
|
|
|
[node name="Reference" type="Control" parent="VBoxContainer/GridContainer/HBoxContainer"]
|
|
custom_minimum_size = Vector2(100, 0)
|
|
layout_mode = 2
|
|
|
|
[node name="XArrow" type="TextureRect" parent="VBoxContainer/GridContainer/HBoxContainer/Reference"]
|
|
modulate = Color(1, 0.292969, 0.292969, 1)
|
|
layout_mode = 0
|
|
anchor_right = 1.0
|
|
offset_left = 9.0
|
|
offset_bottom = 16.0
|
|
texture = ExtResource("3")
|
|
|
|
[node name="ZArrow" type="TextureRect" parent="VBoxContainer/GridContainer/HBoxContainer/Reference"]
|
|
modulate = Color(0.292969, 0.602295, 1, 1)
|
|
layout_mode = 0
|
|
anchor_bottom = 1.0
|
|
offset_top = 10.0
|
|
offset_right = 16.0
|
|
texture = ExtResource("4")
|
|
|
|
[node name="ZLabel" type="Label" parent="VBoxContainer/GridContainer/HBoxContainer/Reference"]
|
|
layout_mode = 0
|
|
offset_left = 14.0
|
|
offset_top = 54.0
|
|
offset_right = 22.0
|
|
offset_bottom = 68.0
|
|
text = "Z"
|
|
|
|
[node name="XLabel" type="Label" parent="VBoxContainer/GridContainer/HBoxContainer/Reference"]
|
|
layout_mode = 0
|
|
offset_left = 52.0
|
|
offset_top = 14.0
|
|
offset_right = 60.0
|
|
offset_bottom = 28.0
|
|
text = "X"
|
|
|
|
[node name="Origin" type="TextureRect" parent="VBoxContainer/GridContainer/HBoxContainer/Reference"]
|
|
layout_mode = 0
|
|
offset_left = 3.0
|
|
offset_top = 4.0
|
|
offset_right = 11.0
|
|
offset_bottom = 12.0
|
|
texture = ExtResource("5")
|
|
|
|
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer"]
|
|
layout_mode = 2
|
|
alignment = 1
|
|
|
|
[node name="ApplyButton" type="Button" parent="VBoxContainer/HBoxContainer"]
|
|
layout_mode = 2
|
|
text = "Apply (no undo)"
|
|
|
|
[node name="CancelButton" type="Button" parent="VBoxContainer/HBoxContainer"]
|
|
layout_mode = 2
|
|
text = "Cancel"
|
|
|
|
[node name="DialogFitter" parent="." instance=ExtResource("6")]
|
|
layout_mode = 3
|
|
anchors_preset = 0
|
|
offset_left = 8.0
|
|
offset_top = 8.0
|
|
offset_right = 292.0
|
|
offset_bottom = 183.0
|
|
|
|
[connection signal="item_selected" from="VBoxContainer/GridContainer/ResolutionDropdown" to="." method="_on_ResolutionDropdown_item_selected"]
|
|
[connection signal="toggled" from="VBoxContainer/GridContainer/StretchCheckBox" to="." method="_on_StretchCheckBox_toggled"]
|
|
[connection signal="pressed" from="VBoxContainer/HBoxContainer/ApplyButton" to="." method="_on_ApplyButton_pressed"]
|
|
[connection signal="pressed" from="VBoxContainer/HBoxContainer/CancelButton" to="." method="_on_CancelButton_pressed"]
|