Skip to content

IsCursorShown

Whether the player’s cursor is up.

true while the player’s cursor is on screen - brought up with the cursor key or SetCursorShown. OnCursorChange tells the moment it changes.

IsCursorShown()

boolean - true while the cursor is up

function OnFrame(dt)
if IsCursorShown() then SetUiAlpha("toolbar", 100) else SetUiAlpha("toolbar", 40) end
end

SetCursorShown · OnCursorChange · the The game’s UI for a script group of the index