2020-08-25 16:49:18 +00:00
|
|
|
[gd_scene load_steps=3 format=2]
|
2020-07-18 14:23:36 +00:00
|
|
|
|
2020-07-29 17:34:27 +00:00
|
|
|
[ext_resource path="res://src/UI/Dialogs/ImageEffects/GradientDialog.gd" type="Script" id=1]
|
2020-08-25 16:49:18 +00:00
|
|
|
[ext_resource path="res://src/UI/TransparentChecker.tscn" type="PackedScene" id=2]
|
2020-07-18 14:23:36 +00:00
|
|
|
|
|
|
|
[node name="GradientDialog" type="ConfirmationDialog"]
|
2022-05-02 13:12:00 +00:00
|
|
|
margin_right = 334.0
|
|
|
|
margin_bottom = 444.0
|
|
|
|
rect_min_size = Vector2( 334, 444 )
|
2020-08-04 16:10:50 +00:00
|
|
|
window_title = "Gradient"
|
2020-07-18 14:23:36 +00:00
|
|
|
resizable = true
|
|
|
|
script = ExtResource( 1 )
|
|
|
|
__meta__ = {
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
}
|
|
|
|
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="."]
|
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
margin_left = 8.0
|
|
|
|
margin_top = 8.0
|
|
|
|
margin_right = -8.0
|
|
|
|
margin_bottom = -36.0
|
|
|
|
__meta__ = {
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
}
|
|
|
|
|
2021-08-31 12:38:11 +00:00
|
|
|
[node name="AspectRatioContainer" type="AspectRatioContainer" parent="VBoxContainer"]
|
2022-05-02 13:12:00 +00:00
|
|
|
margin_right = 318.0
|
|
|
|
margin_bottom = 240.0
|
2021-08-31 12:38:11 +00:00
|
|
|
size_flags_vertical = 3
|
|
|
|
|
|
|
|
[node name="Preview" type="TextureRect" parent="VBoxContainer/AspectRatioContainer"]
|
2022-05-02 13:12:00 +00:00
|
|
|
margin_left = 39.0
|
|
|
|
margin_right = 279.0
|
|
|
|
margin_bottom = 240.0
|
2020-08-26 15:33:15 +00:00
|
|
|
rect_min_size = Vector2( 200, 200 )
|
2021-08-31 12:38:11 +00:00
|
|
|
size_flags_horizontal = 5
|
2020-08-26 15:33:15 +00:00
|
|
|
size_flags_vertical = 3
|
2020-07-18 14:23:36 +00:00
|
|
|
expand = true
|
2020-08-25 16:49:18 +00:00
|
|
|
stretch_mode = 5
|
|
|
|
|
2021-08-31 12:38:11 +00:00
|
|
|
[node name="TransparentChecker" parent="VBoxContainer/AspectRatioContainer/Preview" instance=ExtResource( 2 )]
|
2020-08-25 16:49:18 +00:00
|
|
|
show_behind_parent = true
|
2021-08-31 12:38:11 +00:00
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
margin_right = 0.0
|
|
|
|
margin_bottom = 0.0
|
2020-07-18 14:23:36 +00:00
|
|
|
|
2020-08-08 16:02:49 +00:00
|
|
|
[node name="OptionsContainer" type="GridContainer" parent="VBoxContainer"]
|
2022-05-02 13:12:00 +00:00
|
|
|
margin_top = 244.0
|
|
|
|
margin_right = 318.0
|
|
|
|
margin_bottom = 400.0
|
2020-08-08 16:02:49 +00:00
|
|
|
columns = 2
|
2020-07-18 14:23:36 +00:00
|
|
|
|
2022-05-02 13:12:00 +00:00
|
|
|
[node name="TypeLabel" type="Label" parent="VBoxContainer/OptionsContainer" groups=["gradient_common"]]
|
2020-07-18 14:23:36 +00:00
|
|
|
margin_top = 3.0
|
2020-08-08 16:02:49 +00:00
|
|
|
margin_right = 160.0
|
2020-07-18 14:23:36 +00:00
|
|
|
margin_bottom = 17.0
|
2022-05-02 13:12:00 +00:00
|
|
|
text = "Type:"
|
2020-07-18 14:23:36 +00:00
|
|
|
|
2022-05-02 13:12:00 +00:00
|
|
|
[node name="TypeOptionButton" type="OptionButton" parent="VBoxContainer/OptionsContainer" groups=["gradient_common"]]
|
2020-08-08 16:02:49 +00:00
|
|
|
margin_left = 164.0
|
2022-05-02 13:12:00 +00:00
|
|
|
margin_right = 278.0
|
2020-08-08 16:02:49 +00:00
|
|
|
margin_bottom = 20.0
|
2022-05-02 13:12:00 +00:00
|
|
|
mouse_default_cursor_shape = 2
|
|
|
|
text = "Linear"
|
|
|
|
items = [ "Linear", null, false, 0, null, "Radial", null, false, 1, null, "Step", null, false, 2, null, "Radial Step", null, false, 3, null, "Dithering", null, false, 4, null, "Radial Dithering", null, false, 5, null ]
|
|
|
|
selected = 0
|
|
|
|
|
|
|
|
[node name="ColorsLabel" type="Label" parent="VBoxContainer/OptionsContainer" groups=["gradient_common"]]
|
|
|
|
margin_top = 27.0
|
|
|
|
margin_right = 160.0
|
|
|
|
margin_bottom = 41.0
|
|
|
|
text = "Colors:"
|
|
|
|
|
|
|
|
[node name="ColorsContainer" type="HBoxContainer" parent="VBoxContainer/OptionsContainer" groups=["gradient_common"]]
|
|
|
|
margin_left = 164.0
|
|
|
|
margin_top = 24.0
|
|
|
|
margin_right = 278.0
|
|
|
|
margin_bottom = 44.0
|
2020-08-08 16:02:49 +00:00
|
|
|
|
|
|
|
[node name="ColorPickerButton" type="ColorPickerButton" parent="VBoxContainer/OptionsContainer/ColorsContainer"]
|
2022-05-02 13:12:00 +00:00
|
|
|
margin_right = 55.0
|
2020-07-18 14:23:36 +00:00
|
|
|
margin_bottom = 20.0
|
|
|
|
rect_min_size = Vector2( 20, 0 )
|
|
|
|
mouse_default_cursor_shape = 2
|
2022-05-02 13:12:00 +00:00
|
|
|
size_flags_horizontal = 3
|
2020-07-18 14:23:36 +00:00
|
|
|
|
2020-08-08 16:02:49 +00:00
|
|
|
[node name="ColorPickerButton2" type="ColorPickerButton" parent="VBoxContainer/OptionsContainer/ColorsContainer"]
|
2022-05-02 13:12:00 +00:00
|
|
|
margin_left = 59.0
|
|
|
|
margin_right = 114.0
|
2020-07-18 14:23:36 +00:00
|
|
|
margin_bottom = 20.0
|
|
|
|
rect_min_size = Vector2( 20, 0 )
|
|
|
|
mouse_default_cursor_shape = 2
|
2022-05-02 13:12:00 +00:00
|
|
|
size_flags_horizontal = 3
|
2020-07-18 14:23:36 +00:00
|
|
|
color = Color( 1, 1, 1, 1 )
|
|
|
|
|
2022-05-02 13:12:00 +00:00
|
|
|
[node name="PositionLabel" type="Label" parent="VBoxContainer/OptionsContainer" groups=["gradient_dithering", "gradient_linear", "gradient_step"]]
|
|
|
|
margin_top = 53.0
|
|
|
|
margin_right = 160.0
|
|
|
|
margin_bottom = 67.0
|
|
|
|
text = "Position:"
|
|
|
|
|
|
|
|
[node name="PositionSpinBox" type="SpinBox" parent="VBoxContainer/OptionsContainer" groups=["gradient_dithering", "gradient_linear", "gradient_step"]]
|
|
|
|
margin_left = 164.0
|
|
|
|
margin_top = 48.0
|
|
|
|
margin_right = 278.0
|
|
|
|
margin_bottom = 72.0
|
|
|
|
mouse_default_cursor_shape = 2
|
|
|
|
value = 50.0
|
|
|
|
suffix = "%"
|
|
|
|
|
|
|
|
[node name="AngleLabel" type="Label" parent="VBoxContainer/OptionsContainer" groups=["gradient_dithering", "gradient_linear", "gradient_step"]]
|
|
|
|
margin_top = 81.0
|
|
|
|
margin_right = 160.0
|
|
|
|
margin_bottom = 95.0
|
|
|
|
text = "Angle:"
|
|
|
|
|
|
|
|
[node name="AngleSpinBox" type="SpinBox" parent="VBoxContainer/OptionsContainer" groups=["gradient_dithering", "gradient_linear", "gradient_step"]]
|
|
|
|
margin_left = 164.0
|
|
|
|
margin_top = 76.0
|
|
|
|
margin_right = 278.0
|
|
|
|
margin_bottom = 100.0
|
|
|
|
mouse_default_cursor_shape = 2
|
|
|
|
max_value = 360.0
|
|
|
|
suffix = "°"
|
|
|
|
|
|
|
|
[node name="SizeLabel" type="Label" parent="VBoxContainer/OptionsContainer" groups=["gradient_common"]]
|
|
|
|
margin_top = 109.0
|
|
|
|
margin_right = 160.0
|
|
|
|
margin_bottom = 123.0
|
|
|
|
text = "Transition size:"
|
|
|
|
|
|
|
|
[node name="SizeSpinBox" type="SpinBox" parent="VBoxContainer/OptionsContainer" groups=["gradient_common"]]
|
|
|
|
margin_left = 164.0
|
|
|
|
margin_top = 104.0
|
|
|
|
margin_right = 278.0
|
|
|
|
margin_bottom = 128.0
|
|
|
|
mouse_default_cursor_shape = 2
|
|
|
|
min_value = 1.0
|
|
|
|
max_value = 200.0
|
|
|
|
value = 100.0
|
|
|
|
suffix = "%"
|
|
|
|
|
|
|
|
[node name="StepsLabel" type="Label" parent="VBoxContainer/OptionsContainer" groups=["gradient_radial_step", "gradient_step"]]
|
|
|
|
visible = false
|
|
|
|
margin_top = 137.0
|
2020-08-08 16:02:49 +00:00
|
|
|
margin_right = 160.0
|
2022-05-02 13:12:00 +00:00
|
|
|
margin_bottom = 151.0
|
2020-07-18 14:23:36 +00:00
|
|
|
text = "Steps:"
|
|
|
|
|
2022-05-02 13:12:00 +00:00
|
|
|
[node name="StepSpinBox" type="SpinBox" parent="VBoxContainer/OptionsContainer" groups=["gradient_radial_step", "gradient_step"]]
|
|
|
|
visible = false
|
2020-08-08 16:02:49 +00:00
|
|
|
margin_left = 164.0
|
2022-05-02 13:12:00 +00:00
|
|
|
margin_top = 132.0
|
|
|
|
margin_right = 316.0
|
|
|
|
margin_bottom = 156.0
|
2020-07-18 14:23:36 +00:00
|
|
|
mouse_default_cursor_shape = 2
|
|
|
|
min_value = 2.0
|
|
|
|
value = 2.0
|
2020-07-18 16:01:24 +00:00
|
|
|
|
2022-05-02 13:12:00 +00:00
|
|
|
[node name="CenterLabel" type="Label" parent="VBoxContainer/OptionsContainer" groups=["gradient_radial", "gradient_radial_dithering", "gradient_radial_step"]]
|
|
|
|
visible = false
|
|
|
|
margin_top = 165.0
|
2020-08-08 16:02:49 +00:00
|
|
|
margin_right = 160.0
|
2022-05-02 13:12:00 +00:00
|
|
|
margin_bottom = 179.0
|
|
|
|
text = "Center:"
|
|
|
|
|
|
|
|
[node name="CenterContainer" type="HBoxContainer" parent="VBoxContainer/OptionsContainer" groups=["gradient_radial", "gradient_radial_dithering", "gradient_radial_step"]]
|
|
|
|
visible = false
|
|
|
|
margin_top = 132.0
|
|
|
|
margin_right = 183.0
|
|
|
|
margin_bottom = 156.0
|
2020-07-18 16:01:24 +00:00
|
|
|
|
2022-05-02 13:12:00 +00:00
|
|
|
[node name="XLabel" type="Label" parent="VBoxContainer/OptionsContainer/CenterContainer"]
|
|
|
|
margin_top = 5.0
|
|
|
|
margin_right = 12.0
|
|
|
|
margin_bottom = 19.0
|
|
|
|
text = "X:"
|
|
|
|
|
|
|
|
[node name="CenterXSpinBox" type="SpinBox" parent="VBoxContainer/OptionsContainer/CenterContainer"]
|
|
|
|
margin_left = 16.0
|
|
|
|
margin_right = 90.0
|
|
|
|
margin_bottom = 24.0
|
|
|
|
mouse_default_cursor_shape = 2
|
|
|
|
value = 50.0
|
|
|
|
suffix = "%"
|
|
|
|
|
|
|
|
[node name="YLabel" type="Label" parent="VBoxContainer/OptionsContainer/CenterContainer"]
|
|
|
|
margin_left = 94.0
|
|
|
|
margin_top = 5.0
|
|
|
|
margin_right = 105.0
|
|
|
|
margin_bottom = 19.0
|
|
|
|
text = "Y:"
|
|
|
|
|
|
|
|
[node name="CenterYSpinBox" type="SpinBox" parent="VBoxContainer/OptionsContainer/CenterContainer"]
|
|
|
|
margin_left = 109.0
|
|
|
|
margin_right = 183.0
|
|
|
|
margin_bottom = 24.0
|
|
|
|
mouse_default_cursor_shape = 2
|
|
|
|
value = 50.0
|
|
|
|
suffix = "%"
|
|
|
|
|
|
|
|
[node name="RadiusLabel" type="Label" parent="VBoxContainer/OptionsContainer" groups=["gradient_radial", "gradient_radial_dithering", "gradient_radial_step"]]
|
|
|
|
visible = false
|
|
|
|
margin_top = 193.0
|
|
|
|
margin_right = 160.0
|
|
|
|
margin_bottom = 207.0
|
|
|
|
text = "Radius:"
|
|
|
|
|
|
|
|
[node name="RadiusContainer" type="HBoxContainer" parent="VBoxContainer/OptionsContainer" groups=["gradient_radial", "gradient_radial_dithering", "gradient_radial_step"]]
|
|
|
|
visible = false
|
2020-08-08 16:02:49 +00:00
|
|
|
margin_left = 164.0
|
2022-05-02 13:12:00 +00:00
|
|
|
margin_top = 188.0
|
|
|
|
margin_right = 316.0
|
|
|
|
margin_bottom = 212.0
|
|
|
|
|
|
|
|
[node name="XLabel" type="Label" parent="VBoxContainer/OptionsContainer/RadiusContainer"]
|
|
|
|
margin_left = -164.0
|
|
|
|
margin_top = -51.0
|
|
|
|
margin_right = -152.0
|
|
|
|
margin_bottom = -37.0
|
|
|
|
text = "X:"
|
|
|
|
|
|
|
|
[node name="RadiusXSpinBox" type="SpinBox" parent="VBoxContainer/OptionsContainer/RadiusContainer"]
|
|
|
|
margin_right = 74.0
|
|
|
|
margin_bottom = 24.0
|
2020-07-18 16:01:24 +00:00
|
|
|
mouse_default_cursor_shape = 2
|
2022-05-02 13:12:00 +00:00
|
|
|
min_value = 0.01
|
|
|
|
step = 0.01
|
|
|
|
value = 1.0
|
2020-08-08 16:02:49 +00:00
|
|
|
|
2022-05-02 13:12:00 +00:00
|
|
|
[node name="YLabel" type="Label" parent="VBoxContainer/OptionsContainer/RadiusContainer"]
|
|
|
|
margin_left = -70.0
|
|
|
|
margin_top = -51.0
|
|
|
|
margin_right = -59.0
|
|
|
|
margin_bottom = -37.0
|
|
|
|
text = "Y:"
|
|
|
|
|
|
|
|
[node name="RadiusYSpinBox" type="SpinBox" parent="VBoxContainer/OptionsContainer/RadiusContainer"]
|
|
|
|
margin_left = 78.0
|
|
|
|
margin_right = 152.0
|
|
|
|
margin_bottom = 24.0
|
|
|
|
mouse_default_cursor_shape = 2
|
|
|
|
min_value = 0.01
|
|
|
|
step = 0.01
|
|
|
|
value = 1.0
|
|
|
|
|
|
|
|
[node name="DitheringLabel" type="Label" parent="VBoxContainer/OptionsContainer" groups=["gradient_dithering", "gradient_radial_dithering"]]
|
|
|
|
visible = false
|
|
|
|
margin_top = 219.0
|
2020-08-08 16:02:49 +00:00
|
|
|
margin_right = 160.0
|
2022-05-02 13:12:00 +00:00
|
|
|
margin_bottom = 233.0
|
|
|
|
text = "Dithering pattern:"
|
|
|
|
|
|
|
|
[node name="DitheringOptionButton" type="OptionButton" parent="VBoxContainer/OptionsContainer" groups=["gradient_dithering", "gradient_radial_dithering"]]
|
|
|
|
visible = false
|
|
|
|
margin_left = 164.0
|
|
|
|
margin_top = 216.0
|
|
|
|
margin_right = 316.0
|
|
|
|
margin_bottom = 236.0
|
|
|
|
mouse_default_cursor_shape = 2
|
|
|
|
text = "Bayer 2x2"
|
|
|
|
|
|
|
|
[node name="SelectionCheckBox" type="CheckBox" parent="VBoxContainer/OptionsContainer" groups=["gradient_common"]]
|
|
|
|
margin_top = 132.0
|
|
|
|
margin_right = 160.0
|
|
|
|
margin_bottom = 156.0
|
2020-08-08 16:02:49 +00:00
|
|
|
mouse_default_cursor_shape = 2
|
|
|
|
pressed = true
|
|
|
|
text = "Only affect selection"
|
|
|
|
|
2022-05-02 13:12:00 +00:00
|
|
|
[node name="AffectOptionButton" type="OptionButton" parent="VBoxContainer/OptionsContainer" groups=["gradient_common"]]
|
2020-08-08 16:02:49 +00:00
|
|
|
margin_left = 164.0
|
2022-05-02 13:12:00 +00:00
|
|
|
margin_top = 132.0
|
|
|
|
margin_right = 278.0
|
|
|
|
margin_bottom = 156.0
|
2020-08-08 16:02:49 +00:00
|
|
|
mouse_default_cursor_shape = 2
|
2021-06-25 14:58:41 +00:00
|
|
|
text = "Selected cels"
|
|
|
|
items = [ "Selected cels", null, false, 0, null, "Current frame", null, false, 1, null, "All frames", null, false, 2, null, "All projects", null, false, 3, null ]
|
2020-08-08 16:02:49 +00:00
|
|
|
selected = 0
|
2021-05-30 16:20:56 +00:00
|
|
|
|
2022-05-02 13:12:00 +00:00
|
|
|
[connection signal="item_selected" from="VBoxContainer/OptionsContainer/TypeOptionButton" to="." method="_on_TypeOptionButton_item_selected"]
|
|
|
|
[connection signal="color_changed" from="VBoxContainer/OptionsContainer/ColorsContainer/ColorPickerButton" to="." method="_color_changed"]
|
|
|
|
[connection signal="color_changed" from="VBoxContainer/OptionsContainer/ColorsContainer/ColorPickerButton2" to="." method="_color_changed"]
|
|
|
|
[connection signal="value_changed" from="VBoxContainer/OptionsContainer/PositionSpinBox" to="." method="_value_changed"]
|
|
|
|
[connection signal="value_changed" from="VBoxContainer/OptionsContainer/AngleSpinBox" to="." method="_value_changed"]
|
|
|
|
[connection signal="value_changed" from="VBoxContainer/OptionsContainer/SizeSpinBox" to="." method="_value_changed"]
|
|
|
|
[connection signal="value_changed" from="VBoxContainer/OptionsContainer/StepSpinBox" to="." method="_value_changed"]
|
|
|
|
[connection signal="value_changed" from="VBoxContainer/OptionsContainer/CenterContainer/CenterXSpinBox" to="." method="_value_changed"]
|
|
|
|
[connection signal="value_changed" from="VBoxContainer/OptionsContainer/CenterContainer/CenterYSpinBox" to="." method="_value_changed"]
|
|
|
|
[connection signal="value_changed" from="VBoxContainer/OptionsContainer/RadiusContainer/RadiusXSpinBox" to="." method="_value_changed"]
|
|
|
|
[connection signal="value_changed" from="VBoxContainer/OptionsContainer/RadiusContainer/RadiusYSpinBox" to="." method="_value_changed"]
|
|
|
|
[connection signal="item_selected" from="VBoxContainer/OptionsContainer/DitheringOptionButton" to="." method="_on_DitheringOptionButton_item_selected"]
|