cursor.gd

Extends: CanvasLayer

Description

Constants Descriptions

Type

enum Type{NONE = 0, ACTIVE = 1, DOWN = 2, IDLE = 3, LEFT = 4, LOOK = 5, RIGHT = 6, SEARCH = 7, TALK = 8, UP = 9, USE = 10, WAIT = 11}

Property Descriptions

is_pixel_perfect

@export var is_pixel_perfect: bool = false

is_blocked

var is_blocked: bool = false

main_cursor

var main_cursor: AnimatedSprite2D

secondary_cursor

var secondary_cursor: Sprite2D

Method Descriptions

show_cursor

func show_cursor(anim_name: String = "normal", ignore_block: bool = false) -> void

set_secondary_cursor_texture

func set_secondary_cursor_texture(texture: Texture2D, ignore_block: bool = false) -> void

remove_secondary_cursor_texture

func remove_secondary_cursor_texture() -> void

toggle_visibility

func toggle_visibility(is_visible: bool) -> void

block

func block() -> void

unblock

func unblock() -> void

scale_cursor

func scale_cursor(factor: Vector2) -> void

get_position

func get_position() -> Vector2

replace_frames

func replace_frames(new_node: AnimatedSprite2D) -> void

hide_main_cursor

func hide_main_cursor() -> void

show_main_cursor

func show_main_cursor() -> void

hide_secondary_cursor

func hide_secondary_cursor() -> void

show_secondary_cursor

func show_secondary_cursor() -> void

get_type_name

func get_type_name(idx: int) -> String

get_cursor_height

func get_cursor_height() -> int