Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/summary/layout.js
Show First 20 Lines • Show All 188 Lines • ▼ Show 20 Lines | var getScorePanelsData = () => [ | ||||
"teamCounterFn": calculateMarketTeam | "teamCounterFn": calculateMarketTeam | ||||
}, | }, | ||||
{ | { | ||||
"label": translate("Miscellaneous"), | "label": translate("Miscellaneous"), | ||||
"headings": [ | "headings": [ | ||||
{ "identifier": "playername", "caption": translate("Player name"), "yStart": 26, "width": 200 }, | { "identifier": "playername", "caption": translate("Player name"), "yStart": 26, "width": 200 }, | ||||
{ "identifier": "killDeath", "caption": translate("Kill / Death ratio"), "yStart": 16, "width": 100, "format": "DECIMAL2" }, | { "identifier": "killDeath", "caption": translate("Kill / Death ratio"), "yStart": 16, "width": 100, "format": "DECIMAL2" }, | ||||
{ "identifier": "population", "caption": translate("Population"), "yStart": 16, "width": 100, "hideInSummary": true }, | { "identifier": "population", "caption": translate("Population"), "yStart": 16, "width": 100, "hideInSummary": true }, | ||||
{ "identifier": "idleTime", "caption": translate("Idle time"), "yStart": 16, "width": 100, "hideInSummary": true, "format": "DURATION_SHORT"}, | |||||
{ "identifier": "mapControlPeak", "caption": translate("Map control (peak)"), "yStart": 16, "width": 100, "format": "PERCENTAGE" }, | { "identifier": "mapControlPeak", "caption": translate("Map control (peak)"), "yStart": 16, "width": 100, "format": "PERCENTAGE" }, | ||||
{ "identifier": "mapControl", "caption": translate("Map control (finish)"), "yStart": 16, "width": 100, "format": "PERCENTAGE" }, | { "identifier": "mapControl", "caption": translate("Map control (finish)"), "yStart": 16, "width": 100, "format": "PERCENTAGE" }, | ||||
{ "identifier": "mapExploration", "caption": translate("Map exploration"), "yStart": 16, "width": 100, "format": "PERCENTAGE" }, | { "identifier": "mapExploration", "caption": translate("Map exploration"), "yStart": 16, "width": 100, "format": "PERCENTAGE" }, | ||||
{ "identifier": "vegetarianRatio", "caption": translate("Vegetarian ratio"), "yStart": 16, "width": 100, "format": "PERCENTAGE" }, | { "identifier": "vegetarianRatio", "caption": translate("Vegetarian ratio"), "yStart": 16, "width": 100, "format": "PERCENTAGE" }, | ||||
{ "identifier": "feminization", "caption": translate("Feminization"), "yStart": 16, "width": 100, "format": "PERCENTAGE" }, | { "identifier": "feminization", "caption": translate("Feminization"), "yStart": 16, "width": 100, "format": "PERCENTAGE" }, | ||||
{ | { | ||||
"identifier": "bribes", | "identifier": "bribes", | ||||
"caption": translate("Bribes"), | "caption": translate("Bribes"), | ||||
"headerCaption": sprintf(translate("Bribes\n(%(succeeded)s / %(failed)s)"), | "headerCaption": sprintf(translate("Bribes\n(%(succeeded)s / %(failed)s)"), | ||||
{ | { | ||||
"succeeded": getColoredTypeTranslation("succeeded"), | "succeeded": getColoredTypeTranslation("succeeded"), | ||||
"failed": getColoredTypeTranslation("failed") | "failed": getColoredTypeTranslation("failed") | ||||
}), | }), | ||||
"yStart": 16, | "yStart": 16, | ||||
"width": 139 | "width": 139 | ||||
} | } | ||||
], | ], | ||||
"titleHeadings": [], | "titleHeadings": [], | ||||
"counters": [ | "counters": [ | ||||
{ "width": 100, "fn": calculateKillDeathRatio, "verticalOffset": 12 }, | { "width": 100, "fn": calculateKillDeathRatio, "verticalOffset": 12 }, | ||||
{ "width": 100, "fn": calculatePopulationCount, "verticalOffset": 12, "hideInSummary": true }, | { "width": 100, "fn": calculatePopulationCount, "verticalOffset": 12, "hideInSummary": true }, | ||||
{ "width": 100, "fn": calculateIdleTime, "verticalOffset": 12, "hideInSummary": true }, | |||||
{ "width": 100, "fn": calculateMapPeakControl, "verticalOffset": 12 }, | { "width": 100, "fn": calculateMapPeakControl, "verticalOffset": 12 }, | ||||
{ "width": 100, "fn": calculateMapFinalControl, "verticalOffset": 12 }, | { "width": 100, "fn": calculateMapFinalControl, "verticalOffset": 12 }, | ||||
{ "width": 100, "fn": calculateMapExploration, "verticalOffset": 12 }, | { "width": 100, "fn": calculateMapExploration, "verticalOffset": 12 }, | ||||
{ "width": 100, "fn": calculateVegetarianRatio, "verticalOffset": 12 }, | { "width": 100, "fn": calculateVegetarianRatio, "verticalOffset": 12 }, | ||||
{ "width": 100, "fn": calculateFeminization, "verticalOffset": 12 }, | { "width": 100, "fn": calculateFeminization, "verticalOffset": 12 }, | ||||
{ "width": 139, "fn": calculateBribes, "verticalOffset": 12 } | { "width": 139, "fn": calculateBribes, "verticalOffset": 12 } | ||||
], | ], | ||||
"teamCounterFn": calculateMiscellaneousTeam | "teamCounterFn": calculateMiscellaneousTeam | ||||
▲ Show 20 Lines • Show All 180 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator