Implements the common UI parts of HappyFunTimes for contollers.
- Source:
Methods
(static) error(str)
Logs an error to the HTML based console that is only visible when debug = true.
Parameters:
Name | Type | Description |
---|---|---|
str |
string | msg to add to log |
- Source:
(static) log(str)
Logs a msg to the HTML based console that is only visible when debug = true.
Parameters:
Name | Type | Description |
---|---|---|
str |
string | msg to add to log |
- Source:
(static) setStatus(str)
Sets the content of the status element. Only visible of debug is true.
Parameters:
Name | Type | Description |
---|---|---|
str |
string | value to set the status |
- Source:
(static) setupStandardControllerUI(client, optionsopt)
Sets up the standard UI for a happyFunTimes controller (phone). Including handling being disconnected from the current game and switching to new games as well as name input and the gear menu.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
client |
GameClient | The |
|
options |
module:CommonUI.ControllerUI~Options |
<optional> |
the options |
- Source: