2020-07-09 12:22:17 +00:00
|
|
|
[gd_scene load_steps=3 format=2]
|
|
|
|
|
2021-02-02 15:48:17 +00:00
|
|
|
[ext_resource path="res://src/Tools/BaseTool.tscn" type="PackedScene" id=1]
|
2020-07-09 12:22:17 +00:00
|
|
|
[ext_resource path="res://src/Tools/ColorPicker.gd" type="Script" id=2]
|
|
|
|
|
|
|
|
[node name="ToolOptions" instance=ExtResource( 1 )]
|
|
|
|
script = ExtResource( 2 )
|
|
|
|
|
2022-09-19 21:58:39 +00:00
|
|
|
[node name="ColorPicker" type="VBoxContainer" parent="." index="2"]
|
|
|
|
margin_top = 26.0
|
2020-07-09 12:22:17 +00:00
|
|
|
margin_right = 116.0
|
2023-01-20 14:09:49 +00:00
|
|
|
margin_bottom = 106.0
|
2020-07-09 12:22:17 +00:00
|
|
|
|
|
|
|
[node name="Label" type="Label" parent="ColorPicker" index="0"]
|
2022-10-04 21:42:01 +00:00
|
|
|
margin_right = 116.0
|
2020-07-09 12:22:17 +00:00
|
|
|
margin_bottom = 14.0
|
|
|
|
mouse_default_cursor_shape = 2
|
2022-10-04 21:42:01 +00:00
|
|
|
size_flags_vertical = 1
|
2020-07-09 12:22:17 +00:00
|
|
|
text = "Pick for:"
|
|
|
|
|
|
|
|
[node name="Options" type="OptionButton" parent="ColorPicker" index="1"]
|
|
|
|
margin_top = 18.0
|
2022-10-04 21:42:01 +00:00
|
|
|
margin_right = 116.0
|
2020-07-09 12:22:17 +00:00
|
|
|
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
|
|
|
|
|
2023-01-20 14:09:49 +00:00
|
|
|
[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
|
|
|
|
|
2020-07-09 12:22:17 +00:00
|
|
|
[connection signal="item_selected" from="ColorPicker/Options" to="." method="_on_Options_item_selected"]
|
2023-01-20 14:09:49 +00:00
|
|
|
[connection signal="item_selected" from="ColorPicker/ExtractFrom" to="." method="_on_ExtractFrom_item_selected"]
|