1- [gd_scene load_steps =6 format =3 uid ="uid://bhjmyer4wlwy2" ]
1+ [gd_scene load_steps =10 format =3 uid ="uid://bhjmyer4wlwy2" ]
22
33[ext_resource type ="Script" path ="res://paint_control.gd" id ="1" ]
44[ext_resource type ="Script" path ="res://tools_panel.gd" id ="2" ]
@@ -10,6 +10,22 @@ bg_color = Color(1, 1, 1, 1)
1010[sub_resource type ="StyleBoxFlat" id ="StyleBoxFlat_npkcn" ]
1111bg_color = Color (0.2 , 0.2 , 0.2 , 1 )
1212
13+ [sub_resource type ="AtlasTexture" id ="AtlasTexture_v0gbg" ]
14+ atlas = ExtResource ( "3" )
15+ region = Rect2 (0 , 0 , 16 , 16 )
16+
17+ [sub_resource type ="AtlasTexture" id ="AtlasTexture_j7akv" ]
18+ atlas = ExtResource ( "3" )
19+ region = Rect2 (16 , 0 , 16 , 16 )
20+
21+ [sub_resource type ="AtlasTexture" id ="AtlasTexture_63q87" ]
22+ atlas = ExtResource ( "3" )
23+ region = Rect2 (0 , 16 , 16 , 16 )
24+
25+ [sub_resource type ="AtlasTexture" id ="AtlasTexture_t52fe" ]
26+ atlas = ExtResource ( "3" )
27+ region = Rect2 (16 , 16 , 16 , 16 )
28+
1329[node name ="PaintRoot" type ="Control" ]
1430anchor_right = 1.0
1531anchor_bottom = 1.0
@@ -33,9 +49,6 @@ script = ExtResource( "1" )
3349metadata/_edit_layout_mode = 1
3450metadata/_edit_use_custom_anchors = false
3551
36- [node name ="TLPos" type ="Position2D" parent ="PaintControl" ]
37- position = Vector2 (350 , 0 )
38-
3952[node name ="ToolsPanel" type ="Panel" parent ="." ]
4053offset_right = 350.0
4154offset_bottom = 600.0
@@ -61,12 +74,18 @@ offset_bottom = 85.0
6174metadata/_edit_layout_mode = 0
6275metadata/_edit_use_custom_anchors = false
6376
64- [node name ="Sprite2D" type ="Sprite2D" parent ="ToolsPanel/ButtonToolPencil" ]
65- position = Vector2 (27 , 26 )
66- scale = Vector2 (2.5 , 2.5 )
67- texture = ExtResource ( "3" )
68- region_enabled = true
69- region_rect = Rect2 (0 , 0 , 16 , 16 )
77+ [node name ="TextureRect" type ="TextureRect" parent ="ToolsPanel/ButtonToolPencil" ]
78+ anchor_right = 1.0
79+ anchor_bottom = 1.0
80+ offset_left = 5.0
81+ offset_top = 5.0
82+ offset_right = -5.0
83+ offset_bottom = -5.0
84+ grow_horizontal = 2
85+ grow_vertical = 2
86+ texture = SubResource ( "AtlasTexture_v0gbg" )
87+ metadata/_edit_layout_mode = 1
88+ metadata/_edit_use_custom_anchors = false
7089
7190[node name ="ButtonToolEraser" type ="Button" parent ="ToolsPanel" ]
7291offset_left = 110.0
@@ -76,12 +95,18 @@ offset_bottom = 85.0
7695metadata/_edit_layout_mode = 0
7796metadata/_edit_use_custom_anchors = false
7897
79- [node name ="Sprite2D" type ="Sprite2D" parent ="ToolsPanel/ButtonToolEraser" ]
80- position = Vector2 (29 , 26 )
81- scale = Vector2 (2.5 , 2.5 )
82- texture = ExtResource ( "3" )
83- region_enabled = true
84- region_rect = Rect2 (16 , 0 , 16 , 16 )
98+ [node name ="TextureRect2" type ="TextureRect" parent ="ToolsPanel/ButtonToolEraser" ]
99+ anchor_right = 1.0
100+ anchor_bottom = 1.0
101+ offset_left = 5.0
102+ offset_top = 5.0
103+ offset_right = -5.0
104+ offset_bottom = -5.0
105+ grow_horizontal = 2
106+ grow_vertical = 2
107+ texture = SubResource ( "AtlasTexture_j7akv" )
108+ metadata/_edit_layout_mode = 1
109+ metadata/_edit_use_custom_anchors = false
85110
86111[node name ="ButtonToolRectangle" type ="Button" parent ="ToolsPanel" ]
87112offset_left = 180.0
@@ -91,12 +116,18 @@ offset_bottom = 85.0
91116metadata/_edit_layout_mode = 0
92117metadata/_edit_use_custom_anchors = false
93118
94- [node name ="Sprite2D" type ="Sprite2D" parent ="ToolsPanel/ButtonToolRectangle" ]
95- position = Vector2 (28 , 26 )
96- scale = Vector2 (2.5 , 2.5 )
97- texture = ExtResource ( "3" )
98- region_enabled = true
99- region_rect = Rect2 (0 , 16 , 16 , 16 )
119+ [node name ="TextureRect" type ="TextureRect" parent ="ToolsPanel/ButtonToolRectangle" ]
120+ anchor_right = 1.0
121+ anchor_bottom = 1.0
122+ offset_left = 5.0
123+ offset_top = 5.0
124+ offset_right = -5.0
125+ offset_bottom = -5.0
126+ grow_horizontal = 2
127+ grow_vertical = 2
128+ texture = SubResource ( "AtlasTexture_63q87" )
129+ metadata/_edit_layout_mode = 1
130+ metadata/_edit_use_custom_anchors = false
100131
101132[node name ="ButtonToolCircle" type ="Button" parent ="ToolsPanel" ]
102133offset_left = 250.0
@@ -106,12 +137,18 @@ offset_bottom = 85.0
106137metadata/_edit_layout_mode = 0
107138metadata/_edit_use_custom_anchors = false
108139
109- [node name ="Sprite2D" type ="Sprite2D" parent ="ToolsPanel/ButtonToolCircle" ]
110- position = Vector2 (28 , 26 )
111- scale = Vector2 (2.5 , 2.5 )
112- texture = ExtResource ( "3" )
113- region_enabled = true
114- region_rect = Rect2 (16 , 16 , 16 , 16 )
140+ [node name ="TextureRect" type ="TextureRect" parent ="ToolsPanel/ButtonToolCircle" ]
141+ anchor_right = 1.0
142+ anchor_bottom = 1.0
143+ offset_left = 5.0
144+ offset_top = 5.0
145+ offset_right = -5.0
146+ offset_bottom = -5.0
147+ grow_horizontal = 2
148+ grow_vertical = 2
149+ texture = SubResource ( "AtlasTexture_t52fe" )
150+ metadata/_edit_layout_mode = 1
151+ metadata/_edit_use_custom_anchors = false
115152
116153[node name ="LabelBrushColor" type ="Label" parent ="ToolsPanel" ]
117154offset_left = 20.0
@@ -172,12 +209,18 @@ offset_bottom = 114.0
172209metadata/_edit_layout_mode = 0
173210metadata/_edit_use_custom_anchors = false
174211
175- [node name ="Sprite2D" type ="Sprite2D" parent ="ToolsPanel/BrushSettings/ButtonShapeBox" ]
176- position = Vector2 (27 , 27 )
177- scale = Vector2 (2.5 , 2.5 )
178- texture = ExtResource ( "3" )
179- region_enabled = true
180- region_rect = Rect2 (0 , 16 , 16 , 16 )
212+ [node name ="TextureRect" type ="TextureRect" parent ="ToolsPanel/BrushSettings/ButtonShapeBox" ]
213+ anchor_right = 1.0
214+ anchor_bottom = 1.0
215+ offset_left = 5.0
216+ offset_top = 5.0
217+ offset_right = -5.0
218+ offset_bottom = -5.0
219+ grow_horizontal = 2
220+ grow_vertical = 2
221+ texture = SubResource ( "AtlasTexture_63q87" )
222+ metadata/_edit_layout_mode = 1
223+ metadata/_edit_use_custom_anchors = false
181224
182225[node name ="ButtonShapeCircle" type ="Button" parent ="ToolsPanel/BrushSettings" ]
183226offset_left = 190.0
@@ -187,12 +230,18 @@ offset_bottom = 114.0
187230metadata/_edit_layout_mode = 0
188231metadata/_edit_use_custom_anchors = false
189232
190- [node name ="Sprite2D" type ="Sprite2D" parent ="ToolsPanel/BrushSettings/ButtonShapeCircle" ]
191- position = Vector2 (28 , 27 )
192- scale = Vector2 (2.5 , 2.5 )
193- texture = ExtResource ( "3" )
194- region_enabled = true
195- region_rect = Rect2 (16 , 16 , 16 , 16 )
233+ [node name ="TextureRect" type ="TextureRect" parent ="ToolsPanel/BrushSettings/ButtonShapeCircle" ]
234+ anchor_right = 1.0
235+ anchor_bottom = 1.0
236+ offset_left = 5.0
237+ offset_top = 5.0
238+ offset_right = -5.0
239+ offset_bottom = -5.0
240+ grow_horizontal = 2
241+ grow_vertical = 2
242+ texture = SubResource ( "AtlasTexture_t52fe" )
243+ metadata/_edit_layout_mode = 1
244+ metadata/_edit_use_custom_anchors = false
196245
197246[node name ="LabelBackgroundColor" type ="Label" parent ="ToolsPanel" ]
198247offset_left = 20.0
@@ -251,6 +300,8 @@ metadata/_edit_layout_mode = 0
251300metadata/_edit_use_custom_anchors = false
252301
253302[node name ="SaveFileDialog" type ="FileDialog" parent ="." ]
303+ size = Vector2i (800 , 300 )
304+ min_size = Vector2i (800 , 300 )
254305access = 2
255306filters = PackedStringArray ("*.png" )
256307show_hidden_files = true
0 commit comments