Custom canvas images for all tools
Before Width: | Height: | Size: 803 B |
Before Width: | Height: | Size: 852 B |
Before Width: | Height: | Size: 867 B |
Before Width: | Height: | Size: 859 B |
Before Width: | Height: | Size: 900 B After Width: | Height: | Size: 311 B |
Before Width: | Height: | Size: 746 B After Width: | Height: | Size: 253 B |
BIN
Assets/Graphics/Tools/Eraser_Cursor.png
Normal file
After Width: | Height: | Size: 268 B |
|
@ -2,15 +2,15 @@
|
|||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/Brush_l_r.png-5b0b2b1d5aaa3b4883404b24ddd63152.stex"
|
||||
path="res://.import/Eraser_Cursor.png-f692572693acb37ec2194276528a81d8.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Assets/Graphics/Tools/Brush_l_r.png"
|
||||
dest_files=[ "res://.import/Brush_l_r.png-5b0b2b1d5aaa3b4883404b24ddd63152.stex" ]
|
||||
source_file="res://Assets/Graphics/Tools/Eraser_Cursor.png"
|
||||
dest_files=[ "res://.import/Eraser_Cursor.png-f692572693acb37ec2194276528a81d8.stex" ]
|
||||
|
||||
[params]
|
||||
|
BIN
Assets/Graphics/Tools/LightenDarken_Cursor.png
Normal file
After Width: | Height: | Size: 289 B |
|
@ -2,15 +2,15 @@
|
|||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/Brush_l.png-f1a1213816b51e44e3c5cea82f1143f1.stex"
|
||||
path="res://.import/LightenDarken_Cursor.png-4c3a225d3133a1ea63f3ad47f599a686.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Assets/Graphics/Tools/Brush_l.png"
|
||||
dest_files=[ "res://.import/Brush_l.png-f1a1213816b51e44e3c5cea82f1143f1.stex" ]
|
||||
source_file="res://Assets/Graphics/Tools/LightenDarken_Cursor.png"
|
||||
dest_files=[ "res://.import/LightenDarken_Cursor.png-4c3a225d3133a1ea63f3ad47f599a686.stex" ]
|
||||
|
||||
[params]
|
||||
|
BIN
Assets/Graphics/Tools/Pencil_Cursor.png
Normal file
After Width: | Height: | Size: 259 B |
|
@ -2,15 +2,15 @@
|
|||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/Brush.png-be161d4821aadbd04edeb9bfd3d48744.stex"
|
||||
path="res://.import/Pencil_Cursor.png-835e48cc824d523278a13c95a3b3ec6e.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Assets/Graphics/Tools/Brush.png"
|
||||
dest_files=[ "res://.import/Brush.png-be161d4821aadbd04edeb9bfd3d48744.stex" ]
|
||||
source_file="res://Assets/Graphics/Tools/Pencil_Cursor.png"
|
||||
dest_files=[ "res://.import/Pencil_Cursor.png-835e48cc824d523278a13c95a3b3ec6e.stex" ]
|
||||
|
||||
[params]
|
||||
|
BIN
Assets/Graphics/Tools/RectSelect_Cursor.png
Normal file
After Width: | Height: | Size: 132 B |
|
@ -2,15 +2,15 @@
|
|||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/Brush_r.png-2dd42e7ea71b8fd6ecbfc2c28079712f.stex"
|
||||
path="res://.import/RectSelect_Cursor.png-a7675c7d3d9b92992266b4bedca7e03f.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Assets/Graphics/Tools/Brush_r.png"
|
||||
dest_files=[ "res://.import/Brush_r.png-2dd42e7ea71b8fd6ecbfc2c28079712f.stex" ]
|
||||
source_file="res://Assets/Graphics/Tools/RectSelect_Cursor.png"
|
||||
dest_files=[ "res://.import/RectSelect_Cursor.png-a7675c7d3d9b92992266b4bedca7e03f.stex" ]
|
||||
|
||||
[params]
|
||||
|
|
@ -108,10 +108,7 @@ func _process(delta : float) -> void:
|
|||
Global.cursor_position_label.text = "[%s×%s] %s, %s" % [size.x, size.y, mouse_pos_floored.x, mouse_pos_floored.y]
|
||||
if !cursor_inside_canvas:
|
||||
cursor_inside_canvas = true
|
||||
if Global.current_left_tool == "Bucket":
|
||||
Input.set_custom_mouse_cursor(preload("res://Assets/Graphics/Tools/Bucket_Cursor.png"), 0, Vector2(6, 27))
|
||||
elif Global.current_left_tool == "ColorPicker":
|
||||
Input.set_custom_mouse_cursor(preload("res://Assets/Graphics/Tools/ColorPicker_Cursor.png"), 0, Vector2(5, 28))
|
||||
Input.set_custom_mouse_cursor(load("res://Assets/Graphics/Tools/%s_Cursor.png" % Global.current_left_tool), 0, Vector2(3, 24))
|
||||
else:
|
||||
if !Input.is_mouse_button_pressed(BUTTON_LEFT) && !Input.is_mouse_button_pressed(BUTTON_RIGHT):
|
||||
if mouse_inside_canvas:
|
||||
|
|