SixL client API / browser / GuiMp
Interface: GuiMp
The game's user interface: mp.gui: the mouse cursor and the built-in chat.
Example
mp.gui.cursor.show(true, true);
Properties
chat
chat: GuiChatMp
The built-in chat: lines from the server and from scripts, the input line (T opens it, Enter sends).
Example
mp.gui.chat.push('!{#FFCC00}Welcome!');
cursor
cursor: GuiCursorMp
The mouse cursor over the pages.
Example
mp.gui.cursor.visible = true;
Methods
execute()
execute(code):void
Runs JavaScript in the built-in page (the built-in chat's page), shown or hidden.
Parameters
code
string
The code.
Returns
void
Remarks
Partial: not yet confirmed in the game.
Example
mp.gui.execute('document.body.style.opacity = 0.8');