Forum rules - please read before posting.

Get name of active software cursor

I've been looking through the scripting guide, but I must be missing something - I'm trying to find a way to get the name or ID of the software cursor that's currently being displayed. Is this possible?

Thanks!

Comments

  • edited September 2023

    If it's currently set to an Interaction icon set in the Cursor Manager (i.e. not currently an Inventory cursor), you can read the GetSelectedCursorID function:

    int cursorID = KickStarter.playerCursor.GetSelectedCursorID ();
    

    To convert this into the label defined in the Cursor Manager:

    KickStarter.cursorManager.GetLabelFromID (cursorID, Options.GetLanguage ());
    
  • That's it! Thank you Chris!

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.