mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-02-20 12:33:14 +00:00
Load the image of the cursor once
This should fix some rare crashes as well
This commit is contained in:
parent
d1793c2e60
commit
f3759d677e
2 changed files with 3 additions and 2 deletions
|
@ -248,7 +248,7 @@ func _input(event : InputEvent) -> 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
|
||||
Input.set_custom_mouse_cursor(load("res://Assets/Graphics/Cursor.png"), 0, Vector2(15, 15))
|
||||
Input.set_custom_mouse_cursor(Global.cursor_image, 0, Vector2(15, 15))
|
||||
if Global.show_left_tool_icon:
|
||||
Global.left_cursor.visible = true
|
||||
if Global.show_right_tool_icon:
|
||||
|
|
|
@ -19,15 +19,16 @@ var has_focus := false
|
|||
var canvases := []
|
||||
# warning-ignore:unused_class_variable
|
||||
var hidden_canvases := []
|
||||
|
||||
var pressure_sensitivity_mode = Pressure_Sensitivity.ALPHA
|
||||
var smooth_zoom := true
|
||||
var cursor_image = preload("res://Assets/Graphics/Cursor.png")
|
||||
var left_cursor_tool_texture : ImageTexture
|
||||
var right_cursor_tool_texture : ImageTexture
|
||||
var transparent_background : ImageTexture
|
||||
# warning-ignore:unused_class_variable
|
||||
var selected_pixels := []
|
||||
var image_clipboard : Image
|
||||
|
||||
# warning-ignore:unused_class_variable
|
||||
var theme_type := "Dark"
|
||||
# warning-ignore:unused_class_variable
|
||||
|
|
Loading…
Add table
Reference in a new issue