Skip to content

Commit

Permalink
rotate ButtonGroup (radio btn)
Browse files Browse the repository at this point in the history
  • Loading branch information
RorotoSic committed Mar 7, 2024
1 parent 7519fd6 commit 1791e96
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/Tools/BaseDraw.tscn
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
[gd_scene load_steps=6 format=3 uid="uid://ubyatap3sylf"]
[gd_scene load_steps=7 format=3 uid="uid://ubyatap3sylf"]

[ext_resource type="PackedScene" uid="uid://yjhp0ssng2mp" path="res://src/UI/Nodes/ValueSlider.tscn" id="1"]
[ext_resource type="PackedScene" uid="uid://ctfgfelg0sho8" path="res://src/Tools/BaseTool.tscn" id="2"]
[ext_resource type="Script" path="res://src/Tools/BaseDraw.gd" id="3"]

[sub_resource type="ButtonGroup" id="ButtonGroup_7u3x0"]
resource_name = "rotate"
allow_unpress = true

[sub_resource type="StyleBoxFlat" id="1"]
bg_color = Color(1, 1, 1, 1)
border_color = Color(1, 1, 1, 1)
Expand Down Expand Up @@ -41,14 +45,17 @@ layout_mode = 2

[node name="Rotate90" type="CheckBox" parent="Rotate" index="0"]
layout_mode = 2
button_group = SubResource("ButtonGroup_7u3x0")
text = "R 90"

[node name="Rotate180" type="CheckBox" parent="Rotate" index="1"]
layout_mode = 2
button_group = SubResource("ButtonGroup_7u3x0")
text = "R 180"

[node name="Rotate270" type="CheckBox" parent="Rotate" index="2"]
layout_mode = 2
button_group = SubResource("ButtonGroup_7u3x0")
text = "R 270"

[node name="Brush" type="HBoxContainer" parent="." index="4"]
Expand Down

0 comments on commit 1791e96

Please sign in to comment.