1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-19 17:49:47 +00:00
Pixelorama/src/Tools/Pencil.tscn
Variable 62dc608eea
"Fill inside" option in pencil tool (#489)
I modified some code from  "EIRTeam/Pixelorama" and merged it with pencil tool.
2021-05-23 14:58:19 -07:00

80 lines
1.9 KiB
Plaintext

[gd_scene load_steps=3 format=2]
[ext_resource path="res://src/Tools/Draw.tscn" type="PackedScene" id=1]
[ext_resource path="res://src/Tools/Pencil.gd" type="Script" id=3]
[node name="ToolOptions" instance=ExtResource( 1 )]
script = ExtResource( 3 )
[node name="Label" parent="." index="0"]
margin_right = 128.0
[node name="Brush" parent="." index="1"]
margin_right = 128.0
[node name="Type" parent="Brush" index="0"]
margin_left = 9.0
margin_right = 41.0
[node name="Size" parent="Brush" index="1"]
margin_left = 45.0
margin_right = 119.0
[node name="BrushSize" parent="." index="2"]
margin_left = 18.0
margin_right = 110.0
[node name="Overwrite" type="CheckBox" parent="." index="3"]
margin_top = 74.0
margin_right = 128.0
margin_bottom = 98.0
grow_horizontal = 2
grow_vertical = 2
hint_tooltip = "Overwrites color instead of blending it. This option is only relevant with colors that are not fully opaque"
mouse_default_cursor_shape = 2
size_flags_horizontal = 4
text = "Overwrite Color"
align = 1
__meta__ = {
"_editor_description_": ""
}
[node name="PixelPerfect" parent="." index="4"]
margin_left = 10.0
margin_top = 102.0
margin_right = 118.0
margin_bottom = 126.0
[node name="FillInside" type="CheckBox" parent="." index="5"]
margin_left = 19.0
margin_top = 130.0
margin_right = 109.0
margin_bottom = 154.0
size_flags_horizontal = 4
text = "Fill inside"
align = 1
__meta__ = {
"_editor_description_": ""
}
[node name="EmptySpacer" parent="." index="7"]
margin_top = 158.0
margin_right = 128.0
margin_bottom = 170.0
[node name="Mirror" parent="." index="8"]
margin_top = 174.0
margin_right = 128.0
margin_bottom = 191.0
[node name="Horizontal" parent="Mirror" index="0"]
margin_left = 26.0
margin_right = 41.0
[node name="Vertical" parent="Mirror" index="1"]
margin_left = 85.0
margin_right = 102.0
[connection signal="toggled" from="Overwrite" to="." method="_on_Overwrite_toggled"]
[connection signal="toggled" from="FillInside" to="." method="_on_FillInside_toggled"]