1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-02-12 08:43:08 +00:00
Pixelorama/src/Tools/ColorPicker.tscn
Variable ef6ae86c8d
Make the color picker pick any visible color on the canvas, regardless of layer (#816)
* Pick top color by default

* revert accidental commit

* Pick top color by default

* formatting

* formatting
2023-01-20 16:09:49 +02:00

49 lines
1.5 KiB
Plaintext

[gd_scene load_steps=3 format=2]
[ext_resource path="res://src/Tools/BaseTool.tscn" type="PackedScene" id=1]
[ext_resource path="res://src/Tools/ColorPicker.gd" type="Script" id=2]
[node name="ToolOptions" instance=ExtResource( 1 )]
script = ExtResource( 2 )
[node name="ColorPicker" type="VBoxContainer" parent="." index="2"]
margin_top = 26.0
margin_right = 116.0
margin_bottom = 106.0
[node name="Label" type="Label" parent="ColorPicker" index="0"]
margin_right = 116.0
margin_bottom = 14.0
mouse_default_cursor_shape = 2
size_flags_vertical = 1
text = "Pick for:"
[node name="Options" type="OptionButton" parent="ColorPicker" index="1"]
margin_top = 18.0
margin_right = 116.0
margin_bottom = 38.0
mouse_default_cursor_shape = 2
text = "Left Color"
items = [ "Left Color", null, false, 0, null, "Right Color", null, false, 1, null ]
selected = 0
[node name="Label2" type="Label" parent="ColorPicker" index="2"]
margin_top = 42.0
margin_right = 116.0
margin_bottom = 56.0
mouse_default_cursor_shape = 2
size_flags_vertical = 1
text = "Pick mode:"
[node name="ExtractFrom" type="OptionButton" parent="ColorPicker" index="3"]
margin_top = 60.0
margin_right = 116.0
margin_bottom = 80.0
mouse_default_cursor_shape = 2
text = "Top Color"
items = [ "Top Color", null, false, 0, null, "Current Layer", null, false, 1, null ]
selected = 0
[connection signal="item_selected" from="ColorPicker/Options" to="." method="_on_Options_item_selected"]
[connection signal="item_selected" from="ColorPicker/ExtractFrom" to="." method="_on_ExtractFrom_item_selected"]