ile-de-test/addons/zylann.hterrain/tools/brush/brush_editor.tscn

133 lines
3.6 KiB
Text
Raw Normal View History

2023-10-05 18:02:23 +00:00
[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
2024-01-26 20:00:32 +00:00
[node name="SpinBox" type="SpinBox" parent="GridContainer/BrushSizeControl"]
2023-10-05 18:02:23 +00:00
layout_mode = 2
2024-01-26 20:00:32 +00:00
min_value = 2.0
max_value = 500.0
value = 2.0
2023-10-05 18:02:23 +00:00
[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
2024-01-26 20:00:32 +00:00
[node name="SpinBox" type="SpinBox" parent="GridContainer/BrushOpacityControl"]
2023-10-05 18:02:23 +00:00
layout_mode = 2
2024-01-26 20:00:32 +00:00
value = 1.0
2023-10-05 18:02:23 +00:00
[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"]