From c7649bc0618591d8879acc51872f896cfceb8b26 Mon Sep 17 00:00:00 2001 From: Manolis Papadeas <35376950+OverloadedOrama@users.noreply.github.com> Date: Mon, 31 Jan 2022 19:01:55 +0200 Subject: [PATCH] Save toolbar as a separate scene --- src/UI/Tools.tscn | 1089 +++++++++++++++++++++++++++++++++++++++++++++ src/UI/UI.tscn | 1086 +------------------------------------------- 2 files changed, 1092 insertions(+), 1083 deletions(-) create mode 100644 src/UI/Tools.tscn diff --git a/src/UI/Tools.tscn b/src/UI/Tools.tscn new file mode 100644 index 000000000..f22a90f9f --- /dev/null +++ b/src/UI/Tools.tscn @@ -0,0 +1,1089 @@ +[gd_scene load_steps=20 format=2] + +[ext_resource path="res://assets/graphics/tools/linetool.png" type="Texture" id=1] +[ext_resource path="res://assets/graphics/tools/shading.png" type="Texture" id=2] +[ext_resource path="res://src/UI/ToolButtons.gd" type="Script" id=3] +[ext_resource path="res://assets/graphics/tools/colorpicker.png" type="Texture" id=4] +[ext_resource path="res://assets/graphics/tools/lasso.png" type="Texture" id=5] +[ext_resource path="res://assets/graphics/tools/rectangletool.png" type="Texture" id=6] +[ext_resource path="res://assets/graphics/tools/ellipseselect.png" type="Texture" id=7] +[ext_resource path="res://assets/graphics/tools/bucket.png" type="Texture" id=8] +[ext_resource path="res://assets/graphics/tools/ellipsetool.png" type="Texture" id=9] +[ext_resource path="res://assets/graphics/tools/pencil.png" type="Texture" id=10] +[ext_resource path="res://assets/graphics/tools/colorselect.png" type="Texture" id=11] +[ext_resource path="res://assets/graphics/tools/pan.png" type="Texture" id=12] +[ext_resource path="res://assets/graphics/tools/rectselect.png" type="Texture" id=13] +[ext_resource path="res://assets/graphics/tools/move.png" type="Texture" id=14] +[ext_resource path="res://assets/graphics/tools/polygonselect.png" type="Texture" id=15] +[ext_resource path="res://assets/graphics/tools/magicwand.png" type="Texture" id=16] +[ext_resource path="res://assets/graphics/tools/eraser.png" type="Texture" id=17] +[ext_resource path="res://assets/graphics/tools/zoom.png" type="Texture" id=18] +[ext_resource path="res://assets/graphics/tools/tool_background.png" type="Texture" id=19] + +[node name="Tools" type="Panel"] +margin_left = 4.0 +margin_top = 8.0 +margin_right = 46.0 +margin_bottom = 716.0 +rect_min_size = Vector2( 42, 32 ) +rect_clip_content = true +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="PanelContainer" type="PanelContainer" parent="."] +margin_left = 9.0 +margin_top = 5.0 +margin_right = 47.0 +margin_bottom = 491.0 +size_flags_horizontal = 0 +size_flags_vertical = 0 +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="ToolButtons" type="GridContainer" parent="PanelContainer"] +margin_left = 7.0 +margin_top = 7.0 +margin_right = 31.0 +margin_bottom = 479.0 +size_flags_horizontal = 4 +size_flags_vertical = 0 +script = ExtResource( 3 ) + +[node name="RectSelect" type="Button" parent="PanelContainer/ToolButtons" groups=["UIButtons"]] +margin_right = 24.0 +margin_bottom = 24.0 +rect_min_size = Vector2( 24, 24 ) +hint_tooltip = "Rectangular Selection + +%s for left mouse button +%s for right mouse button" +mouse_default_cursor_shape = 2 +button_mask = 3 + +[node name="BackgroundLeft" type="NinePatchRect" parent="PanelContainer/ToolButtons/RectSelect"] +visible = false +modulate = Color( 0, 0.52549, 0.811765, 1 ) +anchor_bottom = 1.0 +margin_right = 12.0 +texture = ExtResource( 19 ) +region_rect = Rect2( 0, 0, 11, 24 ) +patch_margin_left = 2 +patch_margin_top = 1 +patch_margin_right = 10 +patch_margin_bottom = 1 +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="BackgroundRight" type="NinePatchRect" parent="PanelContainer/ToolButtons/RectSelect"] +visible = false +modulate = Color( 0.992157, 0.427451, 0.0784314, 1 ) +anchor_bottom = 1.0 +margin_left = 24.0 +margin_top = 24.0 +margin_right = 36.0 +margin_bottom = 24.0 +rect_rotation = 180.0 +texture = ExtResource( 19 ) +region_rect = Rect2( 0, 0, 11, 24 ) +patch_margin_left = 2 +patch_margin_top = 1 +patch_margin_right = 10 +patch_margin_bottom = 1 +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="ToolIcon" type="TextureRect" parent="PanelContainer/ToolButtons/RectSelect"] +anchor_left = 0.5 +anchor_top = 0.5 +anchor_right = 0.5 +anchor_bottom = 0.5 +margin_left = -11.0 +margin_top = -11.0 +margin_right = 11.0 +margin_bottom = 11.0 +texture = ExtResource( 13 ) +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="EllipseSelect" type="Button" parent="PanelContainer/ToolButtons" groups=["UIButtons"]] +margin_top = 28.0 +margin_right = 24.0 +margin_bottom = 52.0 +rect_min_size = Vector2( 24, 24 ) +hint_tooltip = "Elliptical Selection + +%s for left mouse button +%s for right mouse button" +mouse_default_cursor_shape = 2 +button_mask = 3 + +[node name="BackgroundLeft" type="NinePatchRect" parent="PanelContainer/ToolButtons/EllipseSelect"] +visible = false +modulate = Color( 0, 0.52549, 0.811765, 1 ) +anchor_bottom = 1.0 +margin_right = 12.0 +texture = ExtResource( 19 ) +region_rect = Rect2( 0, 0, 11, 24 ) +patch_margin_left = 2 +patch_margin_top = 1 +patch_margin_right = 10 +patch_margin_bottom = 1 +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="BackgroundRight" type="NinePatchRect" parent="PanelContainer/ToolButtons/EllipseSelect"] +visible = false +modulate = Color( 0.992157, 0.427451, 0.0784314, 1 ) +anchor_bottom = 1.0 +margin_left = 24.0 +margin_top = 24.0 +margin_right = 36.0 +margin_bottom = 24.0 +rect_rotation = 180.0 +texture = ExtResource( 19 ) +region_rect = Rect2( 0, 0, 11, 24 ) +patch_margin_left = 2 +patch_margin_top = 1 +patch_margin_right = 10 +patch_margin_bottom = 1 +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="ToolIcon" type="TextureRect" parent="PanelContainer/ToolButtons/EllipseSelect"] +anchor_left = 0.5 +anchor_top = 0.5 +anchor_right = 0.5 +anchor_bottom = 0.5 +margin_left = -11.0 +margin_top = -11.0 +margin_right = 11.0 +margin_bottom = 11.0 +texture = ExtResource( 7 ) +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="PolygonSelect" type="Button" parent="PanelContainer/ToolButtons" groups=["UIButtons"]] +margin_top = 56.0 +margin_right = 24.0 +margin_bottom = 80.0 +rect_min_size = Vector2( 24, 24 ) +hint_tooltip = "Polygonal Selection +Double-click to connect the last point to the starting point + +%s for left mouse button +%s for right mouse button" +mouse_default_cursor_shape = 2 +button_mask = 3 + +[node name="BackgroundLeft" type="NinePatchRect" parent="PanelContainer/ToolButtons/PolygonSelect"] +visible = false +modulate = Color( 0, 0.52549, 0.811765, 1 ) +anchor_bottom = 1.0 +margin_right = 12.0 +texture = ExtResource( 19 ) +region_rect = Rect2( 0, 0, 11, 24 ) +patch_margin_left = 2 +patch_margin_top = 1 +patch_margin_right = 10 +patch_margin_bottom = 1 +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="BackgroundRight" type="NinePatchRect" parent="PanelContainer/ToolButtons/PolygonSelect"] +visible = false +modulate = Color( 0.992157, 0.427451, 0.0784314, 1 ) +anchor_bottom = 1.0 +margin_left = 24.0 +margin_top = 24.0 +margin_right = 36.0 +margin_bottom = 24.0 +rect_rotation = 180.0 +texture = ExtResource( 19 ) +region_rect = Rect2( 0, 0, 11, 24 ) +patch_margin_left = 2 +patch_margin_top = 1 +patch_margin_right = 10 +patch_margin_bottom = 1 +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="ToolIcon" type="TextureRect" parent="PanelContainer/ToolButtons/PolygonSelect"] +anchor_left = 0.5 +anchor_top = 0.5 +anchor_right = 0.5 +anchor_bottom = 0.5 +margin_left = -11.0 +margin_top = -11.0 +margin_right = 11.0 +margin_bottom = 11.0 +texture = ExtResource( 15 ) +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="ColorSelect" type="Button" parent="PanelContainer/ToolButtons" groups=["UIButtons"]] +margin_top = 84.0 +margin_right = 24.0 +margin_bottom = 108.0 +rect_min_size = Vector2( 24, 24 ) +hint_tooltip = "Select By Color + +%s for left mouse button +%s for right mouse button" +mouse_default_cursor_shape = 2 +button_mask = 3 + +[node name="BackgroundLeft" type="NinePatchRect" parent="PanelContainer/ToolButtons/ColorSelect"] +visible = false +modulate = Color( 0, 0.52549, 0.811765, 1 ) +anchor_bottom = 1.0 +margin_right = 12.0 +texture = ExtResource( 19 ) +region_rect = Rect2( 0, 0, 11, 24 ) +patch_margin_left = 2 +patch_margin_top = 1 +patch_margin_right = 10 +patch_margin_bottom = 1 +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="BackgroundRight" type="NinePatchRect" parent="PanelContainer/ToolButtons/ColorSelect"] +visible = false +modulate = Color( 0.992157, 0.427451, 0.0784314, 1 ) +anchor_bottom = 1.0 +margin_left = 24.0 +margin_top = 24.0 +margin_right = 36.0 +margin_bottom = 24.0 +rect_rotation = 180.0 +texture = ExtResource( 19 ) +region_rect = Rect2( 0, 0, 11, 24 ) +patch_margin_left = 2 +patch_margin_top = 1 +patch_margin_right = 10 +patch_margin_bottom = 1 +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="ToolIcon" type="TextureRect" parent="PanelContainer/ToolButtons/ColorSelect"] +anchor_left = 0.5 +anchor_top = 0.5 +anchor_right = 0.5 +anchor_bottom = 0.5 +margin_left = -11.0 +margin_top = -11.0 +margin_right = 11.0 +margin_bottom = 11.0 +texture = ExtResource( 11 ) +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="MagicWand" type="Button" parent="PanelContainer/ToolButtons" groups=["UIButtons"]] +margin_top = 112.0 +margin_right = 24.0 +margin_bottom = 136.0 +rect_min_size = Vector2( 24, 24 ) +hint_tooltip = "Magic Wand + +%s for left mouse button +%s for right mouse button" +mouse_default_cursor_shape = 2 +button_mask = 3 + +[node name="BackgroundLeft" type="NinePatchRect" parent="PanelContainer/ToolButtons/MagicWand"] +visible = false +modulate = Color( 0, 0.52549, 0.811765, 1 ) +anchor_bottom = 1.0 +margin_right = 12.0 +texture = ExtResource( 19 ) +region_rect = Rect2( 0, 0, 11, 24 ) +patch_margin_left = 2 +patch_margin_top = 1 +patch_margin_right = 10 +patch_margin_bottom = 1 +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="BackgroundRight" type="NinePatchRect" parent="PanelContainer/ToolButtons/MagicWand"] +visible = false +modulate = Color( 0.992157, 0.427451, 0.0784314, 1 ) +anchor_bottom = 1.0 +margin_left = 24.0 +margin_top = 24.0 +margin_right = 36.0 +margin_bottom = 24.0 +rect_rotation = 180.0 +texture = ExtResource( 19 ) +region_rect = Rect2( 0, 0, 11, 24 ) +patch_margin_left = 2 +patch_margin_top = 1 +patch_margin_right = 10 +patch_margin_bottom = 1 +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="ToolIcon" type="TextureRect" parent="PanelContainer/ToolButtons/MagicWand"] +anchor_left = 0.5 +anchor_top = 0.5 +anchor_right = 0.5 +anchor_bottom = 0.5 +margin_left = -11.0 +margin_top = -11.0 +margin_right = 11.0 +margin_bottom = 11.0 +texture = ExtResource( 16 ) +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="Lasso" type="Button" parent="PanelContainer/ToolButtons" groups=["UIButtons"]] +margin_top = 140.0 +margin_right = 24.0 +margin_bottom = 164.0 +rect_min_size = Vector2( 24, 24 ) +hint_tooltip = "Lasso / Free Select Tool + +%s for left mouse button +%s for right mouse button" +mouse_default_cursor_shape = 2 +button_mask = 3 + +[node name="BackgroundLeft" type="NinePatchRect" parent="PanelContainer/ToolButtons/Lasso"] +visible = false +modulate = Color( 0, 0.52549, 0.811765, 1 ) +anchor_bottom = 1.0 +margin_right = 12.0 +texture = ExtResource( 19 ) +region_rect = Rect2( 0, 0, 11, 24 ) +patch_margin_left = 2 +patch_margin_top = 1 +patch_margin_right = 10 +patch_margin_bottom = 1 +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="BackgroundRight" type="NinePatchRect" parent="PanelContainer/ToolButtons/Lasso"] +visible = false +modulate = Color( 0.992157, 0.427451, 0.0784314, 1 ) +anchor_bottom = 1.0 +margin_left = 24.0 +margin_top = 24.0 +margin_right = 36.0 +margin_bottom = 24.0 +rect_rotation = 180.0 +texture = ExtResource( 19 ) +region_rect = Rect2( 0, 0, 11, 24 ) +patch_margin_left = 2 +patch_margin_top = 1 +patch_margin_right = 10 +patch_margin_bottom = 1 +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="ToolIcon" type="TextureRect" parent="PanelContainer/ToolButtons/Lasso"] +anchor_left = 0.5 +anchor_top = 0.5 +anchor_right = 0.5 +anchor_bottom = 0.5 +margin_left = -11.0 +margin_top = -11.0 +margin_right = 11.0 +margin_bottom = 11.0 +texture = ExtResource( 5 ) +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="Move" type="Button" parent="PanelContainer/ToolButtons" groups=["UIButtons"]] +margin_top = 168.0 +margin_right = 24.0 +margin_bottom = 192.0 +rect_min_size = Vector2( 24, 24 ) +hint_tooltip = "Move + +%s for left mouse button +%s for right mouse button" +mouse_default_cursor_shape = 2 +button_mask = 3 + +[node name="BackgroundLeft" type="NinePatchRect" parent="PanelContainer/ToolButtons/Move"] +visible = false +modulate = Color( 0, 0.52549, 0.811765, 1 ) +anchor_bottom = 1.0 +margin_right = 12.0 +texture = ExtResource( 19 ) +region_rect = Rect2( 0, 0, 11, 24 ) +patch_margin_left = 2 +patch_margin_top = 1 +patch_margin_right = 10 +patch_margin_bottom = 1 +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="BackgroundRight" type="NinePatchRect" parent="PanelContainer/ToolButtons/Move"] +visible = false +modulate = Color( 0.992157, 0.427451, 0.0784314, 1 ) +anchor_bottom = 1.0 +margin_left = 24.0 +margin_top = 24.0 +margin_right = 36.0 +margin_bottom = 24.0 +rect_rotation = 180.0 +texture = ExtResource( 19 ) +region_rect = Rect2( 0, 0, 11, 24 ) +patch_margin_left = 2 +patch_margin_top = 1 +patch_margin_right = 10 +patch_margin_bottom = 1 +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="ToolIcon" type="TextureRect" parent="PanelContainer/ToolButtons/Move"] +anchor_left = 0.5 +anchor_top = 0.5 +anchor_right = 0.5 +anchor_bottom = 0.5 +margin_left = -11.0 +margin_top = -11.0 +margin_right = 11.0 +margin_bottom = 11.0 +texture = ExtResource( 14 ) +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="Zoom" type="Button" parent="PanelContainer/ToolButtons" groups=["UIButtons"]] +margin_top = 196.0 +margin_right = 24.0 +margin_bottom = 220.0 +rect_min_size = Vector2( 24, 24 ) +hint_tooltip = "Zoom + +%s for left mouse button +%s for right mouse button" +mouse_default_cursor_shape = 2 +button_mask = 3 + +[node name="BackgroundLeft" type="NinePatchRect" parent="PanelContainer/ToolButtons/Zoom"] +visible = false +modulate = Color( 0, 0.52549, 0.811765, 1 ) +anchor_bottom = 1.0 +margin_right = 12.0 +texture = ExtResource( 19 ) +region_rect = Rect2( 0, 0, 11, 24 ) +patch_margin_left = 2 +patch_margin_top = 1 +patch_margin_right = 10 +patch_margin_bottom = 1 +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="BackgroundRight" type="NinePatchRect" parent="PanelContainer/ToolButtons/Zoom"] +visible = false +modulate = Color( 0.992157, 0.427451, 0.0784314, 1 ) +anchor_bottom = 1.0 +margin_left = 24.0 +margin_top = 24.0 +margin_right = 36.0 +margin_bottom = 24.0 +rect_rotation = 180.0 +texture = ExtResource( 19 ) +region_rect = Rect2( 0, 0, 11, 24 ) +patch_margin_left = 2 +patch_margin_top = 1 +patch_margin_right = 10 +patch_margin_bottom = 1 +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="ToolIcon" type="TextureRect" parent="PanelContainer/ToolButtons/Zoom"] +anchor_left = 0.5 +anchor_top = 0.5 +anchor_right = 0.5 +anchor_bottom = 0.5 +margin_left = -11.0 +margin_top = -11.0 +margin_right = 11.0 +margin_bottom = 11.0 +texture = ExtResource( 18 ) +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="Pan" type="Button" parent="PanelContainer/ToolButtons" groups=["UIButtons"]] +margin_top = 224.0 +margin_right = 24.0 +margin_bottom = 248.0 +rect_min_size = Vector2( 24, 24 ) +hint_tooltip = "Pan + +%s for left mouse button +%s for right mouse button" +mouse_default_cursor_shape = 2 +button_mask = 3 + +[node name="BackgroundLeft" type="NinePatchRect" parent="PanelContainer/ToolButtons/Pan"] +visible = false +modulate = Color( 0, 0.52549, 0.811765, 1 ) +anchor_bottom = 1.0 +margin_right = 12.0 +texture = ExtResource( 19 ) +region_rect = Rect2( 0, 0, 11, 24 ) +patch_margin_left = 2 +patch_margin_top = 1 +patch_margin_right = 10 +patch_margin_bottom = 1 +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="BackgroundRight" type="NinePatchRect" parent="PanelContainer/ToolButtons/Pan"] +visible = false +modulate = Color( 0.992157, 0.427451, 0.0784314, 1 ) +anchor_bottom = 1.0 +margin_left = 24.0 +margin_top = 24.0 +margin_right = 36.0 +margin_bottom = 24.0 +rect_rotation = 180.0 +texture = ExtResource( 19 ) +region_rect = Rect2( 0, 0, 11, 24 ) +patch_margin_left = 2 +patch_margin_top = 1 +patch_margin_right = 10 +patch_margin_bottom = 1 +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="ToolIcon" type="TextureRect" parent="PanelContainer/ToolButtons/Pan"] +anchor_left = 0.5 +anchor_top = 0.5 +anchor_right = 0.5 +anchor_bottom = 0.5 +margin_left = -11.0 +margin_top = -11.0 +margin_right = 11.0 +margin_bottom = 11.0 +texture = ExtResource( 12 ) +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="ColorPicker" type="Button" parent="PanelContainer/ToolButtons" groups=["UIButtons"]] +margin_top = 252.0 +margin_right = 24.0 +margin_bottom = 276.0 +rect_min_size = Vector2( 24, 24 ) +hint_tooltip = "Color Picker +Select a color from a pixel of the sprite + +%s for left mouse button +%s for right mouse button" +mouse_default_cursor_shape = 2 +button_mask = 3 + +[node name="BackgroundLeft" type="NinePatchRect" parent="PanelContainer/ToolButtons/ColorPicker"] +visible = false +modulate = Color( 0, 0.52549, 0.811765, 1 ) +anchor_bottom = 1.0 +margin_right = 12.0 +texture = ExtResource( 19 ) +region_rect = Rect2( 0, 0, 11, 24 ) +patch_margin_left = 2 +patch_margin_top = 1 +patch_margin_right = 10 +patch_margin_bottom = 1 +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="BackgroundRight" type="NinePatchRect" parent="PanelContainer/ToolButtons/ColorPicker"] +visible = false +modulate = Color( 0.992157, 0.427451, 0.0784314, 1 ) +anchor_bottom = 1.0 +margin_left = 24.0 +margin_top = 24.0 +margin_right = 36.0 +margin_bottom = 24.0 +rect_rotation = 180.0 +texture = ExtResource( 19 ) +region_rect = Rect2( 0, 0, 11, 24 ) +patch_margin_left = 2 +patch_margin_top = 1 +patch_margin_right = 10 +patch_margin_bottom = 1 +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="ToolIcon" type="TextureRect" parent="PanelContainer/ToolButtons/ColorPicker"] +anchor_left = 0.5 +anchor_top = 0.5 +anchor_right = 0.5 +anchor_bottom = 0.5 +margin_left = -11.0 +margin_top = -11.0 +margin_right = 11.0 +margin_bottom = 11.0 +texture = ExtResource( 4 ) +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="Pencil" type="Button" parent="PanelContainer/ToolButtons" groups=["UIButtons"]] +margin_top = 280.0 +margin_right = 24.0 +margin_bottom = 304.0 +rect_min_size = Vector2( 24, 24 ) +hint_tooltip = "Pencil + +%s for left mouse button +%s for right mouse button + +Hold %s to make a line" +mouse_default_cursor_shape = 2 +button_mask = 3 + +[node name="BackgroundLeft" type="NinePatchRect" parent="PanelContainer/ToolButtons/Pencil"] +modulate = Color( 0, 0.52549, 0.811765, 1 ) +anchor_bottom = 1.0 +margin_right = 12.0 +texture = ExtResource( 19 ) +region_rect = Rect2( 0, 0, 11, 24 ) +patch_margin_left = 2 +patch_margin_top = 1 +patch_margin_right = 10 +patch_margin_bottom = 1 +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="BackgroundRight" type="NinePatchRect" parent="PanelContainer/ToolButtons/Pencil"] +visible = false +modulate = Color( 0.992157, 0.427451, 0.0784314, 1 ) +anchor_bottom = 1.0 +margin_left = 24.0 +margin_top = 24.0 +margin_right = 36.0 +margin_bottom = 24.0 +rect_rotation = 180.0 +texture = ExtResource( 19 ) +region_rect = Rect2( 0, 0, 11, 24 ) +patch_margin_left = 2 +patch_margin_top = 1 +patch_margin_right = 10 +patch_margin_bottom = 1 +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="ToolIcon" type="TextureRect" parent="PanelContainer/ToolButtons/Pencil"] +anchor_left = 0.5 +anchor_top = 0.5 +anchor_right = 0.5 +anchor_bottom = 0.5 +margin_left = -11.0 +margin_top = -11.0 +margin_right = 11.0 +margin_bottom = 11.0 +texture = ExtResource( 10 ) +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="Eraser" type="Button" parent="PanelContainer/ToolButtons" groups=["UIButtons"]] +margin_top = 308.0 +margin_right = 24.0 +margin_bottom = 332.0 +rect_min_size = Vector2( 24, 24 ) +hint_tooltip = "Eraser + +%s for left mouse button +%s for right mouse button + +Hold %s to make a line" +mouse_default_cursor_shape = 2 +button_mask = 3 + +[node name="BackgroundLeft" type="NinePatchRect" parent="PanelContainer/ToolButtons/Eraser"] +visible = false +modulate = Color( 0, 0.52549, 0.811765, 1 ) +anchor_bottom = 1.0 +margin_right = 12.0 +texture = ExtResource( 19 ) +region_rect = Rect2( 0, 0, 11, 24 ) +patch_margin_left = 2 +patch_margin_top = 1 +patch_margin_right = 10 +patch_margin_bottom = 1 +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="BackgroundRight" type="NinePatchRect" parent="PanelContainer/ToolButtons/Eraser"] +modulate = Color( 0.992157, 0.427451, 0.0784314, 1 ) +anchor_bottom = 1.0 +margin_left = 24.0 +margin_top = 24.0 +margin_right = 36.0 +margin_bottom = 24.0 +rect_rotation = 180.0 +texture = ExtResource( 19 ) +region_rect = Rect2( 0, 0, 11, 24 ) +patch_margin_left = 2 +patch_margin_top = 1 +patch_margin_right = 10 +patch_margin_bottom = 1 +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="ToolIcon" type="TextureRect" parent="PanelContainer/ToolButtons/Eraser"] +anchor_left = 0.5 +anchor_top = 0.5 +anchor_right = 0.5 +anchor_bottom = 0.5 +margin_left = -11.0 +margin_top = -11.0 +margin_right = 11.0 +margin_bottom = 11.0 +texture = ExtResource( 17 ) +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="Bucket" type="Button" parent="PanelContainer/ToolButtons" groups=["UIButtons"]] +margin_top = 336.0 +margin_right = 24.0 +margin_bottom = 360.0 +rect_min_size = Vector2( 24, 24 ) +hint_tooltip = "Bucket + +%s for left mouse button +%s for right mouse button" +mouse_default_cursor_shape = 2 +button_mask = 3 + +[node name="BackgroundLeft" type="NinePatchRect" parent="PanelContainer/ToolButtons/Bucket"] +visible = false +modulate = Color( 0, 0.52549, 0.811765, 1 ) +anchor_bottom = 1.0 +margin_right = 12.0 +texture = ExtResource( 19 ) +region_rect = Rect2( 0, 0, 11, 24 ) +patch_margin_left = 2 +patch_margin_top = 1 +patch_margin_right = 10 +patch_margin_bottom = 1 +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="BackgroundRight" type="NinePatchRect" parent="PanelContainer/ToolButtons/Bucket"] +visible = false +modulate = Color( 0.992157, 0.427451, 0.0784314, 1 ) +anchor_bottom = 1.0 +margin_left = 24.0 +margin_top = 24.0 +margin_right = 36.0 +margin_bottom = 24.0 +rect_rotation = 180.0 +texture = ExtResource( 19 ) +region_rect = Rect2( 0, 0, 11, 24 ) +patch_margin_left = 2 +patch_margin_top = 1 +patch_margin_right = 10 +patch_margin_bottom = 1 +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="ToolIcon" type="TextureRect" parent="PanelContainer/ToolButtons/Bucket"] +anchor_left = 0.5 +anchor_top = 0.5 +anchor_right = 0.5 +anchor_bottom = 0.5 +margin_left = -11.0 +margin_top = -11.0 +margin_right = 11.0 +margin_bottom = 11.0 +texture = ExtResource( 8 ) +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="Shading" type="Button" parent="PanelContainer/ToolButtons" groups=["UIButtons"]] +margin_top = 364.0 +margin_right = 24.0 +margin_bottom = 388.0 +rect_min_size = Vector2( 24, 24 ) +hint_tooltip = "Shading Tool + +%s for left mouse button +%s for right mouse button" +mouse_default_cursor_shape = 2 +button_mask = 3 + +[node name="BackgroundLeft" type="NinePatchRect" parent="PanelContainer/ToolButtons/Shading"] +visible = false +modulate = Color( 0, 0.52549, 0.811765, 1 ) +anchor_bottom = 1.0 +margin_right = 12.0 +texture = ExtResource( 19 ) +region_rect = Rect2( 0, 0, 11, 24 ) +patch_margin_left = 2 +patch_margin_top = 1 +patch_margin_right = 10 +patch_margin_bottom = 1 +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="BackgroundRight" type="NinePatchRect" parent="PanelContainer/ToolButtons/Shading"] +visible = false +modulate = Color( 0.992157, 0.427451, 0.0784314, 1 ) +anchor_bottom = 1.0 +margin_left = 24.0 +margin_top = 24.0 +margin_right = 36.0 +margin_bottom = 24.0 +rect_rotation = 180.0 +texture = ExtResource( 19 ) +region_rect = Rect2( 0, 0, 11, 24 ) +patch_margin_left = 2 +patch_margin_top = 1 +patch_margin_right = 10 +patch_margin_bottom = 1 +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="ToolIcon" type="TextureRect" parent="PanelContainer/ToolButtons/Shading"] +anchor_left = 0.5 +anchor_top = 0.5 +anchor_right = 0.5 +anchor_bottom = 0.5 +margin_left = -11.0 +margin_top = -11.0 +margin_right = 11.0 +margin_bottom = 11.0 +texture = ExtResource( 2 ) +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="LineTool" type="Button" parent="PanelContainer/ToolButtons" groups=["UIButtons"]] +margin_top = 392.0 +margin_right = 24.0 +margin_bottom = 416.0 +rect_min_size = Vector2( 24, 24 ) +hint_tooltip = "Line Tool + +%s for left mouse button +%s for right mouse button + +Hold %s to snap the angle of the line +Hold %s to center the shape on the click origin +Hold %s to displace the shape's origin" +mouse_default_cursor_shape = 2 +button_mask = 3 + +[node name="BackgroundLeft" type="NinePatchRect" parent="PanelContainer/ToolButtons/LineTool"] +visible = false +modulate = Color( 0, 0.52549, 0.811765, 1 ) +anchor_bottom = 1.0 +margin_right = 12.0 +texture = ExtResource( 19 ) +region_rect = Rect2( 0, 0, 11, 24 ) +patch_margin_left = 2 +patch_margin_top = 1 +patch_margin_right = 10 +patch_margin_bottom = 1 +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="BackgroundRight" type="NinePatchRect" parent="PanelContainer/ToolButtons/LineTool"] +visible = false +modulate = Color( 0.992157, 0.427451, 0.0784314, 1 ) +anchor_bottom = 1.0 +margin_left = 24.0 +margin_top = 24.0 +margin_right = 36.0 +margin_bottom = 24.0 +rect_rotation = 180.0 +texture = ExtResource( 19 ) +region_rect = Rect2( 0, 0, 11, 24 ) +patch_margin_left = 2 +patch_margin_top = 1 +patch_margin_right = 10 +patch_margin_bottom = 1 +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="ToolIcon" type="TextureRect" parent="PanelContainer/ToolButtons/LineTool"] +anchor_left = 0.5 +anchor_top = 0.5 +anchor_right = 0.5 +anchor_bottom = 0.5 +margin_left = -11.0 +margin_top = -11.0 +margin_right = 11.0 +margin_bottom = 11.0 +texture = ExtResource( 1 ) +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="RectangleTool" type="Button" parent="PanelContainer/ToolButtons" groups=["UIButtons"]] +margin_top = 420.0 +margin_right = 24.0 +margin_bottom = 444.0 +rect_min_size = Vector2( 24, 24 ) +hint_tooltip = "Rectangle Tool + +%s for left mouse button +%s for right mouse button + +Hold %s to create a 1:1 shape +Hold %s to center the shape on the click origin +Hold %s to displace the shape's origin" +mouse_default_cursor_shape = 2 +button_mask = 3 + +[node name="BackgroundLeft" type="NinePatchRect" parent="PanelContainer/ToolButtons/RectangleTool"] +visible = false +modulate = Color( 0, 0.52549, 0.811765, 1 ) +anchor_bottom = 1.0 +margin_right = 12.0 +texture = ExtResource( 19 ) +region_rect = Rect2( 0, 0, 11, 24 ) +patch_margin_left = 2 +patch_margin_top = 1 +patch_margin_right = 10 +patch_margin_bottom = 1 +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="BackgroundRight" type="NinePatchRect" parent="PanelContainer/ToolButtons/RectangleTool"] +visible = false +modulate = Color( 0.992157, 0.427451, 0.0784314, 1 ) +anchor_bottom = 1.0 +margin_left = 24.0 +margin_top = 24.0 +margin_right = 36.0 +margin_bottom = 24.0 +rect_rotation = 180.0 +texture = ExtResource( 19 ) +region_rect = Rect2( 0, 0, 11, 24 ) +patch_margin_left = 2 +patch_margin_top = 1 +patch_margin_right = 10 +patch_margin_bottom = 1 +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="ToolIcon" type="TextureRect" parent="PanelContainer/ToolButtons/RectangleTool"] +anchor_left = 0.5 +anchor_top = 0.5 +anchor_right = 0.5 +anchor_bottom = 0.5 +margin_left = -11.0 +margin_top = -11.0 +margin_right = 11.0 +margin_bottom = 11.0 +texture = ExtResource( 6 ) +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="EllipseTool" type="Button" parent="PanelContainer/ToolButtons" groups=["UIButtons"]] +margin_top = 448.0 +margin_right = 24.0 +margin_bottom = 472.0 +rect_min_size = Vector2( 24, 24 ) +hint_tooltip = "Ellipse Tool + +%s for left mouse button +%s for right mouse button + +Hold %s to create a 1:1 shape +Hold %s to center the shape on the click origin +Hold %s to displace the shape's origin" +mouse_default_cursor_shape = 2 +button_mask = 3 + +[node name="BackgroundLeft" type="NinePatchRect" parent="PanelContainer/ToolButtons/EllipseTool"] +visible = false +modulate = Color( 0, 0.52549, 0.811765, 1 ) +anchor_bottom = 1.0 +margin_right = 12.0 +texture = ExtResource( 19 ) +region_rect = Rect2( 0, 0, 11, 24 ) +patch_margin_left = 2 +patch_margin_top = 1 +patch_margin_right = 10 +patch_margin_bottom = 1 +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="BackgroundRight" type="NinePatchRect" parent="PanelContainer/ToolButtons/EllipseTool"] +visible = false +modulate = Color( 0.992157, 0.427451, 0.0784314, 1 ) +anchor_bottom = 1.0 +margin_left = 24.0 +margin_top = 24.0 +margin_right = 36.0 +margin_bottom = 24.0 +rect_rotation = 180.0 +texture = ExtResource( 19 ) +region_rect = Rect2( 0, 0, 11, 24 ) +patch_margin_left = 2 +patch_margin_top = 1 +patch_margin_right = 10 +patch_margin_bottom = 1 +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="ToolIcon" type="TextureRect" parent="PanelContainer/ToolButtons/EllipseTool"] +anchor_left = 0.5 +anchor_top = 0.5 +anchor_right = 0.5 +anchor_bottom = 0.5 +margin_left = -11.0 +margin_top = -11.0 +margin_right = 11.0 +margin_bottom = 11.0 +texture = ExtResource( 9 ) +__meta__ = { +"_edit_use_anchors_": false +} + +[connection signal="resized" from="." to="PanelContainer/ToolButtons" method="_on_Tools_resized"] diff --git a/src/UI/UI.tscn b/src/UI/UI.tscn index d9f779a22..dfb7786ca 100644 --- a/src/UI/UI.tscn +++ b/src/UI/UI.tscn @@ -1,39 +1,21 @@ -[gd_scene load_steps=58 format=2] +[gd_scene load_steps=40 format=2] -[ext_resource path="res://src/UI/ToolButtons.gd" type="Script" id=1] +[ext_resource path="res://src/UI/Tools.tscn" type="PackedScene" id=1] [ext_resource path="res://src/UI/Canvas/CanvasPreview.tscn" type="PackedScene" id=2] [ext_resource path="res://src/UI/Tabs.gd" type="Script" id=3] [ext_resource path="res://src/UI/Canvas/Rulers/VerticalRuler.gd" type="Script" id=4] [ext_resource path="res://src/UI/TransparentChecker.tscn" type="PackedScene" id=5] [ext_resource path="res://src/UI/Canvas/Rulers/HorizontalRuler.gd" type="Script" id=6] [ext_resource path="res://src/UI/Canvas/CameraMovement.gd" type="Script" id=7] -[ext_resource path="res://assets/graphics/tools/lasso.png" type="Texture" id=8] [ext_resource path="res://src/Shaders/TransparentChecker.shader" type="Shader" id=9] -[ext_resource path="res://assets/graphics/tools/colorpicker.png" type="Texture" id=10] -[ext_resource path="res://assets/graphics/tools/shading.png" type="Texture" id=11] -[ext_resource path="res://assets/graphics/tools/linetool.png" type="Texture" id=12] -[ext_resource path="res://assets/graphics/tools/rectangletool.png" type="Texture" id=13] [ext_resource path="res://addons/dockable_container/layout.gd" type="Script" id=14] -[ext_resource path="res://assets/graphics/tools/ellipseselect.png" type="Texture" id=15] [ext_resource path="res://src/UI/CanvasPreviewContainer.tscn" type="PackedScene" id=16] [ext_resource path="res://src/UI/ColorPickers.tscn" type="PackedScene" id=17] [ext_resource path="res://src/UI/Timeline/AnimationTimeline.tscn" type="PackedScene" id=18] [ext_resource path="res://src/UI/Canvas/Canvas.tscn" type="PackedScene" id=19] [ext_resource path="res://src/Palette/PalettePanel.tscn" type="PackedScene" id=20] -[ext_resource path="res://assets/graphics/tools/colorselect.png" type="Texture" id=21] -[ext_resource path="res://assets/graphics/tools/pan.png" type="Texture" id=22] [ext_resource path="res://src/UI/ViewportContainer.gd" type="Script" id=23] -[ext_resource path="res://assets/graphics/tools/pencil.png" type="Texture" id=24] -[ext_resource path="res://assets/graphics/tools/bucket.png" type="Texture" id=25] -[ext_resource path="res://assets/graphics/tools/ellipsetool.png" type="Texture" id=26] [ext_resource path="res://addons/dockable_container/layout_split.gd" type="Script" id=27] -[ext_resource path="res://assets/graphics/tools/move.png" type="Texture" id=28] -[ext_resource path="res://assets/graphics/tools/rectselect.png" type="Texture" id=29] -[ext_resource path="res://assets/graphics/tools/polygonselect.png" type="Texture" id=30] -[ext_resource path="res://assets/graphics/tools/zoom.png" type="Texture" id=31] -[ext_resource path="res://assets/graphics/tools/eraser.png" type="Texture" id=32] -[ext_resource path="res://assets/graphics/tools/magicwand.png" type="Texture" id=33] -[ext_resource path="res://assets/graphics/tools/tool_background.png" type="Texture" id=34] [ext_resource path="res://addons/dockable_container/dockable_container.gd" type="Script" id=35] [ext_resource path="res://addons/dockable_container/layout_panel.gd" type="Script" id=36] [ext_resource path="res://src/UI/UI.gd" type="Script" id=37] @@ -204,1068 +186,7 @@ __meta__ = { tabs_visible = false layout = SubResource( 25 ) -[node name="Tools" type="Panel" parent="DockableContainer"] -margin_left = 4.0 -margin_top = 8.0 -margin_right = 46.0 -margin_bottom = 716.0 -rect_min_size = Vector2( 42, 32 ) -rect_clip_content = true - -[node name="PanelContainer" type="PanelContainer" parent="DockableContainer/Tools"] -margin_left = 9.0 -margin_top = 5.0 -margin_right = 47.0 -margin_bottom = 491.0 -size_flags_horizontal = 0 -size_flags_vertical = 0 -__meta__ = { -"_edit_use_anchors_": false -} - -[node name="ToolButtons" type="GridContainer" parent="DockableContainer/Tools/PanelContainer"] -margin_left = 7.0 -margin_top = 7.0 -margin_right = 31.0 -margin_bottom = 479.0 -size_flags_horizontal = 4 -size_flags_vertical = 0 -script = ExtResource( 1 ) - -[node name="RectSelect" type="Button" parent="DockableContainer/Tools/PanelContainer/ToolButtons" groups=["UIButtons"]] -margin_right = 24.0 -margin_bottom = 24.0 -rect_min_size = Vector2( 24, 24 ) -hint_tooltip = "Rectangular Selection - -%s for left mouse button -%s for right mouse button" -mouse_default_cursor_shape = 2 -button_mask = 3 - -[node name="BackgroundLeft" type="NinePatchRect" parent="DockableContainer/Tools/PanelContainer/ToolButtons/RectSelect"] -visible = false -modulate = Color( 0, 0.52549, 0.811765, 1 ) -anchor_bottom = 1.0 -margin_right = 12.0 -texture = ExtResource( 34 ) -region_rect = Rect2( 0, 0, 11, 24 ) -patch_margin_left = 2 -patch_margin_top = 1 -patch_margin_right = 10 -patch_margin_bottom = 1 -__meta__ = { -"_edit_use_anchors_": false -} - -[node name="BackgroundRight" type="NinePatchRect" parent="DockableContainer/Tools/PanelContainer/ToolButtons/RectSelect"] -visible = false -modulate = Color( 0.992157, 0.427451, 0.0784314, 1 ) -anchor_bottom = 1.0 -margin_left = 24.0 -margin_top = 24.0 -margin_right = 36.0 -margin_bottom = 24.0 -rect_rotation = 180.0 -texture = ExtResource( 34 ) -region_rect = Rect2( 0, 0, 11, 24 ) -patch_margin_left = 2 -patch_margin_top = 1 -patch_margin_right = 10 -patch_margin_bottom = 1 -__meta__ = { -"_edit_use_anchors_": false -} - -[node name="ToolIcon" type="TextureRect" parent="DockableContainer/Tools/PanelContainer/ToolButtons/RectSelect"] -anchor_left = 0.5 -anchor_top = 0.5 -anchor_right = 0.5 -anchor_bottom = 0.5 -margin_left = -11.0 -margin_top = -11.0 -margin_right = 11.0 -margin_bottom = 11.0 -texture = ExtResource( 29 ) -__meta__ = { -"_edit_use_anchors_": false -} - -[node name="EllipseSelect" type="Button" parent="DockableContainer/Tools/PanelContainer/ToolButtons" groups=["UIButtons"]] -margin_top = 28.0 -margin_right = 24.0 -margin_bottom = 52.0 -rect_min_size = Vector2( 24, 24 ) -hint_tooltip = "Elliptical Selection - -%s for left mouse button -%s for right mouse button" -mouse_default_cursor_shape = 2 -button_mask = 3 - -[node name="BackgroundLeft" type="NinePatchRect" parent="DockableContainer/Tools/PanelContainer/ToolButtons/EllipseSelect"] -visible = false -modulate = Color( 0, 0.52549, 0.811765, 1 ) -anchor_bottom = 1.0 -margin_right = 12.0 -texture = ExtResource( 34 ) -region_rect = Rect2( 0, 0, 11, 24 ) -patch_margin_left = 2 -patch_margin_top = 1 -patch_margin_right = 10 -patch_margin_bottom = 1 -__meta__ = { -"_edit_use_anchors_": false -} - -[node name="BackgroundRight" type="NinePatchRect" parent="DockableContainer/Tools/PanelContainer/ToolButtons/EllipseSelect"] -visible = false -modulate = Color( 0.992157, 0.427451, 0.0784314, 1 ) -anchor_bottom = 1.0 -margin_left = 24.0 -margin_top = 24.0 -margin_right = 36.0 -margin_bottom = 24.0 -rect_rotation = 180.0 -texture = ExtResource( 34 ) -region_rect = Rect2( 0, 0, 11, 24 ) -patch_margin_left = 2 -patch_margin_top = 1 -patch_margin_right = 10 -patch_margin_bottom = 1 -__meta__ = { -"_edit_use_anchors_": false -} - -[node name="ToolIcon" type="TextureRect" parent="DockableContainer/Tools/PanelContainer/ToolButtons/EllipseSelect"] -anchor_left = 0.5 -anchor_top = 0.5 -anchor_right = 0.5 -anchor_bottom = 0.5 -margin_left = -11.0 -margin_top = -11.0 -margin_right = 11.0 -margin_bottom = 11.0 -texture = ExtResource( 15 ) -__meta__ = { -"_edit_use_anchors_": false -} - -[node name="PolygonSelect" type="Button" parent="DockableContainer/Tools/PanelContainer/ToolButtons" groups=["UIButtons"]] -margin_top = 56.0 -margin_right = 24.0 -margin_bottom = 80.0 -rect_min_size = Vector2( 24, 24 ) -hint_tooltip = "Polygonal Selection -Double-click to connect the last point to the starting point - -%s for left mouse button -%s for right mouse button" -mouse_default_cursor_shape = 2 -button_mask = 3 - -[node name="BackgroundLeft" type="NinePatchRect" parent="DockableContainer/Tools/PanelContainer/ToolButtons/PolygonSelect"] -visible = false -modulate = Color( 0, 0.52549, 0.811765, 1 ) -anchor_bottom = 1.0 -margin_right = 12.0 -texture = ExtResource( 34 ) -region_rect = Rect2( 0, 0, 11, 24 ) -patch_margin_left = 2 -patch_margin_top = 1 -patch_margin_right = 10 -patch_margin_bottom = 1 -__meta__ = { -"_edit_use_anchors_": false -} - -[node name="BackgroundRight" type="NinePatchRect" parent="DockableContainer/Tools/PanelContainer/ToolButtons/PolygonSelect"] -visible = false -modulate = Color( 0.992157, 0.427451, 0.0784314, 1 ) -anchor_bottom = 1.0 -margin_left = 24.0 -margin_top = 24.0 -margin_right = 36.0 -margin_bottom = 24.0 -rect_rotation = 180.0 -texture = ExtResource( 34 ) -region_rect = Rect2( 0, 0, 11, 24 ) -patch_margin_left = 2 -patch_margin_top = 1 -patch_margin_right = 10 -patch_margin_bottom = 1 -__meta__ = { -"_edit_use_anchors_": false -} - -[node name="ToolIcon" type="TextureRect" parent="DockableContainer/Tools/PanelContainer/ToolButtons/PolygonSelect"] -anchor_left = 0.5 -anchor_top = 0.5 -anchor_right = 0.5 -anchor_bottom = 0.5 -margin_left = -11.0 -margin_top = -11.0 -margin_right = 11.0 -margin_bottom = 11.0 -texture = ExtResource( 30 ) -__meta__ = { -"_edit_use_anchors_": false -} - -[node name="ColorSelect" type="Button" parent="DockableContainer/Tools/PanelContainer/ToolButtons" groups=["UIButtons"]] -margin_top = 84.0 -margin_right = 24.0 -margin_bottom = 108.0 -rect_min_size = Vector2( 24, 24 ) -hint_tooltip = "Select By Color - -%s for left mouse button -%s for right mouse button" -mouse_default_cursor_shape = 2 -button_mask = 3 - -[node name="BackgroundLeft" type="NinePatchRect" parent="DockableContainer/Tools/PanelContainer/ToolButtons/ColorSelect"] -visible = false -modulate = Color( 0, 0.52549, 0.811765, 1 ) -anchor_bottom = 1.0 -margin_right = 12.0 -texture = ExtResource( 34 ) -region_rect = Rect2( 0, 0, 11, 24 ) -patch_margin_left = 2 -patch_margin_top = 1 -patch_margin_right = 10 -patch_margin_bottom = 1 -__meta__ = { -"_edit_use_anchors_": false -} - -[node name="BackgroundRight" type="NinePatchRect" parent="DockableContainer/Tools/PanelContainer/ToolButtons/ColorSelect"] -visible = false -modulate = Color( 0.992157, 0.427451, 0.0784314, 1 ) -anchor_bottom = 1.0 -margin_left = 24.0 -margin_top = 24.0 -margin_right = 36.0 -margin_bottom = 24.0 -rect_rotation = 180.0 -texture = ExtResource( 34 ) -region_rect = Rect2( 0, 0, 11, 24 ) -patch_margin_left = 2 -patch_margin_top = 1 -patch_margin_right = 10 -patch_margin_bottom = 1 -__meta__ = { -"_edit_use_anchors_": false -} - -[node name="ToolIcon" type="TextureRect" parent="DockableContainer/Tools/PanelContainer/ToolButtons/ColorSelect"] -anchor_left = 0.5 -anchor_top = 0.5 -anchor_right = 0.5 -anchor_bottom = 0.5 -margin_left = -11.0 -margin_top = -11.0 -margin_right = 11.0 -margin_bottom = 11.0 -texture = ExtResource( 21 ) -__meta__ = { -"_edit_use_anchors_": false -} - -[node name="MagicWand" type="Button" parent="DockableContainer/Tools/PanelContainer/ToolButtons" groups=["UIButtons"]] -margin_top = 112.0 -margin_right = 24.0 -margin_bottom = 136.0 -rect_min_size = Vector2( 24, 24 ) -hint_tooltip = "Magic Wand - -%s for left mouse button -%s for right mouse button" -mouse_default_cursor_shape = 2 -button_mask = 3 - -[node name="BackgroundLeft" type="NinePatchRect" parent="DockableContainer/Tools/PanelContainer/ToolButtons/MagicWand"] -visible = false -modulate = Color( 0, 0.52549, 0.811765, 1 ) -anchor_bottom = 1.0 -margin_right = 12.0 -texture = ExtResource( 34 ) -region_rect = Rect2( 0, 0, 11, 24 ) -patch_margin_left = 2 -patch_margin_top = 1 -patch_margin_right = 10 -patch_margin_bottom = 1 -__meta__ = { -"_edit_use_anchors_": false -} - -[node name="BackgroundRight" type="NinePatchRect" parent="DockableContainer/Tools/PanelContainer/ToolButtons/MagicWand"] -visible = false -modulate = Color( 0.992157, 0.427451, 0.0784314, 1 ) -anchor_bottom = 1.0 -margin_left = 24.0 -margin_top = 24.0 -margin_right = 36.0 -margin_bottom = 24.0 -rect_rotation = 180.0 -texture = ExtResource( 34 ) -region_rect = Rect2( 0, 0, 11, 24 ) -patch_margin_left = 2 -patch_margin_top = 1 -patch_margin_right = 10 -patch_margin_bottom = 1 -__meta__ = { -"_edit_use_anchors_": false -} - -[node name="ToolIcon" type="TextureRect" parent="DockableContainer/Tools/PanelContainer/ToolButtons/MagicWand"] -anchor_left = 0.5 -anchor_top = 0.5 -anchor_right = 0.5 -anchor_bottom = 0.5 -margin_left = -11.0 -margin_top = -11.0 -margin_right = 11.0 -margin_bottom = 11.0 -texture = ExtResource( 33 ) -__meta__ = { -"_edit_use_anchors_": false -} - -[node name="Lasso" type="Button" parent="DockableContainer/Tools/PanelContainer/ToolButtons" groups=["UIButtons"]] -margin_top = 140.0 -margin_right = 24.0 -margin_bottom = 164.0 -rect_min_size = Vector2( 24, 24 ) -hint_tooltip = "Lasso / Free Select Tool - -%s for left mouse button -%s for right mouse button" -mouse_default_cursor_shape = 2 -button_mask = 3 - -[node name="BackgroundLeft" type="NinePatchRect" parent="DockableContainer/Tools/PanelContainer/ToolButtons/Lasso"] -visible = false -modulate = Color( 0, 0.52549, 0.811765, 1 ) -anchor_bottom = 1.0 -margin_right = 12.0 -texture = ExtResource( 34 ) -region_rect = Rect2( 0, 0, 11, 24 ) -patch_margin_left = 2 -patch_margin_top = 1 -patch_margin_right = 10 -patch_margin_bottom = 1 -__meta__ = { -"_edit_use_anchors_": false -} - -[node name="BackgroundRight" type="NinePatchRect" parent="DockableContainer/Tools/PanelContainer/ToolButtons/Lasso"] -visible = false -modulate = Color( 0.992157, 0.427451, 0.0784314, 1 ) -anchor_bottom = 1.0 -margin_left = 24.0 -margin_top = 24.0 -margin_right = 36.0 -margin_bottom = 24.0 -rect_rotation = 180.0 -texture = ExtResource( 34 ) -region_rect = Rect2( 0, 0, 11, 24 ) -patch_margin_left = 2 -patch_margin_top = 1 -patch_margin_right = 10 -patch_margin_bottom = 1 -__meta__ = { -"_edit_use_anchors_": false -} - -[node name="ToolIcon" type="TextureRect" parent="DockableContainer/Tools/PanelContainer/ToolButtons/Lasso"] -anchor_left = 0.5 -anchor_top = 0.5 -anchor_right = 0.5 -anchor_bottom = 0.5 -margin_left = -11.0 -margin_top = -11.0 -margin_right = 11.0 -margin_bottom = 11.0 -texture = ExtResource( 8 ) -__meta__ = { -"_edit_use_anchors_": false -} - -[node name="Move" type="Button" parent="DockableContainer/Tools/PanelContainer/ToolButtons" groups=["UIButtons"]] -margin_top = 168.0 -margin_right = 24.0 -margin_bottom = 192.0 -rect_min_size = Vector2( 24, 24 ) -hint_tooltip = "Move - -%s for left mouse button -%s for right mouse button" -mouse_default_cursor_shape = 2 -button_mask = 3 - -[node name="BackgroundLeft" type="NinePatchRect" parent="DockableContainer/Tools/PanelContainer/ToolButtons/Move"] -visible = false -modulate = Color( 0, 0.52549, 0.811765, 1 ) -anchor_bottom = 1.0 -margin_right = 12.0 -texture = ExtResource( 34 ) -region_rect = Rect2( 0, 0, 11, 24 ) -patch_margin_left = 2 -patch_margin_top = 1 -patch_margin_right = 10 -patch_margin_bottom = 1 -__meta__ = { -"_edit_use_anchors_": false -} - -[node name="BackgroundRight" type="NinePatchRect" parent="DockableContainer/Tools/PanelContainer/ToolButtons/Move"] -visible = false -modulate = Color( 0.992157, 0.427451, 0.0784314, 1 ) -anchor_bottom = 1.0 -margin_left = 24.0 -margin_top = 24.0 -margin_right = 36.0 -margin_bottom = 24.0 -rect_rotation = 180.0 -texture = ExtResource( 34 ) -region_rect = Rect2( 0, 0, 11, 24 ) -patch_margin_left = 2 -patch_margin_top = 1 -patch_margin_right = 10 -patch_margin_bottom = 1 -__meta__ = { -"_edit_use_anchors_": false -} - -[node name="ToolIcon" type="TextureRect" parent="DockableContainer/Tools/PanelContainer/ToolButtons/Move"] -anchor_left = 0.5 -anchor_top = 0.5 -anchor_right = 0.5 -anchor_bottom = 0.5 -margin_left = -11.0 -margin_top = -11.0 -margin_right = 11.0 -margin_bottom = 11.0 -texture = ExtResource( 28 ) -__meta__ = { -"_edit_use_anchors_": false -} - -[node name="Zoom" type="Button" parent="DockableContainer/Tools/PanelContainer/ToolButtons" groups=["UIButtons"]] -margin_top = 196.0 -margin_right = 24.0 -margin_bottom = 220.0 -rect_min_size = Vector2( 24, 24 ) -hint_tooltip = "Zoom - -%s for left mouse button -%s for right mouse button" -mouse_default_cursor_shape = 2 -button_mask = 3 - -[node name="BackgroundLeft" type="NinePatchRect" parent="DockableContainer/Tools/PanelContainer/ToolButtons/Zoom"] -visible = false -modulate = Color( 0, 0.52549, 0.811765, 1 ) -anchor_bottom = 1.0 -margin_right = 12.0 -texture = ExtResource( 34 ) -region_rect = Rect2( 0, 0, 11, 24 ) -patch_margin_left = 2 -patch_margin_top = 1 -patch_margin_right = 10 -patch_margin_bottom = 1 -__meta__ = { -"_edit_use_anchors_": false -} - -[node name="BackgroundRight" type="NinePatchRect" parent="DockableContainer/Tools/PanelContainer/ToolButtons/Zoom"] -visible = false -modulate = Color( 0.992157, 0.427451, 0.0784314, 1 ) -anchor_bottom = 1.0 -margin_left = 24.0 -margin_top = 24.0 -margin_right = 36.0 -margin_bottom = 24.0 -rect_rotation = 180.0 -texture = ExtResource( 34 ) -region_rect = Rect2( 0, 0, 11, 24 ) -patch_margin_left = 2 -patch_margin_top = 1 -patch_margin_right = 10 -patch_margin_bottom = 1 -__meta__ = { -"_edit_use_anchors_": false -} - -[node name="ToolIcon" type="TextureRect" parent="DockableContainer/Tools/PanelContainer/ToolButtons/Zoom"] -anchor_left = 0.5 -anchor_top = 0.5 -anchor_right = 0.5 -anchor_bottom = 0.5 -margin_left = -11.0 -margin_top = -11.0 -margin_right = 11.0 -margin_bottom = 11.0 -texture = ExtResource( 31 ) -__meta__ = { -"_edit_use_anchors_": false -} - -[node name="Pan" type="Button" parent="DockableContainer/Tools/PanelContainer/ToolButtons" groups=["UIButtons"]] -margin_top = 224.0 -margin_right = 24.0 -margin_bottom = 248.0 -rect_min_size = Vector2( 24, 24 ) -hint_tooltip = "Pan - -%s for left mouse button -%s for right mouse button" -mouse_default_cursor_shape = 2 -button_mask = 3 - -[node name="BackgroundLeft" type="NinePatchRect" parent="DockableContainer/Tools/PanelContainer/ToolButtons/Pan"] -visible = false -modulate = Color( 0, 0.52549, 0.811765, 1 ) -anchor_bottom = 1.0 -margin_right = 12.0 -texture = ExtResource( 34 ) -region_rect = Rect2( 0, 0, 11, 24 ) -patch_margin_left = 2 -patch_margin_top = 1 -patch_margin_right = 10 -patch_margin_bottom = 1 -__meta__ = { -"_edit_use_anchors_": false -} - -[node name="BackgroundRight" type="NinePatchRect" parent="DockableContainer/Tools/PanelContainer/ToolButtons/Pan"] -visible = false -modulate = Color( 0.992157, 0.427451, 0.0784314, 1 ) -anchor_bottom = 1.0 -margin_left = 24.0 -margin_top = 24.0 -margin_right = 36.0 -margin_bottom = 24.0 -rect_rotation = 180.0 -texture = ExtResource( 34 ) -region_rect = Rect2( 0, 0, 11, 24 ) -patch_margin_left = 2 -patch_margin_top = 1 -patch_margin_right = 10 -patch_margin_bottom = 1 -__meta__ = { -"_edit_use_anchors_": false -} - -[node name="ToolIcon" type="TextureRect" parent="DockableContainer/Tools/PanelContainer/ToolButtons/Pan"] -anchor_left = 0.5 -anchor_top = 0.5 -anchor_right = 0.5 -anchor_bottom = 0.5 -margin_left = -11.0 -margin_top = -11.0 -margin_right = 11.0 -margin_bottom = 11.0 -texture = ExtResource( 22 ) -__meta__ = { -"_edit_use_anchors_": false -} - -[node name="ColorPicker" type="Button" parent="DockableContainer/Tools/PanelContainer/ToolButtons" groups=["UIButtons"]] -margin_top = 252.0 -margin_right = 24.0 -margin_bottom = 276.0 -rect_min_size = Vector2( 24, 24 ) -hint_tooltip = "Color Picker -Select a color from a pixel of the sprite - -%s for left mouse button -%s for right mouse button" -mouse_default_cursor_shape = 2 -button_mask = 3 - -[node name="BackgroundLeft" type="NinePatchRect" parent="DockableContainer/Tools/PanelContainer/ToolButtons/ColorPicker"] -visible = false -modulate = Color( 0, 0.52549, 0.811765, 1 ) -anchor_bottom = 1.0 -margin_right = 12.0 -texture = ExtResource( 34 ) -region_rect = Rect2( 0, 0, 11, 24 ) -patch_margin_left = 2 -patch_margin_top = 1 -patch_margin_right = 10 -patch_margin_bottom = 1 -__meta__ = { -"_edit_use_anchors_": false -} - -[node name="BackgroundRight" type="NinePatchRect" parent="DockableContainer/Tools/PanelContainer/ToolButtons/ColorPicker"] -visible = false -modulate = Color( 0.992157, 0.427451, 0.0784314, 1 ) -anchor_bottom = 1.0 -margin_left = 24.0 -margin_top = 24.0 -margin_right = 36.0 -margin_bottom = 24.0 -rect_rotation = 180.0 -texture = ExtResource( 34 ) -region_rect = Rect2( 0, 0, 11, 24 ) -patch_margin_left = 2 -patch_margin_top = 1 -patch_margin_right = 10 -patch_margin_bottom = 1 -__meta__ = { -"_edit_use_anchors_": false -} - -[node name="ToolIcon" type="TextureRect" parent="DockableContainer/Tools/PanelContainer/ToolButtons/ColorPicker"] -anchor_left = 0.5 -anchor_top = 0.5 -anchor_right = 0.5 -anchor_bottom = 0.5 -margin_left = -11.0 -margin_top = -11.0 -margin_right = 11.0 -margin_bottom = 11.0 -texture = ExtResource( 10 ) -__meta__ = { -"_edit_use_anchors_": false -} - -[node name="Pencil" type="Button" parent="DockableContainer/Tools/PanelContainer/ToolButtons" groups=["UIButtons"]] -margin_top = 280.0 -margin_right = 24.0 -margin_bottom = 304.0 -rect_min_size = Vector2( 24, 24 ) -hint_tooltip = "Pencil - -%s for left mouse button -%s for right mouse button - -Hold %s to make a line" -mouse_default_cursor_shape = 2 -button_mask = 3 - -[node name="BackgroundLeft" type="NinePatchRect" parent="DockableContainer/Tools/PanelContainer/ToolButtons/Pencil"] -modulate = Color( 0, 0.52549, 0.811765, 1 ) -anchor_bottom = 1.0 -margin_right = 12.0 -texture = ExtResource( 34 ) -region_rect = Rect2( 0, 0, 11, 24 ) -patch_margin_left = 2 -patch_margin_top = 1 -patch_margin_right = 10 -patch_margin_bottom = 1 -__meta__ = { -"_edit_use_anchors_": false -} - -[node name="BackgroundRight" type="NinePatchRect" parent="DockableContainer/Tools/PanelContainer/ToolButtons/Pencil"] -visible = false -modulate = Color( 0.992157, 0.427451, 0.0784314, 1 ) -anchor_bottom = 1.0 -margin_left = 24.0 -margin_top = 24.0 -margin_right = 36.0 -margin_bottom = 24.0 -rect_rotation = 180.0 -texture = ExtResource( 34 ) -region_rect = Rect2( 0, 0, 11, 24 ) -patch_margin_left = 2 -patch_margin_top = 1 -patch_margin_right = 10 -patch_margin_bottom = 1 -__meta__ = { -"_edit_use_anchors_": false -} - -[node name="ToolIcon" type="TextureRect" parent="DockableContainer/Tools/PanelContainer/ToolButtons/Pencil"] -anchor_left = 0.5 -anchor_top = 0.5 -anchor_right = 0.5 -anchor_bottom = 0.5 -margin_left = -11.0 -margin_top = -11.0 -margin_right = 11.0 -margin_bottom = 11.0 -texture = ExtResource( 24 ) -__meta__ = { -"_edit_use_anchors_": false -} - -[node name="Eraser" type="Button" parent="DockableContainer/Tools/PanelContainer/ToolButtons" groups=["UIButtons"]] -margin_top = 308.0 -margin_right = 24.0 -margin_bottom = 332.0 -rect_min_size = Vector2( 24, 24 ) -hint_tooltip = "Eraser - -%s for left mouse button -%s for right mouse button - -Hold %s to make a line" -mouse_default_cursor_shape = 2 -button_mask = 3 - -[node name="BackgroundLeft" type="NinePatchRect" parent="DockableContainer/Tools/PanelContainer/ToolButtons/Eraser"] -visible = false -modulate = Color( 0, 0.52549, 0.811765, 1 ) -anchor_bottom = 1.0 -margin_right = 12.0 -texture = ExtResource( 34 ) -region_rect = Rect2( 0, 0, 11, 24 ) -patch_margin_left = 2 -patch_margin_top = 1 -patch_margin_right = 10 -patch_margin_bottom = 1 -__meta__ = { -"_edit_use_anchors_": false -} - -[node name="BackgroundRight" type="NinePatchRect" parent="DockableContainer/Tools/PanelContainer/ToolButtons/Eraser"] -modulate = Color( 0.992157, 0.427451, 0.0784314, 1 ) -anchor_bottom = 1.0 -margin_left = 24.0 -margin_top = 24.0 -margin_right = 36.0 -margin_bottom = 24.0 -rect_rotation = 180.0 -texture = ExtResource( 34 ) -region_rect = Rect2( 0, 0, 11, 24 ) -patch_margin_left = 2 -patch_margin_top = 1 -patch_margin_right = 10 -patch_margin_bottom = 1 -__meta__ = { -"_edit_use_anchors_": false -} - -[node name="ToolIcon" type="TextureRect" parent="DockableContainer/Tools/PanelContainer/ToolButtons/Eraser"] -anchor_left = 0.5 -anchor_top = 0.5 -anchor_right = 0.5 -anchor_bottom = 0.5 -margin_left = -11.0 -margin_top = -11.0 -margin_right = 11.0 -margin_bottom = 11.0 -texture = ExtResource( 32 ) -__meta__ = { -"_edit_use_anchors_": false -} - -[node name="Bucket" type="Button" parent="DockableContainer/Tools/PanelContainer/ToolButtons" groups=["UIButtons"]] -margin_top = 336.0 -margin_right = 24.0 -margin_bottom = 360.0 -rect_min_size = Vector2( 24, 24 ) -hint_tooltip = "Bucket - -%s for left mouse button -%s for right mouse button" -mouse_default_cursor_shape = 2 -button_mask = 3 - -[node name="BackgroundLeft" type="NinePatchRect" parent="DockableContainer/Tools/PanelContainer/ToolButtons/Bucket"] -visible = false -modulate = Color( 0, 0.52549, 0.811765, 1 ) -anchor_bottom = 1.0 -margin_right = 12.0 -texture = ExtResource( 34 ) -region_rect = Rect2( 0, 0, 11, 24 ) -patch_margin_left = 2 -patch_margin_top = 1 -patch_margin_right = 10 -patch_margin_bottom = 1 -__meta__ = { -"_edit_use_anchors_": false -} - -[node name="BackgroundRight" type="NinePatchRect" parent="DockableContainer/Tools/PanelContainer/ToolButtons/Bucket"] -visible = false -modulate = Color( 0.992157, 0.427451, 0.0784314, 1 ) -anchor_bottom = 1.0 -margin_left = 24.0 -margin_top = 24.0 -margin_right = 36.0 -margin_bottom = 24.0 -rect_rotation = 180.0 -texture = ExtResource( 34 ) -region_rect = Rect2( 0, 0, 11, 24 ) -patch_margin_left = 2 -patch_margin_top = 1 -patch_margin_right = 10 -patch_margin_bottom = 1 -__meta__ = { -"_edit_use_anchors_": false -} - -[node name="ToolIcon" type="TextureRect" parent="DockableContainer/Tools/PanelContainer/ToolButtons/Bucket"] -anchor_left = 0.5 -anchor_top = 0.5 -anchor_right = 0.5 -anchor_bottom = 0.5 -margin_left = -11.0 -margin_top = -11.0 -margin_right = 11.0 -margin_bottom = 11.0 -texture = ExtResource( 25 ) -__meta__ = { -"_edit_use_anchors_": false -} - -[node name="Shading" type="Button" parent="DockableContainer/Tools/PanelContainer/ToolButtons" groups=["UIButtons"]] -margin_top = 364.0 -margin_right = 24.0 -margin_bottom = 388.0 -rect_min_size = Vector2( 24, 24 ) -hint_tooltip = "Shading Tool - -%s for left mouse button -%s for right mouse button" -mouse_default_cursor_shape = 2 -button_mask = 3 - -[node name="BackgroundLeft" type="NinePatchRect" parent="DockableContainer/Tools/PanelContainer/ToolButtons/Shading"] -visible = false -modulate = Color( 0, 0.52549, 0.811765, 1 ) -anchor_bottom = 1.0 -margin_right = 12.0 -texture = ExtResource( 34 ) -region_rect = Rect2( 0, 0, 11, 24 ) -patch_margin_left = 2 -patch_margin_top = 1 -patch_margin_right = 10 -patch_margin_bottom = 1 -__meta__ = { -"_edit_use_anchors_": false -} - -[node name="BackgroundRight" type="NinePatchRect" parent="DockableContainer/Tools/PanelContainer/ToolButtons/Shading"] -visible = false -modulate = Color( 0.992157, 0.427451, 0.0784314, 1 ) -anchor_bottom = 1.0 -margin_left = 24.0 -margin_top = 24.0 -margin_right = 36.0 -margin_bottom = 24.0 -rect_rotation = 180.0 -texture = ExtResource( 34 ) -region_rect = Rect2( 0, 0, 11, 24 ) -patch_margin_left = 2 -patch_margin_top = 1 -patch_margin_right = 10 -patch_margin_bottom = 1 -__meta__ = { -"_edit_use_anchors_": false -} - -[node name="ToolIcon" type="TextureRect" parent="DockableContainer/Tools/PanelContainer/ToolButtons/Shading"] -anchor_left = 0.5 -anchor_top = 0.5 -anchor_right = 0.5 -anchor_bottom = 0.5 -margin_left = -11.0 -margin_top = -11.0 -margin_right = 11.0 -margin_bottom = 11.0 -texture = ExtResource( 11 ) -__meta__ = { -"_edit_use_anchors_": false -} - -[node name="LineTool" type="Button" parent="DockableContainer/Tools/PanelContainer/ToolButtons" groups=["UIButtons"]] -margin_top = 392.0 -margin_right = 24.0 -margin_bottom = 416.0 -rect_min_size = Vector2( 24, 24 ) -hint_tooltip = "Line Tool - -%s for left mouse button -%s for right mouse button - -Hold %s to snap the angle of the line -Hold %s to center the shape on the click origin -Hold %s to displace the shape's origin" -mouse_default_cursor_shape = 2 -button_mask = 3 - -[node name="BackgroundLeft" type="NinePatchRect" parent="DockableContainer/Tools/PanelContainer/ToolButtons/LineTool"] -visible = false -modulate = Color( 0, 0.52549, 0.811765, 1 ) -anchor_bottom = 1.0 -margin_right = 12.0 -texture = ExtResource( 34 ) -region_rect = Rect2( 0, 0, 11, 24 ) -patch_margin_left = 2 -patch_margin_top = 1 -patch_margin_right = 10 -patch_margin_bottom = 1 -__meta__ = { -"_edit_use_anchors_": false -} - -[node name="BackgroundRight" type="NinePatchRect" parent="DockableContainer/Tools/PanelContainer/ToolButtons/LineTool"] -visible = false -modulate = Color( 0.992157, 0.427451, 0.0784314, 1 ) -anchor_bottom = 1.0 -margin_left = 24.0 -margin_top = 24.0 -margin_right = 36.0 -margin_bottom = 24.0 -rect_rotation = 180.0 -texture = ExtResource( 34 ) -region_rect = Rect2( 0, 0, 11, 24 ) -patch_margin_left = 2 -patch_margin_top = 1 -patch_margin_right = 10 -patch_margin_bottom = 1 -__meta__ = { -"_edit_use_anchors_": false -} - -[node name="ToolIcon" type="TextureRect" parent="DockableContainer/Tools/PanelContainer/ToolButtons/LineTool"] -anchor_left = 0.5 -anchor_top = 0.5 -anchor_right = 0.5 -anchor_bottom = 0.5 -margin_left = -11.0 -margin_top = -11.0 -margin_right = 11.0 -margin_bottom = 11.0 -texture = ExtResource( 12 ) -__meta__ = { -"_edit_use_anchors_": false -} - -[node name="RectangleTool" type="Button" parent="DockableContainer/Tools/PanelContainer/ToolButtons" groups=["UIButtons"]] -margin_top = 420.0 -margin_right = 24.0 -margin_bottom = 444.0 -rect_min_size = Vector2( 24, 24 ) -hint_tooltip = "Rectangle Tool - -%s for left mouse button -%s for right mouse button - -Hold %s to create a 1:1 shape -Hold %s to center the shape on the click origin -Hold %s to displace the shape's origin" -mouse_default_cursor_shape = 2 -button_mask = 3 - -[node name="BackgroundLeft" type="NinePatchRect" parent="DockableContainer/Tools/PanelContainer/ToolButtons/RectangleTool"] -visible = false -modulate = Color( 0, 0.52549, 0.811765, 1 ) -anchor_bottom = 1.0 -margin_right = 12.0 -texture = ExtResource( 34 ) -region_rect = Rect2( 0, 0, 11, 24 ) -patch_margin_left = 2 -patch_margin_top = 1 -patch_margin_right = 10 -patch_margin_bottom = 1 -__meta__ = { -"_edit_use_anchors_": false -} - -[node name="BackgroundRight" type="NinePatchRect" parent="DockableContainer/Tools/PanelContainer/ToolButtons/RectangleTool"] -visible = false -modulate = Color( 0.992157, 0.427451, 0.0784314, 1 ) -anchor_bottom = 1.0 -margin_left = 24.0 -margin_top = 24.0 -margin_right = 36.0 -margin_bottom = 24.0 -rect_rotation = 180.0 -texture = ExtResource( 34 ) -region_rect = Rect2( 0, 0, 11, 24 ) -patch_margin_left = 2 -patch_margin_top = 1 -patch_margin_right = 10 -patch_margin_bottom = 1 -__meta__ = { -"_edit_use_anchors_": false -} - -[node name="ToolIcon" type="TextureRect" parent="DockableContainer/Tools/PanelContainer/ToolButtons/RectangleTool"] -anchor_left = 0.5 -anchor_top = 0.5 -anchor_right = 0.5 -anchor_bottom = 0.5 -margin_left = -11.0 -margin_top = -11.0 -margin_right = 11.0 -margin_bottom = 11.0 -texture = ExtResource( 13 ) -__meta__ = { -"_edit_use_anchors_": false -} - -[node name="EllipseTool" type="Button" parent="DockableContainer/Tools/PanelContainer/ToolButtons" groups=["UIButtons"]] -margin_top = 448.0 -margin_right = 24.0 -margin_bottom = 472.0 -rect_min_size = Vector2( 24, 24 ) -hint_tooltip = "Ellipse Tool - -%s for left mouse button -%s for right mouse button - -Hold %s to create a 1:1 shape -Hold %s to center the shape on the click origin -Hold %s to displace the shape's origin" -mouse_default_cursor_shape = 2 -button_mask = 3 - -[node name="BackgroundLeft" type="NinePatchRect" parent="DockableContainer/Tools/PanelContainer/ToolButtons/EllipseTool"] -visible = false -modulate = Color( 0, 0.52549, 0.811765, 1 ) -anchor_bottom = 1.0 -margin_right = 12.0 -texture = ExtResource( 34 ) -region_rect = Rect2( 0, 0, 11, 24 ) -patch_margin_left = 2 -patch_margin_top = 1 -patch_margin_right = 10 -patch_margin_bottom = 1 -__meta__ = { -"_edit_use_anchors_": false -} - -[node name="BackgroundRight" type="NinePatchRect" parent="DockableContainer/Tools/PanelContainer/ToolButtons/EllipseTool"] -visible = false -modulate = Color( 0.992157, 0.427451, 0.0784314, 1 ) -anchor_bottom = 1.0 -margin_left = 24.0 -margin_top = 24.0 -margin_right = 36.0 -margin_bottom = 24.0 -rect_rotation = 180.0 -texture = ExtResource( 34 ) -region_rect = Rect2( 0, 0, 11, 24 ) -patch_margin_left = 2 -patch_margin_top = 1 -patch_margin_right = 10 -patch_margin_bottom = 1 -__meta__ = { -"_edit_use_anchors_": false -} - -[node name="ToolIcon" type="TextureRect" parent="DockableContainer/Tools/PanelContainer/ToolButtons/EllipseTool"] -anchor_left = 0.5 -anchor_top = 0.5 -anchor_right = 0.5 -anchor_bottom = 0.5 -margin_left = -11.0 -margin_top = -11.0 -margin_right = 11.0 -margin_bottom = 11.0 -texture = ExtResource( 26 ) -__meta__ = { -"_edit_use_anchors_": false -} +[node name="Tools" parent="DockableContainer" instance=ExtResource( 1 )] [node name="Main Canvas" type="VBoxContainer" parent="DockableContainer"] margin_left = 66.0 @@ -1425,7 +346,6 @@ margin_top = 598.0 margin_right = 1276.0 margin_bottom = 716.0 -[connection signal="resized" from="DockableContainer/Tools" to="DockableContainer/Tools/PanelContainer/ToolButtons" method="_on_Tools_resized"] [connection signal="item_rect_changed" from="DockableContainer/Main Canvas" to="." method="_on_main_canvas_item_rect_changed"] [connection signal="visibility_changed" from="DockableContainer/Main Canvas" to="." method="_on_main_canvas_visibility_changed"] [connection signal="reposition_active_tab_request" from="DockableContainer/Main Canvas/TabsContainer/Tabs" to="DockableContainer/Main Canvas/TabsContainer/Tabs" method="_on_Tabs_reposition_active_tab_request"]