1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-19 09:39:48 +00:00
Pixelorama/src/UI/UI.tscn

1428 lines
42 KiB
Plaintext
Raw Normal View History

[gd_scene load_steps=55 format=2]
[ext_resource path="res://src/UI/ToolButtons.gd" type="Script" id=1]
[ext_resource path="res://src/UI/Canvas/CanvasPreview.tscn" type="PackedScene" id=2]
2020-06-04 23:48:38 +00:00
[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]
[sub_resource type="Resource" id=1]
resource_name = "Tabs"
script = ExtResource( 36 )
names = PoolStringArray( "Tools" )
current_tab = 0
[sub_resource type="Resource" id=8]
resource_name = "Tabs"
script = ExtResource( 36 )
names = PoolStringArray( "Main Canvas" )
current_tab = 0
[sub_resource type="Resource" id=9]
resource_name = "Tabs"
script = ExtResource( 36 )
names = PoolStringArray( "Animation Timeline" )
current_tab = 0
[sub_resource type="Resource" id=10]
resource_name = "Split"
script = ExtResource( 27 )
direction = 1
percent = 0.90625
first = SubResource( 8 )
second = SubResource( 9 )
[sub_resource type="Resource" id=11]
resource_name = "Tabs"
script = ExtResource( 36 )
names = PoolStringArray( "Canvas Preview" )
current_tab = 0
[sub_resource type="Resource" id=20]
resource_name = "Tabs"
script = ExtResource( 36 )
names = PoolStringArray( "Color Pickers" )
current_tab = 0
[sub_resource type="Resource" id=21]
resource_name = "Split"
script = ExtResource( 27 )
direction = 1
percent = 0.911765
first = SubResource( 11 )
second = SubResource( 20 )
[sub_resource type="Resource" id=22]
resource_name = "Tabs"
script = ExtResource( 36 )
names = PoolStringArray( "Left Tool Options" )
current_tab = 0
[sub_resource type="Resource" id=23]
resource_name = "Tabs"
script = ExtResource( 36 )
names = PoolStringArray( "Right Tool Options" )
current_tab = 0
[sub_resource type="Resource" id=24]
resource_name = "Split"
script = ExtResource( 27 )
direction = 0
percent = 0.5
first = SubResource( 22 )
second = SubResource( 23 )
[sub_resource type="Resource" id=13]
resource_name = "Tabs"
script = ExtResource( 36 )
names = PoolStringArray( "Palette Panel" )
current_tab = 0
[sub_resource type="Resource" id=14]
resource_name = "Split"
script = ExtResource( 27 )
direction = 1
percent = 0.754808
first = SubResource( 24 )
second = SubResource( 13 )
[sub_resource type="Resource" id=15]
resource_name = "Split"
script = ExtResource( 27 )
direction = 1
percent = 0.332031
first = SubResource( 21 )
second = SubResource( 14 )
[sub_resource type="Resource" id=16]
resource_name = "Split"
script = ExtResource( 27 )
direction = 0
percent = 0.962785
first = SubResource( 10 )
second = SubResource( 15 )
[sub_resource type="Resource" id=5]
resource_name = "Split"
script = ExtResource( 27 )
direction = 0
percent = 0.0
first = SubResource( 1 )
second = SubResource( 16 )
[sub_resource type="Resource" id=25]
resource_name = "Layout"
script = ExtResource( 14 )
root = SubResource( 5 )
hidden_tabs = {
}
2021-08-18 17:13:56 +00:00
[sub_resource type="ShaderMaterial" id=2]
shader = ExtResource( 9 )
shader_param/size = 10.0
shader_param/alpha = 1.0
shader_param/color1 = Color( 0.7, 0.7, 0.7, 1 )
shader_param/color2 = Color( 1, 1, 1, 1 )
shader_param/offset = Vector2( 0, 0 )
shader_param/scale = Vector2( 0, 0 )
shader_param/rect_size = Vector2( 0, 0 )
shader_param/follow_movement = false
shader_param/follow_scale = false
2021-08-18 17:13:56 +00:00
[sub_resource type="ShaderMaterial" id=3]
shader = ExtResource( 9 )
shader_param/size = 10.0
shader_param/alpha = 1.0
shader_param/color1 = Color( 0.7, 0.7, 0.7, 1 )
shader_param/color2 = Color( 1, 1, 1, 1 )
shader_param/offset = Vector2( 0, 0 )
shader_param/scale = Vector2( 0, 0 )
shader_param/rect_size = Vector2( 0, 0 )
shader_param/follow_movement = false
shader_param/follow_scale = false
[node name="UI" type="Panel"]
anchor_right = 1.0
anchor_bottom = 1.0
size_flags_horizontal = 3
size_flags_vertical = 3
__meta__ = {
"_edit_use_anchors_": false
}
[node name="DockableContainer" type="Container" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
size_flags_horizontal = 3
size_flags_vertical = 3
script = ExtResource( 35 )
__meta__ = {
"_edit_use_anchors_": false
}
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"]
2020-05-21 17:33:00 +00:00
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
2021-04-20 12:53:16 +00:00
__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 )
2021-04-20 12:53:16 +00:00
__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"
2021-04-20 12:53:16 +00:00
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 )
New selection system (#474) * Basic move tool * Added marching ants effect on the selection borders * Rename SelectionRectangle to SelectionShape, make it have non-rectangular shape and multiple SelectionShapes can exist - Create multiple selection rectangles - Merge them together if they intersect - Move the selections (without contents as of right now) - Gizmos are being drawn but they are not functional yet Code is very ugly. * Sort vectors counter-clockwise to be used as polygon borders I did this, no idea if it works properly, probably won't be used but I thought I'd keep it saved somewhere * More experiments I may or may not need Trying to generate a polygon from the individual selected pixels * Change default rectangle select behavior and ability to clip polygons using Control * Fix rectangle selection clipping * Split polygon into two with selection subtracting * Move selection with contents with the move tool Code is still a mess, don't bother looking. * Move some methods from SelectionShape.gd to Selection.gd The purpose of this is to generalize some selection code, so that it applies to all polygons, the entire selection. More will follow. * UndoRedo for border moving Nothing else in the selections system works properly in UndoRedo right now. Needs: - UR support for creating selections - UR support for modifying selections (merging and cutting selections together) - UR support for removing selection - UR support for moving content & for all the rest of the remaining features * Moving all of the selection shape logic to Selection.gd Handle all of the polygons there instead of having them as individual nodes. Should be easier to handle undo/redo this way. This commit probably breaks move tool + selection tool and undo/redo. Code is still a mess. For your sanity, I hope you are not reading this. I promise I will clean up. * Move tool works again Buggy and messy, of course. * Remove unneeded code and restore selection move undoredo logic * Made Selection.gd have one big preview_image for when moving content, instead of each polygon having its own image Could be further optimized for some specific cases. We could also remove selected_pixels from SelectionPolygon. * UndoRedo support for creating, deleting, merging and clipping selections UndoRedo support for moving content not added in this commit. Should work but needs more testing. This PR also removes selected_pixels from the SelectionPolygon class. * Confirm & cancel selection movement, should support undoredo properly too Press Enter or do any editing to confirm movement, Escape to cancel. I will most likely add UI buttons for confirm and cancel too. * Mirror View affects selection * Restore Cut, Copy, Paste and Clear Selection Pasting now no longer requires a pre-existing selection and instead copies the selections themselves too. * Created a new Select menu, which has Select All and Clear Selection as options Clear Selection now also confirms content moving. TopMenuContainer code has changed to no longer rely on Global for the menu buttons. * Draw gizmos as rectangles No functionality yet. They may need to be turned to nodes, so that they can easily resize based on zoom level and check for mouse enter/exit events. * Made gizmos get drawn in the sides and corners of the big bounding rectangle instead of individual selection parts Still no functionality yet. * Restore label text * Minor optimization when clipping selections This will execute the for loop less times * Made a Gizmo class, cursor change on hover, has_focus = false on mouse click Now I should actually make them resize when dragged, aye? * Very basic gizmo resizing, still a WIP, does not work properly yet * Start replacing the array of selected pixels with a BitMap This should optimize the selection making a lot, and it also allows for easy border drawing without having to deal with polygons, thanks to the MarchingAntsOutline.shader Still commit is still a WIP, image effects and brushes may not work properly yet. Because the BitMap has a fixed size, the size of the project, moving the selection outside of canvas boundaries has proven to be a bit tricky. I did implement a hacky way of handling it, but it may be buggy and problematic. I'm still unsure whether this is the best way to handle the situation. * Selection works with mirror view * Draw a black rectangle when the user is making a rectangular selection After they release the mouse, the black rectangle becomes the selection * Make Selection.gd update when undoing/redoing * Fix brushes not working properly with non-rectangular selections * Added invert selection * Cache has_selection as a variable for a speedup * Fix conflict issues with the shape tools * Made the bitmap image squared so the marching ants effect will be the same on both dimensions There may be a better way to fix the issue, perhaps inside the shader itself. * Some optimizations to call selection_bitmap_changed() less times * Restored almost all of the image effects Left to do: - Change gradient's behavior. Unsure of how it will work with non-rectangular selections yet, but it should not generate pixels outside of the selection. - Restore rotation - Resize bitmap on image resize - Remove the `pixels` array from the ImageEffect * Fix Selection.gd not updating when changing project * Resize the selection bitmap along with image resize * Restored rotation's old behavior and finally got rid of the selected_pixels array The rotation does not yet work properly with selections, but at least it now "works". * Resize selection too when using gizmos Left to do for gizmos: - Proper cancel transformation - Begin transformation (currently named move_content_start but it should be renamed to something more general) when resizing gizmos - Keep the original image and selection in memory and resize them. Meaning, gizmos should not resize the already resized data, but only resize the original. This is less destructive as there is no danger of data loss. - Always resize on InputEventMouseMotion. This is going to be worse for performance, but it will look better for the user. * Image and bitmap resizing now uses the original data and begin transformation on gizmo click No matter how many times the user resizes on the current transformation, the original data will not be lost until they either confirm or cancel, so there is no data loss before confirmation/cancel. * Cancel transformation now works properly when the selection has been resized * Made gizmos resize on mouse motion, fix issues with negative bounding rectangle and when combined with the move tool * Resizing can now get out of positive bounds, clearing and inverting now gets limited to the canvas bounds Resizing currently does not work properly with negative (left & up) canvas boundaries * Flip image when resizing and the bounding rectangle gets flipped * Call move_content_confirm() when inverting selection * Attempt to implement selection resizing that goes outside of the canvas boundaries (not working properly yet) * Flip selection when resizing to negative bounding rectangle sizes And fix preview_image vertical flipping * Fix rotation so that it works (almost) properly with selections Rotation algorithms now accept and only work with a given image, and the pivot has been added as a parameter * Experimental gizmo rotation - does not work properly yet Transforming the selection outside of the canvas is still broken. * Fix some issues with moving selection out of canvas bounds * Fix more issues with selection getting resized outside of canvas bounds * Update marching ants effect properly when switching between projects And make sure the frequency of the marching ants effect always looks roughly the same on all project sizes * Made the rotation gizmo part of the gizmos array and resize them based on camera zoom * Remove unneeded parameter from move_bitmap_values() * Remove more unneeded parameters * Move the selection only if the cursor is above it and neither shift nor control are currently pressed * Gradient generation now works on non-rectangular selections Although this behavior might not be the intended one * Copy/paste marching ants effect offset Useful for when the selection is in negative coords * Fix issue with clear selection & UndoRedo * Restore the ability to move selection when it's in negative coords * Made the marching ants offset a Project variable This fixes the issue of project switching and keeping the previous project's offset. Again, this is only relevant for when the selection is in negative coords. * Made the "from current selection" palette preset work with the new selection system * Fix out of bounds error when using the rectangular select tool on negative coords * Some code cleanup * Comment out the rotation gizmo for now, since it does not work properly * Update marching ants shader params and gizmo sizes when the bitmap changes * Move some methods around in Selection.gd
2021-04-17 18:30:12 +00:00
__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"
New selection system (#474) * Basic move tool * Added marching ants effect on the selection borders * Rename SelectionRectangle to SelectionShape, make it have non-rectangular shape and multiple SelectionShapes can exist - Create multiple selection rectangles - Merge them together if they intersect - Move the selections (without contents as of right now) - Gizmos are being drawn but they are not functional yet Code is very ugly. * Sort vectors counter-clockwise to be used as polygon borders I did this, no idea if it works properly, probably won't be used but I thought I'd keep it saved somewhere * More experiments I may or may not need Trying to generate a polygon from the individual selected pixels * Change default rectangle select behavior and ability to clip polygons using Control * Fix rectangle selection clipping * Split polygon into two with selection subtracting * Move selection with contents with the move tool Code is still a mess, don't bother looking. * Move some methods from SelectionShape.gd to Selection.gd The purpose of this is to generalize some selection code, so that it applies to all polygons, the entire selection. More will follow. * UndoRedo for border moving Nothing else in the selections system works properly in UndoRedo right now. Needs: - UR support for creating selections - UR support for modifying selections (merging and cutting selections together) - UR support for removing selection - UR support for moving content & for all the rest of the remaining features * Moving all of the selection shape logic to Selection.gd Handle all of the polygons there instead of having them as individual nodes. Should be easier to handle undo/redo this way. This commit probably breaks move tool + selection tool and undo/redo. Code is still a mess. For your sanity, I hope you are not reading this. I promise I will clean up. * Move tool works again Buggy and messy, of course. * Remove unneeded code and restore selection move undoredo logic * Made Selection.gd have one big preview_image for when moving content, instead of each polygon having its own image Could be further optimized for some specific cases. We could also remove selected_pixels from SelectionPolygon. * UndoRedo support for creating, deleting, merging and clipping selections UndoRedo support for moving content not added in this commit. Should work but needs more testing. This PR also removes selected_pixels from the SelectionPolygon class. * Confirm & cancel selection movement, should support undoredo properly too Press Enter or do any editing to confirm movement, Escape to cancel. I will most likely add UI buttons for confirm and cancel too. * Mirror View affects selection * Restore Cut, Copy, Paste and Clear Selection Pasting now no longer requires a pre-existing selection and instead copies the selections themselves too. * Created a new Select menu, which has Select All and Clear Selection as options Clear Selection now also confirms content moving. TopMenuContainer code has changed to no longer rely on Global for the menu buttons. * Draw gizmos as rectangles No functionality yet. They may need to be turned to nodes, so that they can easily resize based on zoom level and check for mouse enter/exit events. * Made gizmos get drawn in the sides and corners of the big bounding rectangle instead of individual selection parts Still no functionality yet. * Restore label text * Minor optimization when clipping selections This will execute the for loop less times * Made a Gizmo class, cursor change on hover, has_focus = false on mouse click Now I should actually make them resize when dragged, aye? * Very basic gizmo resizing, still a WIP, does not work properly yet * Start replacing the array of selected pixels with a BitMap This should optimize the selection making a lot, and it also allows for easy border drawing without having to deal with polygons, thanks to the MarchingAntsOutline.shader Still commit is still a WIP, image effects and brushes may not work properly yet. Because the BitMap has a fixed size, the size of the project, moving the selection outside of canvas boundaries has proven to be a bit tricky. I did implement a hacky way of handling it, but it may be buggy and problematic. I'm still unsure whether this is the best way to handle the situation. * Selection works with mirror view * Draw a black rectangle when the user is making a rectangular selection After they release the mouse, the black rectangle becomes the selection * Make Selection.gd update when undoing/redoing * Fix brushes not working properly with non-rectangular selections * Added invert selection * Cache has_selection as a variable for a speedup * Fix conflict issues with the shape tools * Made the bitmap image squared so the marching ants effect will be the same on both dimensions There may be a better way to fix the issue, perhaps inside the shader itself. * Some optimizations to call selection_bitmap_changed() less times * Restored almost all of the image effects Left to do: - Change gradient's behavior. Unsure of how it will work with non-rectangular selections yet, but it should not generate pixels outside of the selection. - Restore rotation - Resize bitmap on image resize - Remove the `pixels` array from the ImageEffect * Fix Selection.gd not updating when changing project * Resize the selection bitmap along with image resize * Restored rotation's old behavior and finally got rid of the selected_pixels array The rotation does not yet work properly with selections, but at least it now "works". * Resize selection too when using gizmos Left to do for gizmos: - Proper cancel transformation - Begin transformation (currently named move_content_start but it should be renamed to something more general) when resizing gizmos - Keep the original image and selection in memory and resize them. Meaning, gizmos should not resize the already resized data, but only resize the original. This is less destructive as there is no danger of data loss. - Always resize on InputEventMouseMotion. This is going to be worse for performance, but it will look better for the user. * Image and bitmap resizing now uses the original data and begin transformation on gizmo click No matter how many times the user resizes on the current transformation, the original data will not be lost until they either confirm or cancel, so there is no data loss before confirmation/cancel. * Cancel transformation now works properly when the selection has been resized * Made gizmos resize on mouse motion, fix issues with negative bounding rectangle and when combined with the move tool * Resizing can now get out of positive bounds, clearing and inverting now gets limited to the canvas bounds Resizing currently does not work properly with negative (left & up) canvas boundaries * Flip image when resizing and the bounding rectangle gets flipped * Call move_content_confirm() when inverting selection * Attempt to implement selection resizing that goes outside of the canvas boundaries (not working properly yet) * Flip selection when resizing to negative bounding rectangle sizes And fix preview_image vertical flipping * Fix rotation so that it works (almost) properly with selections Rotation algorithms now accept and only work with a given image, and the pivot has been added as a parameter * Experimental gizmo rotation - does not work properly yet Transforming the selection outside of the canvas is still broken. * Fix some issues with moving selection out of canvas bounds * Fix more issues with selection getting resized outside of canvas bounds * Update marching ants effect properly when switching between projects And make sure the frequency of the marching ants effect always looks roughly the same on all project sizes * Made the rotation gizmo part of the gizmos array and resize them based on camera zoom * Remove unneeded parameter from move_bitmap_values() * Remove more unneeded parameters * Move the selection only if the cursor is above it and neither shift nor control are currently pressed * Gradient generation now works on non-rectangular selections Although this behavior might not be the intended one * Copy/paste marching ants effect offset Useful for when the selection is in negative coords * Fix issue with clear selection & UndoRedo * Restore the ability to move selection when it's in negative coords * Made the marching ants offset a Project variable This fixes the issue of project switching and keeping the previous project's offset. Again, this is only relevant for when the selection is in negative coords. * Made the "from current selection" palette preset work with the new selection system * Fix out of bounds error when using the rectangular select tool on negative coords * Some code cleanup * Comment out the rotation gizmo for now, since it does not work properly * Update marching ants shader params and gizmo sizes when the bitmap changes * Move some methods around in Selection.gd
2021-04-17 18:30:12 +00:00
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
2020-12-23 18:41:42 +00:00
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"
2020-12-23 18:41:42 +00:00
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="Main Canvas" type="VBoxContainer" parent="DockableContainer"]
margin_left = 66.0
margin_top = 8.0
margin_right = 938.0
margin_bottom = 532.0
size_flags_horizontal = 3
size_flags_vertical = 3
2020-06-04 23:48:38 +00:00
custom_constants/separation = 0
[node name="TabsContainer" type="PanelContainer" parent="DockableContainer/Main Canvas"]
margin_right = 872.0
2020-06-04 23:48:38 +00:00
margin_bottom = 38.0
[node name="Tabs" type="Tabs" parent="DockableContainer/Main Canvas/TabsContainer"]
2020-06-04 23:48:38 +00:00
margin_left = 7.0
margin_top = 7.0
margin_right = 865.0
2020-06-04 23:48:38 +00:00
margin_bottom = 31.0
tab_align = 0
tab_close_display_policy = 2
2020-06-04 23:48:38 +00:00
drag_to_rearrange_enabled = true
script = ExtResource( 3 )
[node name="HorizontalRuler" type="Button" parent="DockableContainer/Main Canvas"]
2020-06-04 23:48:38 +00:00
margin_top = 38.0
margin_right = 872.0
margin_bottom = 58.0
rect_min_size = Vector2( 0, 16 )
focus_mode = 0
mouse_default_cursor_shape = 14
action_mode = 0
script = ExtResource( 6 )
[node name="HSplitContainer" type="HSplitContainer" parent="DockableContainer/Main Canvas"]
margin_top = 58.0
margin_right = 872.0
margin_bottom = 524.0
size_flags_vertical = 3
custom_constants/autohide = 0
[node name="ViewportandVerticalRuler" type="HBoxContainer" parent="DockableContainer/Main Canvas/HSplitContainer"]
margin_right = 860.0
margin_bottom = 466.0
size_flags_horizontal = 3
size_flags_vertical = 3
custom_constants/separation = 0
[node name="VerticalRuler" type="Button" parent="DockableContainer/Main Canvas/HSplitContainer/ViewportandVerticalRuler"]
margin_right = 16.0
margin_bottom = 466.0
rect_min_size = Vector2( 16, 0 )
focus_mode = 0
mouse_default_cursor_shape = 15
size_flags_horizontal = 0
size_flags_vertical = 3
action_mode = 0
script = ExtResource( 4 )
[node name="ViewportContainer" type="ViewportContainer" parent="DockableContainer/Main Canvas/HSplitContainer/ViewportandVerticalRuler"]
margin_left = 16.0
margin_right = 860.0
margin_bottom = 466.0
focus_mode = 2
mouse_default_cursor_shape = 3
size_flags_horizontal = 3
size_flags_vertical = 3
stretch = true
script = ExtResource( 23 )
[node name="Viewport" type="Viewport" parent="DockableContainer/Main Canvas/HSplitContainer/ViewportandVerticalRuler/ViewportContainer"]
size = Vector2( 844, 466 )
handle_input_locally = false
usage = 0
render_target_update_mode = 3
[node name="TransparentChecker" parent="DockableContainer/Main Canvas/HSplitContainer/ViewportandVerticalRuler/ViewportContainer/Viewport" instance=ExtResource( 5 )]
2021-08-18 17:13:56 +00:00
material = SubResource( 2 )
[node name="Canvas" parent="DockableContainer/Main Canvas/HSplitContainer/ViewportandVerticalRuler/ViewportContainer/Viewport" instance=ExtResource( 19 )]
[node name="Camera2D" type="Camera2D" parent="DockableContainer/Main Canvas/HSplitContainer/ViewportandVerticalRuler/ViewportContainer/Viewport"]
current = true
zoom = Vector2( 0.15, 0.15 )
script = ExtResource( 7 )
[node name="ViewportContainer2" type="ViewportContainer" parent="DockableContainer/Main Canvas/HSplitContainer"]
margin_left = 872.0
margin_right = 872.0
margin_bottom = 466.0
size_flags_vertical = 3
stretch = true
script = ExtResource( 23 )
[node name="Viewport" type="Viewport" parent="DockableContainer/Main Canvas/HSplitContainer/ViewportContainer2"]
size = Vector2( 0, 466 )
handle_input_locally = false
render_target_update_mode = 3
[node name="TransparentChecker" parent="DockableContainer/Main Canvas/HSplitContainer/ViewportContainer2/Viewport" instance=ExtResource( 5 )]
2021-08-18 17:13:56 +00:00
material = SubResource( 3 )
[node name="CanvasPreview" parent="DockableContainer/Main Canvas/HSplitContainer/ViewportContainer2/Viewport" instance=ExtResource( 2 )]
[node name="Camera2D2" type="Camera2D" parent="DockableContainer/Main Canvas/HSplitContainer/ViewportContainer2/Viewport"]
current = true
zoom = Vector2( 0.15, 0.15 )
script = ExtResource( 7 )
[node name="Animation Timeline" parent="DockableContainer" instance=ExtResource( 18 )]
margin_left = 66.0
margin_top = 556.0
margin_right = 938.0
margin_bottom = 716.0
[node name="Canvas Preview" parent="DockableContainer" instance=ExtResource( 16 )]
margin_left = 958.0
margin_top = 8.0
margin_right = 1276.0
margin_bottom = 173.062
[node name="Color Pickers" parent="DockableContainer" instance=ExtResource( 17 )]
margin_top = 197.062
[node name="Left Tool Options" type="ScrollContainer" parent="DockableContainer"]
margin_left = 958.0
margin_top = 253.062
margin_right = 1107.0
margin_bottom = 574.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="LeftPanelContainer" type="PanelContainer" parent="DockableContainer/Left Tool Options"]
margin_right = 149.0
margin_bottom = 320.938
rect_min_size = Vector2( 130, 0 )
size_flags_horizontal = 3
size_flags_vertical = 3
[node name="Right Tool Options" type="ScrollContainer" parent="DockableContainer"]
margin_left = 1127.0
margin_top = 253.062
margin_right = 1276.0
margin_bottom = 574.0
[node name="RightPanelContainer" type="PanelContainer" parent="DockableContainer/Right Tool Options"]
margin_right = 149.0
margin_bottom = 320.938
rect_min_size = Vector2( 130, 0 )
size_flags_horizontal = 3
size_flags_vertical = 3
[node name="Palette Panel" parent="DockableContainer" instance=ExtResource( 20 )]
margin_left = 958.0
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="reposition_active_tab_request" from="DockableContainer/Main Canvas/TabsContainer/Tabs" to="DockableContainer/Main Canvas/TabsContainer/Tabs" method="_on_Tabs_reposition_active_tab_request"]
[connection signal="tab_changed" from="DockableContainer/Main Canvas/TabsContainer/Tabs" to="DockableContainer/Main Canvas/TabsContainer/Tabs" method="_on_Tabs_tab_changed"]
[connection signal="tab_close" from="DockableContainer/Main Canvas/TabsContainer/Tabs" to="DockableContainer/Main Canvas/TabsContainer/Tabs" method="_on_Tabs_tab_close"]
[connection signal="mouse_entered" from="DockableContainer/Main Canvas/HorizontalRuler" to="DockableContainer/Main Canvas/HorizontalRuler" method="_on_HorizontalRuler_mouse_entered"]
[connection signal="pressed" from="DockableContainer/Main Canvas/HorizontalRuler" to="DockableContainer/Main Canvas/HorizontalRuler" method="_on_HorizontalRuler_pressed"]
[connection signal="pressed" from="DockableContainer/Main Canvas/HSplitContainer/ViewportandVerticalRuler/VerticalRuler" to="DockableContainer/Main Canvas/HSplitContainer/ViewportandVerticalRuler/VerticalRuler" method="_on_VerticalRuler_pressed"]
[connection signal="mouse_entered" from="DockableContainer/Main Canvas/HSplitContainer/ViewportandVerticalRuler/ViewportContainer" to="DockableContainer/Main Canvas/HSplitContainer/ViewportandVerticalRuler/ViewportContainer" method="_on_ViewportContainer_mouse_entered"]
[connection signal="mouse_exited" from="DockableContainer/Main Canvas/HSplitContainer/ViewportandVerticalRuler/ViewportContainer" to="DockableContainer/Main Canvas/HSplitContainer/ViewportandVerticalRuler/ViewportContainer" method="_on_ViewportContainer_mouse_exited"]
[connection signal="mouse_entered" from="DockableContainer/Main Canvas/HSplitContainer/ViewportContainer2" to="DockableContainer/Main Canvas/HSplitContainer/ViewportContainer2" method="_on_ViewportContainer_mouse_entered"]
[connection signal="mouse_exited" from="DockableContainer/Main Canvas/HSplitContainer/ViewportContainer2" to="DockableContainer/Main Canvas/HSplitContainer/ViewportContainer2" method="_on_ViewportContainer_mouse_exited"]