cursors.gd

Extends: Node

Description

Enumerations

Type

const Type: Dictionary = {"CUSTOM1":13,"CUSTOM2":14,"CUSTOM3":15,"CUSTOM4":16,"DEFAULT":0,"DOWN":6,"EXIT":10,"GO_BACKWARDS":2,"GO_FORWARD":1,"HAND":12,"LOOK":8,"MAP":11,"SPEAK":9,"TURN_LEFT":4,"TURN_RIGHT":3,"UP":5,"USE":7}

The available types of cursors

CURSOR_MAP

const CURSOR_MAP: Dictionary = {"0":0,"1":3,"2":6,"3":15,"4":14,"5":10,"6":9,"7":2,"8":16,"9":1,"10":11,"11":12,"12":13,"13":7,"14":8,"15":4,"16":5}

A map of cursor types to core input cursors

Method Descriptions

configure

func configure(configuration: GameConfiguration)

Configure the mouse cursors

override

func override(type, texture: Texture, hotspot: Vector2, target_position = null)

reset

func reset(type)

Reset the previously overridden cursor to its default form

** Parameters **

  • type: The type to reset (based on the Type enum)

get_cursor_texture

func get_cursor_texture(type)

Return the texture of the specified hotspot type

** Parameters **

  • type: The type to return the default texture of

Signals

  • signal cursors_configured():