2022-02-28 17:24:14 +00:00
|
|
|
[gd_scene load_steps=5 format=2]
|
2022-02-28 16:59:30 +00:00
|
|
|
|
|
|
|
[ext_resource path="res://assets/graphics/misc/horizontal_mirror_off.png" type="Texture" id=1]
|
|
|
|
[ext_resource path="res://assets/graphics/misc/vertical_mirror_off.png" type="Texture" id=2]
|
|
|
|
[ext_resource path="res://src/UI/GlobalToolOptions.gd" type="Script" id=3]
|
2022-02-28 17:24:14 +00:00
|
|
|
[ext_resource path="res://assets/graphics/misc/pixel_perfect_off.png" type="Texture" id=4]
|
2022-02-28 16:59:30 +00:00
|
|
|
|
|
|
|
[node name="Global Tool Options" type="PanelContainer"]
|
2022-03-01 00:16:53 +00:00
|
|
|
margin_left = 1.0
|
|
|
|
margin_right = 195.0
|
|
|
|
margin_bottom = 50.0
|
2022-02-28 16:59:30 +00:00
|
|
|
rect_min_size = Vector2( 0, 36 )
|
|
|
|
script = ExtResource( 3 )
|
|
|
|
|
|
|
|
[node name="ScrollContainer" type="ScrollContainer" parent="."]
|
|
|
|
margin_left = 7.0
|
|
|
|
margin_top = 7.0
|
2022-03-01 00:16:53 +00:00
|
|
|
margin_right = 187.0
|
|
|
|
margin_bottom = 43.0
|
|
|
|
rect_min_size = Vector2( 36, 36 )
|
2022-02-28 16:59:30 +00:00
|
|
|
|
2022-03-01 00:16:53 +00:00
|
|
|
[node name="CenterContainer" type="CenterContainer" parent="ScrollContainer"]
|
|
|
|
margin_right = 180.0
|
|
|
|
margin_bottom = 36.0
|
|
|
|
size_flags_horizontal = 3
|
|
|
|
size_flags_vertical = 3
|
|
|
|
|
|
|
|
[node name="GridContainer" type="GridContainer" parent="ScrollContainer/CenterContainer"]
|
|
|
|
margin_left = 38.0
|
|
|
|
margin_top = 2.0
|
|
|
|
margin_right = 142.0
|
|
|
|
margin_bottom = 34.0
|
|
|
|
size_flags_vertical = 0
|
2022-02-28 16:59:30 +00:00
|
|
|
columns = 3
|
|
|
|
|
2022-03-01 00:16:53 +00:00
|
|
|
[node name="Horizontal" type="Button" parent="ScrollContainer/CenterContainer/GridContainer" groups=["UIButtons"]]
|
2022-02-28 16:59:30 +00:00
|
|
|
margin_right = 32.0
|
|
|
|
margin_bottom = 32.0
|
|
|
|
rect_min_size = Vector2( 32, 32 )
|
|
|
|
hint_tooltip = "Enable horizontal mirrored drawing"
|
|
|
|
mouse_default_cursor_shape = 2
|
|
|
|
toggle_mode = true
|
|
|
|
|
2022-03-01 00:16:53 +00:00
|
|
|
[node name="TextureRect" type="TextureRect" parent="ScrollContainer/CenterContainer/GridContainer/Horizontal"]
|
2022-02-28 16:59:30 +00:00
|
|
|
anchor_left = 0.5
|
|
|
|
anchor_top = 0.5
|
|
|
|
anchor_right = 0.5
|
|
|
|
anchor_bottom = 0.5
|
2022-04-01 10:45:24 +00:00
|
|
|
margin_left = -10.0
|
|
|
|
margin_top = -10.5
|
|
|
|
margin_right = 10.0
|
|
|
|
margin_bottom = 10.5
|
2022-02-28 16:59:30 +00:00
|
|
|
texture = ExtResource( 1 )
|
|
|
|
__meta__ = {
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
}
|
|
|
|
|
2022-03-01 00:16:53 +00:00
|
|
|
[node name="Vertical" type="Button" parent="ScrollContainer/CenterContainer/GridContainer" groups=["UIButtons"]]
|
2022-02-28 16:59:30 +00:00
|
|
|
margin_left = 36.0
|
|
|
|
margin_right = 68.0
|
|
|
|
margin_bottom = 32.0
|
|
|
|
rect_min_size = Vector2( 32, 32 )
|
|
|
|
hint_tooltip = "Enable vertical mirrored drawing"
|
|
|
|
mouse_default_cursor_shape = 2
|
|
|
|
toggle_mode = true
|
|
|
|
|
2022-03-01 00:16:53 +00:00
|
|
|
[node name="TextureRect" type="TextureRect" parent="ScrollContainer/CenterContainer/GridContainer/Vertical"]
|
2022-02-28 16:59:30 +00:00
|
|
|
anchor_left = 0.5
|
|
|
|
anchor_top = 0.5
|
|
|
|
anchor_right = 0.5
|
|
|
|
anchor_bottom = 0.5
|
2022-04-01 10:45:24 +00:00
|
|
|
margin_left = -10.0
|
|
|
|
margin_top = -10.0
|
|
|
|
margin_right = 10.0
|
|
|
|
margin_bottom = 10.0
|
2022-02-28 16:59:30 +00:00
|
|
|
texture = ExtResource( 2 )
|
|
|
|
__meta__ = {
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
}
|
|
|
|
|
2022-03-01 00:16:53 +00:00
|
|
|
[node name="PixelPerfect" type="Button" parent="ScrollContainer/CenterContainer/GridContainer" groups=["UIButtons"]]
|
2022-02-28 17:24:14 +00:00
|
|
|
margin_left = 72.0
|
|
|
|
margin_right = 104.0
|
|
|
|
margin_bottom = 32.0
|
|
|
|
rect_min_size = Vector2( 32, 32 )
|
|
|
|
hint_tooltip = "Pixel Perfect
|
|
|
|
Makes lines smooth by removing the extra pixels on the edges"
|
|
|
|
mouse_default_cursor_shape = 2
|
|
|
|
toggle_mode = true
|
|
|
|
|
2022-03-01 00:16:53 +00:00
|
|
|
[node name="TextureRect" type="TextureRect" parent="ScrollContainer/CenterContainer/GridContainer/PixelPerfect"]
|
2022-02-28 17:24:14 +00:00
|
|
|
anchor_left = 0.5
|
|
|
|
anchor_top = 0.5
|
|
|
|
anchor_right = 0.5
|
|
|
|
anchor_bottom = 0.5
|
|
|
|
margin_left = -11.0
|
2022-04-01 10:45:24 +00:00
|
|
|
margin_top = -10.0
|
2022-02-28 17:24:14 +00:00
|
|
|
margin_right = 11.0
|
2022-04-01 10:45:24 +00:00
|
|
|
margin_bottom = 10.0
|
2022-02-28 17:24:14 +00:00
|
|
|
texture = ExtResource( 4 )
|
|
|
|
|
2022-02-28 16:59:30 +00:00
|
|
|
[connection signal="resized" from="." to="." method="_on_resized"]
|
2022-03-01 00:16:53 +00:00
|
|
|
[connection signal="toggled" from="ScrollContainer/CenterContainer/GridContainer/Horizontal" to="." method="_on_Horizontal_toggled"]
|
|
|
|
[connection signal="toggled" from="ScrollContainer/CenterContainer/GridContainer/Vertical" to="." method="_on_Vertical_toggled"]
|
|
|
|
[connection signal="toggled" from="ScrollContainer/CenterContainer/GridContainer/PixelPerfect" to="." method="_on_PixelPerfect_toggled"]
|