Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/gamesetup/gamesetup.js
Show First 20 Lines • Show All 437 Lines • ▼ Show 20 Lines | "settings": [ | ||||
"relicCount", | "relicCount", | ||||
"relicDuration", | "relicDuration", | ||||
"wonderDuration", | "wonderDuration", | ||||
"regicideGarrison", | "regicideGarrison", | ||||
"gameSpeed", | "gameSpeed", | ||||
"ceasefire", | "ceasefire", | ||||
"lockTeams", | "lockTeams", | ||||
"lastManStanding", | "lastManStanding", | ||||
"capturable", | |||||
"enableRating" | "enableRating" | ||||
] | ] | ||||
} | } | ||||
]; | ]; | ||||
/** | /** | ||||
* Contains the logic of all multiple-choice gamesettings. | * Contains the logic of all multiple-choice gamesettings. | ||||
* | * | ||||
▲ Show 20 Lines • Show All 489 Lines • ▼ Show 20 Lines | "lastManStanding": { | ||||
"set": checked => { | "set": checked => { | ||||
g_GameAttributes.settings.LastManStanding = checked; | g_GameAttributes.settings.LastManStanding = checked; | ||||
}, | }, | ||||
"enabled": () => | "enabled": () => | ||||
g_GameAttributes.mapType != "scenario" && | g_GameAttributes.mapType != "scenario" && | ||||
!g_GameAttributes.settings.LockTeams, | !g_GameAttributes.settings.LockTeams, | ||||
"initOrder": 1000 | "initOrder": 1000 | ||||
}, | }, | ||||
"capturable": { | |||||
"title": () => translate("Capturable"), | |||||
"tooltip": () => translate("Toogle whether buildings can be captured."), | |||||
"default": () => true, | |||||
"defined": () => g_GameAttributes.settings.Capturable !== undefined, | |||||
"get": () => g_GameAttributes.settings.Capturable, | |||||
"set": checked => { | |||||
g_GameAttributes.settings.Capturable = checked; | |||||
}, | |||||
"enabled":() => true, | |||||
"initOrder": 1000 | |||||
}, | |||||
"enableCheats": { | "enableCheats": { | ||||
"title": () => translate("Cheats"), | "title": () => translate("Cheats"), | ||||
"tooltip": () => translate("Toggle the usability of cheats."), | "tooltip": () => translate("Toggle the usability of cheats."), | ||||
"default": () => !g_IsNetworked, | "default": () => !g_IsNetworked, | ||||
"hidden": () => !g_IsNetworked, | "hidden": () => !g_IsNetworked, | ||||
"defined": () => g_GameAttributes.settings.CheatsEnabled !== undefined, | "defined": () => g_GameAttributes.settings.CheatsEnabled !== undefined, | ||||
"get": () => g_GameAttributes.settings.CheatsEnabled, | "get": () => g_GameAttributes.settings.CheatsEnabled, | ||||
"set": checked => { | "set": checked => { | ||||
▲ Show 20 Lines • Show All 1,797 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator