2020-08-25 16:49:18 +00:00
|
|
|
[gd_scene load_steps=3 format=2]
|
2020-04-13 14:10:17 +00:00
|
|
|
|
2020-07-29 17:34:27 +00:00
|
|
|
[ext_resource path="res://src/UI/Dialogs/ImageEffects/HSVDialog.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-05-01 22:19:01 +00:00
|
|
|
|
2020-08-25 15:49:12 +00:00
|
|
|
[node name="HSVDialog" type="ConfirmationDialog"]
|
2020-04-13 14:10:17 +00:00
|
|
|
margin_left = 1.0
|
|
|
|
margin_top = -1.0
|
2021-09-23 18:25:35 +00:00
|
|
|
margin_right = 349.0
|
|
|
|
margin_bottom = 415.0
|
|
|
|
rect_min_size = Vector2( 348, 416 )
|
2020-04-13 14:10:17 +00:00
|
|
|
window_title = "Adjust HSV"
|
2020-04-30 21:02:52 +00:00
|
|
|
resizable = true
|
2020-04-13 14:10:17 +00:00
|
|
|
script = ExtResource( 1 )
|
2021-09-23 18:25:35 +00:00
|
|
|
__meta__ = {
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
}
|
2020-04-13 14:10:17 +00:00
|
|
|
|
2020-08-26 13:12:35 +00:00
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="."]
|
2020-08-25 15:49:12 +00:00
|
|
|
margin_left = 8.0
|
|
|
|
margin_top = 8.0
|
2021-09-23 18:25:35 +00:00
|
|
|
margin_right = 340.0
|
|
|
|
margin_bottom = 380.0
|
2020-04-14 10:51:35 +00:00
|
|
|
__meta__ = {
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
}
|
|
|
|
|
2021-08-31 12:38:11 +00:00
|
|
|
[node name="AspectRatioContainer" type="AspectRatioContainer" parent="VBoxContainer"]
|
2021-09-23 18:25:35 +00:00
|
|
|
margin_right = 332.0
|
|
|
|
margin_bottom = 228.0
|
2020-08-26 15:33:15 +00:00
|
|
|
size_flags_vertical = 3
|
2021-08-31 12:38:11 +00:00
|
|
|
|
|
|
|
[node name="Preview" type="TextureRect" parent="VBoxContainer/AspectRatioContainer"]
|
2021-09-23 18:25:35 +00:00
|
|
|
margin_left = 52.0
|
|
|
|
margin_right = 280.0
|
|
|
|
margin_bottom = 228.0
|
2021-08-31 12:38:11 +00:00
|
|
|
rect_min_size = Vector2( 200, 200 )
|
2020-04-14 10:51:35 +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-04-14 10:51:35 +00:00
|
|
|
|
2021-09-23 18:25:35 +00:00
|
|
|
[node name="LiveSettings" type="HBoxContainer" parent="VBoxContainer"]
|
|
|
|
margin_top = 232.0
|
|
|
|
margin_right = 332.0
|
|
|
|
margin_bottom = 256.0
|
|
|
|
alignment = 1
|
|
|
|
|
|
|
|
[node name="LiveCheckbox" type="CheckBox" parent="VBoxContainer/LiveSettings"]
|
|
|
|
margin_left = 112.0
|
|
|
|
margin_right = 220.0
|
|
|
|
margin_bottom = 24.0
|
|
|
|
pressed = true
|
|
|
|
text = "Live Preview"
|
|
|
|
|
|
|
|
[node name="WaitSettings" type="HBoxContainer" parent="VBoxContainer"]
|
|
|
|
visible = false
|
|
|
|
margin_top = 232.0
|
|
|
|
margin_right = 332.0
|
|
|
|
margin_bottom = 256.0
|
|
|
|
alignment = 1
|
|
|
|
__meta__ = {
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
}
|
|
|
|
|
|
|
|
[node name="Label" type="Label" parent="VBoxContainer/WaitSettings"]
|
|
|
|
margin_left = 3.0
|
|
|
|
margin_top = 5.0
|
|
|
|
margin_right = 251.0
|
|
|
|
margin_bottom = 19.0
|
|
|
|
text = "Update preview delay (in milliseconds)"
|
|
|
|
|
|
|
|
[node name="WaitTime" type="SpinBox" parent="VBoxContainer/WaitSettings"]
|
|
|
|
margin_left = 255.0
|
|
|
|
margin_right = 329.0
|
|
|
|
margin_bottom = 24.0
|
|
|
|
min_value = 1.0
|
|
|
|
max_value = 1000.0
|
|
|
|
value = 200.0
|
|
|
|
editable = false
|
|
|
|
suffix = "msec"
|
|
|
|
|
2020-08-26 13:12:35 +00:00
|
|
|
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer"]
|
2021-09-23 18:25:35 +00:00
|
|
|
margin_top = 260.0
|
|
|
|
margin_right = 332.0
|
|
|
|
margin_bottom = 344.0
|
2020-04-13 14:10:17 +00:00
|
|
|
custom_constants/separation = 10
|
|
|
|
__meta__ = {
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
}
|
|
|
|
|
2020-08-26 13:12:35 +00:00
|
|
|
[node name="Names" type="VBoxContainer" parent="VBoxContainer/HBoxContainer"]
|
2021-09-23 18:25:35 +00:00
|
|
|
margin_right = 68.0
|
2020-10-29 20:25:31 +00:00
|
|
|
margin_bottom = 50.0
|
2020-04-13 14:10:17 +00:00
|
|
|
size_flags_horizontal = 3
|
2020-10-29 20:25:31 +00:00
|
|
|
size_flags_vertical = 0
|
2020-04-13 14:10:17 +00:00
|
|
|
size_flags_stretch_ratio = 0.9
|
|
|
|
|
2020-08-26 13:12:35 +00:00
|
|
|
[node name="Hue" type="Label" parent="VBoxContainer/HBoxContainer/Names"]
|
2021-09-23 18:25:35 +00:00
|
|
|
margin_right = 68.0
|
2020-04-13 14:10:17 +00:00
|
|
|
margin_bottom = 14.0
|
2020-10-29 20:25:31 +00:00
|
|
|
text = "Hue:"
|
2020-04-13 14:10:17 +00:00
|
|
|
align = 2
|
|
|
|
|
2020-08-26 13:12:35 +00:00
|
|
|
[node name="Saturation" type="Label" parent="VBoxContainer/HBoxContainer/Names"]
|
2020-10-29 20:25:31 +00:00
|
|
|
margin_top = 18.0
|
2021-09-23 18:25:35 +00:00
|
|
|
margin_right = 68.0
|
2020-10-29 20:25:31 +00:00
|
|
|
margin_bottom = 32.0
|
|
|
|
text = "Saturation:"
|
2020-04-13 14:10:17 +00:00
|
|
|
align = 2
|
|
|
|
|
2020-08-26 13:12:35 +00:00
|
|
|
[node name="Value" type="Label" parent="VBoxContainer/HBoxContainer/Names"]
|
2020-10-29 20:25:31 +00:00
|
|
|
margin_top = 36.0
|
2021-09-23 18:25:35 +00:00
|
|
|
margin_right = 68.0
|
2020-10-29 20:25:31 +00:00
|
|
|
margin_bottom = 50.0
|
|
|
|
text = "Value:"
|
2020-04-13 14:10:17 +00:00
|
|
|
align = 2
|
|
|
|
|
2020-08-26 13:12:35 +00:00
|
|
|
[node name="Sliders" type="VBoxContainer" parent="VBoxContainer/HBoxContainer"]
|
2021-09-23 18:25:35 +00:00
|
|
|
margin_left = 78.0
|
|
|
|
margin_right = 248.0
|
2020-04-14 10:51:35 +00:00
|
|
|
margin_bottom = 84.0
|
2020-04-13 14:10:17 +00:00
|
|
|
size_flags_horizontal = 3
|
|
|
|
size_flags_stretch_ratio = 3.0
|
2020-10-29 20:25:31 +00:00
|
|
|
custom_constants/separation = 10
|
|
|
|
alignment = 1
|
2020-04-13 14:10:17 +00:00
|
|
|
|
2020-08-26 13:12:35 +00:00
|
|
|
[node name="Hue" type="HSlider" parent="VBoxContainer/HBoxContainer/Sliders"]
|
2020-10-29 20:25:31 +00:00
|
|
|
margin_top = 8.0
|
2021-09-23 18:25:35 +00:00
|
|
|
margin_right = 170.0
|
2020-10-29 20:25:31 +00:00
|
|
|
margin_bottom = 24.0
|
2020-04-15 09:49:29 +00:00
|
|
|
mouse_default_cursor_shape = 2
|
2020-04-14 10:51:35 +00:00
|
|
|
min_value = -180.0
|
|
|
|
max_value = 180.0
|
2020-04-13 14:10:17 +00:00
|
|
|
|
2020-08-26 13:12:35 +00:00
|
|
|
[node name="Saturation" type="HSlider" parent="VBoxContainer/HBoxContainer/Sliders"]
|
2020-10-29 20:25:31 +00:00
|
|
|
margin_top = 34.0
|
2021-09-23 18:25:35 +00:00
|
|
|
margin_right = 170.0
|
2020-10-29 20:25:31 +00:00
|
|
|
margin_bottom = 50.0
|
2020-04-15 09:49:29 +00:00
|
|
|
mouse_default_cursor_shape = 2
|
2020-04-14 10:51:35 +00:00
|
|
|
min_value = -100.0
|
2020-04-13 14:10:17 +00:00
|
|
|
|
2020-08-26 13:12:35 +00:00
|
|
|
[node name="Value" type="HSlider" parent="VBoxContainer/HBoxContainer/Sliders"]
|
2020-10-29 20:25:31 +00:00
|
|
|
margin_top = 60.0
|
2021-09-23 18:25:35 +00:00
|
|
|
margin_right = 170.0
|
2020-10-29 20:25:31 +00:00
|
|
|
margin_bottom = 76.0
|
2020-04-15 09:49:29 +00:00
|
|
|
mouse_default_cursor_shape = 2
|
2020-04-14 10:51:35 +00:00
|
|
|
min_value = -100.0
|
2020-04-13 14:10:17 +00:00
|
|
|
|
2020-08-26 13:12:35 +00:00
|
|
|
[node name="TextBoxes" type="VBoxContainer" parent="VBoxContainer/HBoxContainer"]
|
2021-09-23 18:25:35 +00:00
|
|
|
margin_left = 258.0
|
|
|
|
margin_right = 332.0
|
2020-04-14 10:51:35 +00:00
|
|
|
margin_bottom = 84.0
|
2020-04-13 14:10:17 +00:00
|
|
|
size_flags_horizontal = 3
|
|
|
|
size_flags_stretch_ratio = 0.0
|
|
|
|
custom_constants/separation = 6
|
|
|
|
|
2020-08-26 13:12:35 +00:00
|
|
|
[node name="Hue" type="SpinBox" parent="VBoxContainer/HBoxContainer/TextBoxes"]
|
2020-04-13 14:10:17 +00:00
|
|
|
margin_right = 74.0
|
|
|
|
margin_bottom = 24.0
|
2020-04-15 09:49:29 +00:00
|
|
|
mouse_default_cursor_shape = 1
|
2020-04-14 10:51:35 +00:00
|
|
|
min_value = -180.0
|
|
|
|
max_value = 180.0
|
2020-04-13 14:10:17 +00:00
|
|
|
|
2020-08-26 13:12:35 +00:00
|
|
|
[node name="Saturation" type="SpinBox" parent="VBoxContainer/HBoxContainer/TextBoxes"]
|
2020-04-13 14:10:17 +00:00
|
|
|
margin_top = 30.0
|
|
|
|
margin_right = 74.0
|
|
|
|
margin_bottom = 54.0
|
2020-04-15 09:49:29 +00:00
|
|
|
mouse_default_cursor_shape = 1
|
2020-04-14 10:51:35 +00:00
|
|
|
min_value = -100.0
|
2020-04-13 14:10:17 +00:00
|
|
|
|
2020-08-26 13:12:35 +00:00
|
|
|
[node name="Value" type="SpinBox" parent="VBoxContainer/HBoxContainer/TextBoxes"]
|
2020-04-13 14:10:17 +00:00
|
|
|
margin_top = 60.0
|
|
|
|
margin_right = 74.0
|
|
|
|
margin_bottom = 84.0
|
2020-04-15 09:49:29 +00:00
|
|
|
mouse_default_cursor_shape = 1
|
2020-04-14 10:51:35 +00:00
|
|
|
min_value = -100.0
|
|
|
|
|
2020-08-26 13:12:35 +00:00
|
|
|
[node name="AffectHBoxContainer" type="HBoxContainer" parent="VBoxContainer"]
|
2021-09-23 18:25:35 +00:00
|
|
|
margin_top = 348.0
|
|
|
|
margin_right = 332.0
|
|
|
|
margin_bottom = 372.0
|
2020-07-24 00:22:12 +00:00
|
|
|
|
2020-08-26 13:12:35 +00:00
|
|
|
[node name="SelectionCheckBox" type="CheckBox" parent="VBoxContainer/AffectHBoxContainer"]
|
2020-07-24 00:22:12 +00:00
|
|
|
margin_right = 160.0
|
|
|
|
margin_bottom = 24.0
|
|
|
|
mouse_default_cursor_shape = 2
|
|
|
|
pressed = true
|
|
|
|
text = "Only affect selection"
|
|
|
|
|
2020-08-26 13:12:35 +00:00
|
|
|
[node name="AffectOptionButton" type="OptionButton" parent="VBoxContainer/AffectHBoxContainer"]
|
2020-07-24 00:22:12 +00:00
|
|
|
margin_left = 164.0
|
2021-08-31 12:38:11 +00:00
|
|
|
margin_right = 278.0
|
2020-07-24 00:22:12 +00:00
|
|
|
margin_bottom = 24.0
|
|
|
|
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-07-24 00:22:12 +00:00
|
|
|
selected = 0
|
2021-05-30 16:20:56 +00:00
|
|
|
|
2021-09-23 18:25:35 +00:00
|
|
|
[node name="WaitApply" type="Timer" parent="."]
|
|
|
|
wait_time = 0.1
|
|
|
|
one_shot = true
|
|
|
|
|
|
|
|
[connection signal="toggled" from="VBoxContainer/LiveSettings/LiveCheckbox" to="." method="_on_LiveCheckbox_toggled"]
|
|
|
|
[connection signal="value_changed" from="VBoxContainer/WaitSettings/WaitTime" to="." method="_on_WaitTime_value_changed"]
|
2020-08-26 13:12:35 +00:00
|
|
|
[connection signal="value_changed" from="VBoxContainer/HBoxContainer/Sliders/Hue" to="." method="_on_Hue_value_changed"]
|
|
|
|
[connection signal="value_changed" from="VBoxContainer/HBoxContainer/Sliders/Saturation" to="." method="_on_Saturation_value_changed"]
|
|
|
|
[connection signal="value_changed" from="VBoxContainer/HBoxContainer/Sliders/Value" to="." method="_on_Value_value_changed"]
|
|
|
|
[connection signal="value_changed" from="VBoxContainer/HBoxContainer/TextBoxes/Hue" to="." method="_on_Hue_value_changed"]
|
|
|
|
[connection signal="value_changed" from="VBoxContainer/HBoxContainer/TextBoxes/Saturation" to="." method="_on_Saturation_value_changed"]
|
|
|
|
[connection signal="value_changed" from="VBoxContainer/HBoxContainer/TextBoxes/Value" to="." method="_on_Value_value_changed"]
|
2021-09-23 18:25:35 +00:00
|
|
|
[connection signal="timeout" from="WaitApply" to="." method="_on_WaitApply_timeout"]
|