Zum Inhalt springen
Gothic Multiplayer
Gothic MP Wiki

Cursor

The game's mouse cursor: showing it to click web pages, hiding it to give the control back to the game.

since 0.1.0-alpha

The game's own cursor. While it is shown the player clicks and types into web pages and the game ignores the mouse and the keyboard.

Mouse cursor

showCursor

since 0.1.35-alpha
showCursor(show)

Shows or hides the game's mouse cursor. While the cursor is shown the game ignores the mouse and the keyboard (the camera does not turn, the character does not move or attack) and the player can click the in-game web UI: clicks go to the page under the cursor, the keys to the page clicked last. Clicks on fully transparent parts of a page go through to what is below. Hiding the cursor gives the control back to the game. If the game hides the cursor itself while it should be shown (e.g. after closing the game's own menu), it is shown again.

showCursor(true)    -- e.g. when opening a shop window
showCursor(false)   -- when closing it
ParameterTypeDescription
showbooleantrue = show the cursor, false = hide it.

Returns: boolean - Always true.

isCursorShown

since 0.1.35-alpha
isCursorShown()

Whether the mouse cursor is shown with showCursor.

Returns: boolean