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

67 lines
1.9 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 = 696.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 = 700.0
margin_right = 1280.0
margin_bottom = 720.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
[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"]