Updated custom tool cursors & changed rectangle selection tool

- Also fixed a small translation bug with the menu items, for real this time
- Fixed a bug with the brush color not being updated when using the custom color picker tool
- The pixel indicators only appear for Pencil, Eraser and LightenDarken tools
- Small UI margin changes.
This commit is contained in:
OverloadedOrama 2019-12-11 01:00:26 +02:00
parent 1bd8ec4ae0
commit 719d29526f
10 changed files with 84 additions and 65 deletions

View file

@ -26,6 +26,11 @@ func _process(delta : float) -> void:
var current_layer_index := Global.canvas.current_layer_index
var layer : Image = Global.canvas.layers[current_layer_index][0]
if end_pos == start_pos:
Global.selection_rectangle.visible = false
else:
Global.selection_rectangle.visible = true
if point_in_rectangle(mouse_pos, polygon[0], polygon[2]) && Global.selected_pixels.size() > 0 && (Global.current_left_tool == "RectSelect" || Global.current_right_tool == "RectSelect"):
get_parent().get_parent().mouse_default_cursor_shape = Input.CURSOR_MOVE
Input.set_mouse_mode(Input.MOUSE_MODE_VISIBLE)