blob: 42ef980c046c33b7687fd8ad708e8a20e43f45e4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
|
[gd_scene load_steps=4 format=3 uid="uid://bd42ig216p216"]
[ext_resource type="Script" path="res://addons/zylann.hterrain/tools/brush/brush_editor.gd" id="1"]
[ext_resource type="Script" path="res://addons/zylann.hterrain/tools/util/interval_slider.gd" id="3"]
[sub_resource type="CanvasItemMaterial" id="1"]
blend_mode = 1
[node name="BrushEditor" type="HBoxContainer"]
custom_minimum_size = Vector2(200, 0)
offset_right = 293.0
offset_bottom = 211.0
script = ExtResource("1")
[node name="BrushShapeButton" type="Button" parent="."]
custom_minimum_size = Vector2(50, 0)
layout_mode = 2
[node name="TextureRect" type="TextureRect" parent="BrushShapeButton"]
material = SubResource("1")
layout_mode = 0
anchor_right = 1.0
anchor_bottom = 1.0
mouse_filter = 2
expand_mode = 1
stretch_mode = 5
[node name="GridContainer" type="GridContainer" parent="."]
layout_mode = 2
size_flags_horizontal = 3
columns = 2
[node name="BrushSizeLabel" type="Label" parent="GridContainer"]
layout_mode = 2
text = "Brush size"
[node name="BrushSizeControl" type="HBoxContainer" parent="GridContainer"]
layout_mode = 2
size_flags_horizontal = 3
mouse_filter = 0
[node name="Slider" type="HSlider" parent="GridContainer/BrushSizeControl"]
custom_minimum_size = Vector2(60, 0)
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 1
min_value = 2.0
max_value = 500.0
value = 2.0
exp_edit = true
rounded = true
[node name="Label" type="Label" parent="GridContainer/BrushSizeControl"]
layout_mode = 2
text = "999"
[node name="BrushOpacityLabel" type="Label" parent="GridContainer"]
layout_mode = 2
text = "Brush opacity"
[node name="BrushOpacityControl" type="HBoxContainer" parent="GridContainer"]
layout_mode = 2
size_flags_horizontal = 3
[node name="Slider" type="HSlider" parent="GridContainer/BrushOpacityControl"]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 1
[node name="Label" type="Label" parent="GridContainer/BrushOpacityControl"]
layout_mode = 2
text = "999"
[node name="FlattenHeightLabel" type="Label" parent="GridContainer"]
layout_mode = 2
text = "Flatten height"
[node name="HB" type="HBoxContainer" parent="GridContainer"]
layout_mode = 2
[node name="FlattenHeightControl" type="SpinBox" parent="GridContainer/HB"]
layout_mode = 2
size_flags_horizontal = 3
min_value = -500.0
max_value = 500.0
step = 0.01
[node name="FlattenHeightPickButton" type="Button" parent="GridContainer/HB"]
layout_mode = 2
toggle_mode = true
text = "Pick"
[node name="ColorLabel" type="Label" parent="GridContainer"]
layout_mode = 2
text = "Color"
[node name="ColorPickerButton" type="ColorPickerButton" parent="GridContainer"]
layout_mode = 2
toggle_mode = false
color = Color(1, 1, 1, 1)
[node name="DensityLabel" type="Label" parent="GridContainer"]
layout_mode = 2
text = "Detail density"
[node name="DensitySlider" type="HSlider" parent="GridContainer"]
layout_mode = 2
max_value = 1.0
step = 0.1
[node name="HoleLabel" type="Label" parent="GridContainer"]
layout_mode = 2
text = "Draw holes"
[node name="HoleCheckbox" type="CheckBox" parent="GridContainer"]
layout_mode = 2
[node name="SlopeLimitLabel" type="Label" parent="GridContainer"]
layout_mode = 2
text = "Slope limit"
[node name="SlopeLimit" type="Control" parent="GridContainer"]
layout_mode = 2
script = ExtResource("3")
range = Vector2(0, 90)
[node name="Temp" type="Node" parent="."]
[connection signal="pressed" from="BrushShapeButton" to="." method="_on_BrushShapeButton_pressed"]
[connection signal="pressed" from="GridContainer/HB/FlattenHeightPickButton" to="." method="_on_FlattenHeightPickButton_pressed"]
|