Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/gamesetup/gamesetup.js
Show First 20 Lines • Show All 898 Lines • ▼ Show 20 Lines | "lockTeams": { | ||||
"tooltip": () => translate("Toggle locked teams."), | "tooltip": () => translate("Toggle locked teams."), | ||||
"default": () => Engine.HasXmppClient(), | "default": () => Engine.HasXmppClient(), | ||||
"defined": () => g_GameAttributes.settings.LockTeams !== undefined, | "defined": () => g_GameAttributes.settings.LockTeams !== undefined, | ||||
"get": () => g_GameAttributes.settings.LockTeams, | "get": () => g_GameAttributes.settings.LockTeams, | ||||
"set": checked => { | "set": checked => { | ||||
g_GameAttributes.settings.LockTeams = checked; | g_GameAttributes.settings.LockTeams = checked; | ||||
g_GameAttributes.settings.LastManStanding = false; | g_GameAttributes.settings.LastManStanding = false; | ||||
}, | }, | ||||
"enabled": () => | "enabled": () => !g_GameAttributes.settings.RatingEnabled, | ||||
g_GameAttributes.mapType != "scenario" && | |||||
!g_GameAttributes.settings.RatingEnabled, | |||||
"initOrder": 1000 | "initOrder": 1000 | ||||
}, | }, | ||||
"lastManStanding": { | "lastManStanding": { | ||||
"title": () => translate("Last Man Standing"), | "title": () => translate("Last Man Standing"), | ||||
"tooltip": () => translate("Toggle whether the last remaining player or the last remaining set of allies wins."), | "tooltip": () => translate("Toggle whether the last remaining player or the last remaining set of allies wins."), | ||||
"default": () => false, | "default": () => false, | ||||
"defined": () => g_GameAttributes.settings.LastManStanding !== undefined, | "defined": () => g_GameAttributes.settings.LastManStanding !== undefined, | ||||
"get": () => g_GameAttributes.settings.LastManStanding, | "get": () => g_GameAttributes.settings.LastManStanding, | ||||
▲ Show 20 Lines • Show All 1,765 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator