class

PointClickEngine::UI::CursorManager

Inherits Reference < Object

Manages context-sensitive cursors

Constructors

Instance methods

asset_base_dir
Source
asset_base_dir=(asset_base_dir : String)
Source
cleanup

Clean up

Source
configure(asset_base_dir : String = "", cursor_root : String | Nil = nil, cursor_paths : Hash(VerbType, String) | Nil = nil, default_cursor_path : String | Nil = nil)
Source
current_character
Source
current_character=(current_character : Characters::Character | Nil)
Source
current_hotspot
Source
current_hotspot=(current_hotspot : Scenes::Hotspot | Nil)
Source
current_verb
Source
current_verb=(current_verb : VerbType)
Source
cursors
Source
cursors=(cursors : Hash(VerbType, RL::Texture2D))
Source
custom_cursor_available?
Source
cycle_verb_backward

Cycle to previous verb

Source
cycle_verb_forward

Cycle to next verb

Source
draw(mouse_pos : RL::Vector2)

Draw the current cursor

Source
get_current_action

Get the current action verb

Source
is_verb_active?(verb : VerbType) : Bool

Check if a specific verb is active

Source
manual_verb_mode
Source
manual_verb_mode=(manual_verb_mode : Bool)
Source
reset_manual_mode

Reset to automatic verb selection

Source
set_verb(verb : VerbType)

Set verb manually

Source
show_tooltip
Source
show_tooltip=(show_tooltip : Bool)
Source
tooltip_offset
Source
tooltip_offset=(tooltip_offset : RL::Vector2)
Source
update(mouse_pos : RL::Vector2, scene : Scenes::Scene, inventory : Inventory::InventorySystem | Nil = nil)

Update cursor based on what's under the mouse

Source