From 0474e50c53e256f05946d9a67e809e7f0de78518 Mon Sep 17 00:00:00 2001 From: Relintai Date: Fri, 18 Nov 2022 13:45:22 +0100 Subject: [PATCH] Right click will go back from the bucket tool to the previous tool. --- game/PaintCanvas.gd | 2 ++ game/Project.tscn | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/game/PaintCanvas.gd b/game/PaintCanvas.gd index 137b899..09e44be 100644 --- a/game/PaintCanvas.gd +++ b/game/PaintCanvas.gd @@ -111,6 +111,8 @@ func handle_right_mouse_button_down(local_position : Vector2, event: InputEvent) elif current_tool == TOOL_PASTECUT: commit_action() current_tool = TOOL_PENCIL + elif current_tool == TOOL_BUCKET: + current_tool = get_previous_tool() tool_process(local_position, event) diff --git a/game/Project.tscn b/game/Project.tscn index 4cec6b6..8493f18 100644 --- a/game/Project.tscn +++ b/game/Project.tscn @@ -28,7 +28,7 @@ size = Vector2( 32, 32 ) [node name="PaintProject" type="PaintProject"] size = Vector2i( 128, 128 ) -current_color = Color( 0.0666667, 0.796078, 0.196078, 1 ) +current_color = Color( 0.658824, 0.313726, 0.207843, 1 ) color_presets = PoolColorArray( 0.67914, 0.117493, 0.0852439, 1, 0.129412, 0.113725, 0.384314, 1, 0.0666667, 0.796078, 0.196078, 1, 0.0666667, 0.796078, 0.196078, 1, 0.964706, 0.992157, 0.121569, 1, 0.00784314, 0.835294, 0.564706, 1, 0.0666667, 0.796078, 0.196078, 1, 0.658824, 0.313726, 0.207843, 1 ) script = ExtResource( 2 )