AUTO-GENERATED FILE — DO NOT EDIT MANUALLY
Source: components/ui/cursor_component.gd
Version: 6.0
class_name: CursorComponent
extends: Component
Signals
(none)
Exports
cursor_type: CursorType = CursorType.DEFAULT- Custom cursor texture
- Custom cursor hotspot
- Cursor modes for different states
custom_cursor_texture: Texture2D- Custom cursor hotspot
- Cursor modes for different states
custom_hotspot: Vector2 = Vector2.ZERO- Cursor modes for different states
cursor_mode: CursorMode = CursorMode.NORMAL- Auto-switch cursors based on context
- Cursor animation settings
- Mode to cursor type mapping
- Initialize cursor changer with data
auto_switch: bool = true- Cursor animation settings
- Mode to cursor type mapping
- Initialize cursor changer with data
enable_animation: bool = false- Mode to cursor type mapping
- Initialize cursor changer with data
animation_speed: float = 1.0- Mode to cursor type mapping
- Initialize cursor changer with data
mode_cursor_mapping: Dictionary = {}- Initialize cursor changer with data
Methods
_init(data: Dictionary = {}) -> void_setup_default_mappings -> voidset_cursor_mode(mode: CursorMode) -> voidset_cursor_type(type: CursorType) -> voidset_custom_cursor(texture: Texture2D, hotspot: Vector2 = Vector2.ZERO) -> void_update_cursor_type -> void_apply_cursor -> voidset_mode_cursor_mapping(mode: CursorMode, cursor: CursorType) -> voidremove_mode_cursor_mapping(mode: CursorMode) -> voidget_cursor_for_mode(mode: CursorMode) -> CursorTypeset_auto_switch(enabled: bool) -> voidset_animation_enabled(enabled: bool) -> voidreset_to_default -> voidis_using_custom_cursor -> boolvalidate -> Arrayto_string -> String