1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-02-24 06:23:13 +00:00
Pixelorama/src/UI/Nodes/GradientEdit.tscn

121 lines
3.7 KiB
Text
Raw Normal View History

[gd_scene load_steps=4 format=2]
[ext_resource path="res://src/UI/Nodes/GradientEdit.gd" type="Script" id=1]
[sub_resource type="Gradient" id=1]
[sub_resource type="GradientTexture" id=2]
gradient = SubResource( 1 )
[node name="GradientEdit" type="VBoxContainer"]
anchor_right = 1.0
anchor_bottom = 1.0
script = ExtResource( 1 )
[node name="TextureRect" type="TextureRect" parent="."]
margin_right = 1280.0
margin_bottom = 672.0
rect_min_size = Vector2( 0, 30 )
size_flags_vertical = 3
texture = SubResource( 2 )
expand = true
[node name="Value" type="Label" parent="TextureRect"]
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -20.0
margin_top = -7.0
margin_right = 20.0
margin_bottom = 7.0
[node name="Popup" type="PopupPanel" parent="."]
margin_right = 316.0
margin_bottom = 470.0
[node name="ColorPicker" type="ColorPicker" parent="Popup"]
margin_left = 4.0
margin_top = 4.0
margin_right = 312.0
margin_bottom = 466.0
[node name="InterpolationContainer" type="HBoxContainer" parent="."]
margin_top = 676.0
margin_right = 1280.0
margin_bottom = 696.0
[node name="Label" type="Label" parent="InterpolationContainer"]
margin_top = 3.0
margin_right = 87.0
margin_bottom = 17.0
text = "Interpolation:"
[node name="InterpolationOptionButton" type="OptionButton" parent="InterpolationContainer"]
margin_left = 91.0
margin_right = 1280.0
margin_bottom = 20.0
mouse_default_cursor_shape = 2
size_flags_horizontal = 3
text = "Linear"
items = [ "Linear", null, false, 0, null, "Constant", null, false, 1, null, "Cubic", null, false, 2, null ]
selected = 0
[node name="DivideButton" type="Button" parent="."]
margin_top = 700.0
margin_right = 1280.0
margin_bottom = 720.0
mouse_default_cursor_shape = 2
text = "Divide into equal parts"
[node name="DivideConfirmationDialog" type="ConfirmationDialog" parent="."]
margin_top = 650.0
margin_right = 200.0
margin_bottom = 746.0
resizable = true
[node name="VBoxContainer" type="VBoxContainer" parent="DivideConfirmationDialog"]
anchor_right = 1.0
anchor_bottom = 1.0
margin_left = 8.0
margin_top = 8.0
margin_right = -8.0
margin_bottom = -36.0
[node name="HBoxContainer" type="HBoxContainer" parent="DivideConfirmationDialog/VBoxContainer"]
margin_right = 1280.0
margin_bottom = 24.0
[node name="Label" type="Label" parent="DivideConfirmationDialog/VBoxContainer/HBoxContainer"]
margin_top = 5.0
margin_right = 36.0
margin_bottom = 19.0
text = "Parts:"
[node name="NumberOfPartsSpinBox" type="SpinBox" parent="DivideConfirmationDialog/VBoxContainer/HBoxContainer"]
unique_name_in_owner = true
margin_left = 40.0
margin_right = 1280.0
margin_bottom = 24.0
mouse_default_cursor_shape = 2
size_flags_horizontal = 3
min_value = 2.0
value = 3.0
allow_greater = true
[node name="AddPointEndCheckBox" type="CheckBox" parent="DivideConfirmationDialog/VBoxContainer"]
unique_name_in_owner = true
margin_top = 28.0
margin_right = 1280.0
margin_bottom = 52.0
hint_tooltip = "If this is enabled, the last point gets added at the end of the gradient.
Disable this if you wish to convert the gradient to have constant interpolation, so that it will take into account the last color."
mouse_default_cursor_shape = 2
text = "Add point at the end"
[connection signal="resized" from="." to="." method="_on_GradientEdit_resized"]
[connection signal="color_changed" from="Popup/ColorPicker" to="." method="_on_ColorPicker_color_changed"]
[connection signal="item_selected" from="InterpolationContainer/InterpolationOptionButton" to="." method="_on_InterpolationOptionButton_item_selected"]
[connection signal="pressed" from="DivideButton" to="." method="_on_DivideButton_pressed"]
[connection signal="confirmed" from="DivideConfirmationDialog" to="." method="_on_DivideConfirmationDialog_confirmed"]