2020-09-27 18:48:06 +00:00
|
|
|
[gd_scene load_steps=3 format=2]
|
2019-09-25 19:59:48 +00:00
|
|
|
|
2023-01-21 15:01:07 +00:00
|
|
|
[ext_resource path="res://src/UI/Nodes/TransparentChecker.tscn" type="PackedScene" id=1]
|
2023-01-05 15:54:22 +00:00
|
|
|
[ext_resource path="res://src/UI/Buttons/BrushButton.gd" type="Script" id=2]
|
2020-05-01 22:19:01 +00:00
|
|
|
|
2020-09-27 17:35:46 +00:00
|
|
|
[node name="BrushButton" type="Button"]
|
2023-01-21 15:01:07 +00:00
|
|
|
margin_right = 36.0
|
|
|
|
margin_bottom = 36.0
|
|
|
|
rect_min_size = Vector2( 36, 36 )
|
2020-01-27 22:19:55 +00:00
|
|
|
button_mask = 7
|
2019-11-29 22:41:34 +00:00
|
|
|
script = ExtResource( 2 )
|
2020-01-27 22:19:55 +00:00
|
|
|
__meta__ = {
|
2023-01-21 15:01:07 +00:00
|
|
|
"_editor_description_": ""
|
2020-01-27 22:19:55 +00:00
|
|
|
}
|
2019-09-25 19:59:48 +00:00
|
|
|
|
2023-01-21 15:01:07 +00:00
|
|
|
[node name="TransparentChecker" parent="." instance=ExtResource( 1 )]
|
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
margin_left = 2.0
|
|
|
|
margin_top = 2.0
|
|
|
|
margin_right = -2.0
|
|
|
|
margin_bottom = -2.0
|
|
|
|
|
2019-09-25 19:59:48 +00:00
|
|
|
[node name="BrushTexture" type="TextureRect" parent="."]
|
2023-01-21 15:01:07 +00:00
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
margin_left = 2.0
|
|
|
|
margin_top = 2.0
|
|
|
|
margin_right = -2.0
|
|
|
|
margin_bottom = -2.0
|
2019-09-25 19:59:48 +00:00
|
|
|
rect_min_size = Vector2( 32, 32 )
|
|
|
|
expand = true
|
|
|
|
stretch_mode = 6
|
2019-11-11 13:55:28 +00:00
|
|
|
|
|
|
|
[node name="DeleteButton" type="Button" parent="."]
|
|
|
|
visible = false
|
2023-01-21 15:01:07 +00:00
|
|
|
modulate = Color( 1, 0.00392157, 0.00392157, 0.878431 )
|
|
|
|
anchor_left = 1.0
|
|
|
|
anchor_right = 1.0
|
|
|
|
margin_left = -12.0
|
|
|
|
margin_top = 2.0
|
|
|
|
margin_right = 8.0
|
|
|
|
margin_bottom = 22.0
|
|
|
|
rect_scale = Vector2( 0.5, 0.5 )
|
2019-11-11 13:55:28 +00:00
|
|
|
text = "X"
|
2023-01-05 15:54:22 +00:00
|
|
|
|
2019-11-11 13:55:28 +00:00
|
|
|
[connection signal="mouse_entered" from="." to="." method="_on_BrushButton_mouse_entered"]
|
|
|
|
[connection signal="mouse_exited" from="." to="." method="_on_BrushButton_mouse_exited"]
|
2019-09-25 19:59:48 +00:00
|
|
|
[connection signal="pressed" from="." to="." method="_on_BrushButton_pressed"]
|
2019-11-11 13:55:28 +00:00
|
|
|
[connection signal="mouse_entered" from="DeleteButton" to="." method="_on_BrushButton_mouse_entered"]
|
|
|
|
[connection signal="mouse_exited" from="DeleteButton" to="." method="_on_BrushButton_mouse_exited"]
|
|
|
|
[connection signal="pressed" from="DeleteButton" to="." method="_on_DeleteButton_pressed"]
|