mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-31 23:49:47 +00:00
c9f0301c79
The gradient edit code was taken and modified from Material Maker, MIT license.
39 lines
989 B
Plaintext
39 lines
989 B
Plaintext
[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="TextureRect"]
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
texture = SubResource( 2 )
|
|
expand = true
|
|
script = ExtResource( 1 )
|
|
|
|
[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="Value" type="Label" parent="."]
|
|
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
|
|
|
|
[connection signal="resized" from="." to="." method="_on_GradientEdit_resized"]
|
|
[connection signal="color_changed" from="Popup/ColorPicker" to="." method="_on_ColorPicker_color_changed"]
|