1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-18 09:09:47 +00:00

Minor UI improvements for the mirroring buttons

This commit is contained in:
Emmanouil Papadeas 2024-10-23 12:00:19 +03:00
parent dd8d217dc3
commit f42d361a42

View file

@ -74,7 +74,7 @@ size_flags_vertical = 0
columns = 5 columns = 5
[node name="Horizontal" type="Button" parent="ScrollContainer/CenterContainer/GridContainer" groups=["UIButtons"]] [node name="Horizontal" type="Button" parent="ScrollContainer/CenterContainer/GridContainer" groups=["UIButtons"]]
custom_minimum_size = Vector2(44, 32) custom_minimum_size = Vector2(46, 32)
layout_mode = 2 layout_mode = 2
tooltip_text = "Enable horizontal mirrored drawing" tooltip_text = "Enable horizontal mirrored drawing"
mouse_default_cursor_shape = 2 mouse_default_cursor_shape = 2
@ -95,14 +95,14 @@ texture = ExtResource("1")
[node name="HorizontalMirrorOptions" type="MenuButton" parent="ScrollContainer/CenterContainer/GridContainer/Horizontal"] [node name="HorizontalMirrorOptions" type="MenuButton" parent="ScrollContainer/CenterContainer/GridContainer/Horizontal"]
unique_name_in_owner = true unique_name_in_owner = true
custom_minimum_size = Vector2(22, 0) custom_minimum_size = Vector2(20, 0)
layout_mode = 1 layout_mode = 1
anchors_preset = 6 anchors_preset = 6
anchor_left = 1.0 anchor_left = 1.0
anchor_top = 0.5 anchor_top = 0.5
anchor_right = 1.0 anchor_right = 1.0
anchor_bottom = 0.5 anchor_bottom = 0.5
offset_left = -22.0 offset_left = -20.0
offset_top = -10.0 offset_top = -10.0
offset_bottom = 10.0 offset_bottom = 10.0
grow_horizontal = 0 grow_horizontal = 0
@ -114,7 +114,8 @@ popup/item_1/text = "Move to view center"
popup/item_1/id = 1 popup/item_1/id = 1
[node name="TextureRect" type="TextureRect" parent="ScrollContainer/CenterContainer/GridContainer/Horizontal/HorizontalMirrorOptions"] [node name="TextureRect" type="TextureRect" parent="ScrollContainer/CenterContainer/GridContainer/Horizontal/HorizontalMirrorOptions"]
layout_mode = 0 layout_mode = 1
anchors_preset = 8
anchor_left = 0.5 anchor_left = 0.5
anchor_top = 0.5 anchor_top = 0.5
anchor_right = 0.5 anchor_right = 0.5
@ -123,10 +124,13 @@ offset_left = -6.0
offset_top = -6.0 offset_top = -6.0
offset_right = 6.0 offset_right = 6.0
offset_bottom = 6.0 offset_bottom = 6.0
grow_horizontal = 2
grow_vertical = 2
texture = ExtResource("3_faalk") texture = ExtResource("3_faalk")
stretch_mode = 3
[node name="Vertical" type="Button" parent="ScrollContainer/CenterContainer/GridContainer" groups=["UIButtons"]] [node name="Vertical" type="Button" parent="ScrollContainer/CenterContainer/GridContainer" groups=["UIButtons"]]
custom_minimum_size = Vector2(44, 32) custom_minimum_size = Vector2(46, 32)
layout_mode = 2 layout_mode = 2
tooltip_text = "Enable vertical mirrored drawing" tooltip_text = "Enable vertical mirrored drawing"
mouse_default_cursor_shape = 2 mouse_default_cursor_shape = 2
@ -147,14 +151,14 @@ texture = ExtResource("2")
[node name="VerticalMirrorOptions" type="MenuButton" parent="ScrollContainer/CenterContainer/GridContainer/Vertical"] [node name="VerticalMirrorOptions" type="MenuButton" parent="ScrollContainer/CenterContainer/GridContainer/Vertical"]
unique_name_in_owner = true unique_name_in_owner = true
custom_minimum_size = Vector2(22, 0) custom_minimum_size = Vector2(20, 0)
layout_mode = 1 layout_mode = 1
anchors_preset = 6 anchors_preset = 6
anchor_left = 1.0 anchor_left = 1.0
anchor_top = 0.5 anchor_top = 0.5
anchor_right = 1.0 anchor_right = 1.0
anchor_bottom = 0.5 anchor_bottom = 0.5
offset_left = -22.0 offset_left = -20.0
offset_top = -10.0 offset_top = -10.0
offset_bottom = 10.0 offset_bottom = 10.0
grow_horizontal = 0 grow_horizontal = 0
@ -166,16 +170,14 @@ popup/item_1/text = "Move to view center"
popup/item_1/id = 1 popup/item_1/id = 1
[node name="TextureRect" type="TextureRect" parent="ScrollContainer/CenterContainer/GridContainer/Vertical/VerticalMirrorOptions"] [node name="TextureRect" type="TextureRect" parent="ScrollContainer/CenterContainer/GridContainer/Vertical/VerticalMirrorOptions"]
layout_mode = 0 layout_mode = 1
anchor_left = 0.5 anchors_preset = 15
anchor_top = 0.5 anchor_right = 1.0
anchor_right = 0.5 anchor_bottom = 1.0
anchor_bottom = 0.5 grow_horizontal = 2
offset_left = -6.0 grow_vertical = 2
offset_top = -6.0
offset_right = 6.0
offset_bottom = 6.0
texture = ExtResource("3_faalk") texture = ExtResource("3_faalk")
stretch_mode = 3
[node name="PixelPerfect" type="Button" parent="ScrollContainer/CenterContainer/GridContainer" groups=["UIButtons"]] [node name="PixelPerfect" type="Button" parent="ScrollContainer/CenterContainer/GridContainer" groups=["UIButtons"]]
custom_minimum_size = Vector2(32, 32) custom_minimum_size = Vector2(32, 32)