Differential D2312 Diff 10340 binaries/data/mods/public/gui/session/message_box/QuitConfirmationMenu.js
Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/session/message_box/QuitConfirmationMenu.js
/** | /** | ||||
* The class that is enabled() will be triggered when the user clicks on the Exit menu button. | * The class that is enabled() will be triggered when the user clicks on the Exit menu button. | ||||
*/ | */ | ||||
class QuitConfirmationMenu | class QuitConfirmationMenu | ||||
{ | { | ||||
} | } | ||||
/** | /** | ||||
* In singleplayer mode, replaymode and for observers in multiplayermatches that | * In single-player mode, replay mode and for observers in multiplayer matches that | ||||
* aren't the host, exit the match instantly. | * aren't the host, exit the match instantly. | ||||
*/ | */ | ||||
QuitConfirmationMenu.prototype.Singleplayer = class extends QuitConfirmation | QuitConfirmationMenu.prototype.Singleplayer = class extends QuitConfirmation | ||||
{ | { | ||||
enabled() | enabled() | ||||
{ | { | ||||
return !g_IsNetworked || (!g_IsController && g_IsObserver); | return !g_IsNetworked || (!g_IsController && g_IsObserver); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 61 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator