GHI_GetCurrentCursor

Pilus edited this page Aug 11, 2015 · 1 revision

Syntax:

GHI_GetCurrentCursor()

Arguments:

None

Returns:

info
''Any''
This function returns additional arguments passed when setting the cursor. It is used to access these arguments in the Click or Clear functions of the cursor that was set.

Example:

GHI_SetCursor("QUEST_CURSOR","",nil,function()

local cursorInfo, cursorInfo2 = GHI_GetCurrentCursor()

print("---------")

print(cursorInfo)

print(cursorInfo2)

GHI_ClearCursor()

end, "Test", "Test2"

)

This script sets up the cursor to print the arguments passed to the cursor when clicked.

Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.