diff --git a/src/Tools/DesignTools/Eraser.tscn b/src/Tools/DesignTools/Eraser.tscn index 1a8354f47..74d3c412c 100644 --- a/src/Tools/DesignTools/Eraser.tscn +++ b/src/Tools/DesignTools/Eraser.tscn @@ -1,16 +1,27 @@ -[gd_scene load_steps=4 format=3 uid="uid://btmbrqqig7wys"] +[gd_scene load_steps=5 format=3 uid="uid://btmbrqqig7wys"] [ext_resource type="PackedScene" uid="uid://ubyatap3sylf" path="res://src/Tools/BaseDraw.tscn" id="1"] [ext_resource type="Script" path="res://src/Tools/DesignTools/Eraser.gd" id="2"] [ext_resource type="PackedScene" uid="uid://yjhp0ssng2mp" path="res://src/UI/Nodes/ValueSlider.tscn" id="3"] +[sub_resource type="ButtonGroup" id="ButtonGroup_mdp2d"] +resource_name = "rotate" +allow_unpress = true + [node name="ToolOptions" instance=ExtResource("1")] script = ExtResource("2") -[node name="OpacitySlider" parent="." index="4" instance=ExtResource("3")] +[node name="Rotate90" parent="Rotate" index="0"] +button_group = SubResource("ButtonGroup_mdp2d") + +[node name="Rotate180" parent="Rotate" index="1"] +button_group = SubResource("ButtonGroup_mdp2d") + +[node name="Rotate270" parent="Rotate" index="2"] +button_group = SubResource("ButtonGroup_mdp2d") + +[node name="OpacitySlider" parent="." index="7" instance=ExtResource("3")] layout_mode = 2 -focus_mode = 2 -theme_type_variation = &"ValueSlider" max_value = 255.0 value = 255.0 prefix = "Opacity:" diff --git a/src/Tools/DesignTools/Pencil.tscn b/src/Tools/DesignTools/Pencil.tscn index 1d56b0df8..3cab910b0 100644 --- a/src/Tools/DesignTools/Pencil.tscn +++ b/src/Tools/DesignTools/Pencil.tscn @@ -1,29 +1,42 @@ -[gd_scene load_steps=4 format=3 uid="uid://cul5mpy17ebfl"] +[gd_scene load_steps=5 format=3 uid="uid://cul5mpy17ebfl"] [ext_resource type="PackedScene" uid="uid://ubyatap3sylf" path="res://src/Tools/BaseDraw.tscn" id="1"] [ext_resource type="PackedScene" path="res://src/UI/Nodes/ValueSliderV2.tscn" id="2"] [ext_resource type="Script" path="res://src/Tools/DesignTools/Pencil.gd" id="3"] +[sub_resource type="ButtonGroup" id="ButtonGroup_easm4"] +resource_name = "rotate" +allow_unpress = true + [node name="ToolOptions" instance=ExtResource("1")] script = ExtResource("3") -[node name="Overwrite" type="CheckBox" parent="." index="6"] +[node name="Rotate90" parent="Rotate" index="0"] +button_group = SubResource("ButtonGroup_easm4") + +[node name="Rotate180" parent="Rotate" index="1"] +button_group = SubResource("ButtonGroup_easm4") + +[node name="Rotate270" parent="Rotate" index="2"] +button_group = SubResource("ButtonGroup_easm4") + +[node name="Overwrite" type="CheckBox" parent="." index="7"] layout_mode = 2 tooltip_text = "Overwrites color instead of blending it. This option is only relevant with colors that are not fully opaque" mouse_default_cursor_shape = 2 text = "Overwrite color" -[node name="FillInside" type="CheckBox" parent="." index="7"] +[node name="FillInside" type="CheckBox" parent="." index="8"] layout_mode = 2 mouse_default_cursor_shape = 2 text = "Fill inside" -[node name="SpacingMode" type="CheckBox" parent="." index="8"] +[node name="SpacingMode" type="CheckBox" parent="." index="9"] layout_mode = 2 mouse_default_cursor_shape = 2 text = "Spacing" -[node name="Spacing" parent="." index="9" instance=ExtResource("2")] +[node name="Spacing" parent="." index="10" instance=ExtResource("2")] visible = false layout_mode = 2 allow_greater = true