Skip to content

Commit

Permalink
radio btn grp 2
Browse files Browse the repository at this point in the history
  • Loading branch information
RorotoSic committed Mar 7, 2024
1 parent 51189ac commit 12309c0
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 9 deletions.
19 changes: 15 additions & 4 deletions src/Tools/DesignTools/Eraser.tscn
Original file line number Diff line number Diff line change
@@ -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:"
Expand Down
23 changes: 18 additions & 5 deletions src/Tools/DesignTools/Pencil.tscn
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 12309c0

Please sign in to comment.