Skip to content

Commit f42d361

Browse files
Minor UI improvements for the mirroring buttons
1 parent dd8d217 commit f42d361

File tree

1 file changed

+18
-16
lines changed

1 file changed

+18
-16
lines changed

src/UI/GlobalToolOptions/GlobalToolOptions.tscn

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ size_flags_vertical = 0
7474
columns = 5
7575

7676
[node name="Horizontal" type="Button" parent="ScrollContainer/CenterContainer/GridContainer" groups=["UIButtons"]]
77-
custom_minimum_size = Vector2(44, 32)
77+
custom_minimum_size = Vector2(46, 32)
7878
layout_mode = 2
7979
tooltip_text = "Enable horizontal mirrored drawing"
8080
mouse_default_cursor_shape = 2
@@ -95,14 +95,14 @@ texture = ExtResource("1")
9595

9696
[node name="HorizontalMirrorOptions" type="MenuButton" parent="ScrollContainer/CenterContainer/GridContainer/Horizontal"]
9797
unique_name_in_owner = true
98-
custom_minimum_size = Vector2(22, 0)
98+
custom_minimum_size = Vector2(20, 0)
9999
layout_mode = 1
100100
anchors_preset = 6
101101
anchor_left = 1.0
102102
anchor_top = 0.5
103103
anchor_right = 1.0
104104
anchor_bottom = 0.5
105-
offset_left = -22.0
105+
offset_left = -20.0
106106
offset_top = -10.0
107107
offset_bottom = 10.0
108108
grow_horizontal = 0
@@ -114,7 +114,8 @@ popup/item_1/text = "Move to view center"
114114
popup/item_1/id = 1
115115

116116
[node name="TextureRect" type="TextureRect" parent="ScrollContainer/CenterContainer/GridContainer/Horizontal/HorizontalMirrorOptions"]
117-
layout_mode = 0
117+
layout_mode = 1
118+
anchors_preset = 8
118119
anchor_left = 0.5
119120
anchor_top = 0.5
120121
anchor_right = 0.5
@@ -123,10 +124,13 @@ offset_left = -6.0
123124
offset_top = -6.0
124125
offset_right = 6.0
125126
offset_bottom = 6.0
127+
grow_horizontal = 2
128+
grow_vertical = 2
126129
texture = ExtResource("3_faalk")
130+
stretch_mode = 3
127131

128132
[node name="Vertical" type="Button" parent="ScrollContainer/CenterContainer/GridContainer" groups=["UIButtons"]]
129-
custom_minimum_size = Vector2(44, 32)
133+
custom_minimum_size = Vector2(46, 32)
130134
layout_mode = 2
131135
tooltip_text = "Enable vertical mirrored drawing"
132136
mouse_default_cursor_shape = 2
@@ -147,14 +151,14 @@ texture = ExtResource("2")
147151

148152
[node name="VerticalMirrorOptions" type="MenuButton" parent="ScrollContainer/CenterContainer/GridContainer/Vertical"]
149153
unique_name_in_owner = true
150-
custom_minimum_size = Vector2(22, 0)
154+
custom_minimum_size = Vector2(20, 0)
151155
layout_mode = 1
152156
anchors_preset = 6
153157
anchor_left = 1.0
154158
anchor_top = 0.5
155159
anchor_right = 1.0
156160
anchor_bottom = 0.5
157-
offset_left = -22.0
161+
offset_left = -20.0
158162
offset_top = -10.0
159163
offset_bottom = 10.0
160164
grow_horizontal = 0
@@ -166,16 +170,14 @@ popup/item_1/text = "Move to view center"
166170
popup/item_1/id = 1
167171

168172
[node name="TextureRect" type="TextureRect" parent="ScrollContainer/CenterContainer/GridContainer/Vertical/VerticalMirrorOptions"]
169-
layout_mode = 0
170-
anchor_left = 0.5
171-
anchor_top = 0.5
172-
anchor_right = 0.5
173-
anchor_bottom = 0.5
174-
offset_left = -6.0
175-
offset_top = -6.0
176-
offset_right = 6.0
177-
offset_bottom = 6.0
173+
layout_mode = 1
174+
anchors_preset = 15
175+
anchor_right = 1.0
176+
anchor_bottom = 1.0
177+
grow_horizontal = 2
178+
grow_vertical = 2
178179
texture = ExtResource("3_faalk")
180+
stretch_mode = 3
179181

180182
[node name="PixelPerfect" type="Button" parent="ScrollContainer/CenterContainer/GridContainer" groups=["UIButtons"]]
181183
custom_minimum_size = Vector2(32, 32)

0 commit comments

Comments
 (0)