Added a custom color picker tool, which allows you to select a color from the canvas

This commit is contained in:
OverloadedOrama 2019-12-04 17:22:21 +02:00
parent dd60f0fc7e
commit 5f72e970c6
13 changed files with 296 additions and 135 deletions

View file

@ -100,6 +100,7 @@ func _ready() -> void:
tools.append([Global.find_node_by_name(root, "Bucket"), "left_fill_tool", "right_fill_tool"])
tools.append([Global.find_node_by_name(root, "LightenDarken"), "left_lightdark_tool", "right_lightdark_tool"])
tools.append([Global.find_node_by_name(root, "RectSelect"), "left_rectangle_select_tool", "right_rectangle_select_tool"])
tools.append([Global.find_node_by_name(root, "ColorPicker"), "left_colorpicker_tool", "right_colorpicker_tool"])
for t in tools:
t[0].connect("pressed", self, "_on_Tool_pressed", [t[0]])