Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/binaries/data/mods/public/gui/summary/layout.js
Show First 20 Lines • Show All 75 Lines • ▼ Show 20 Lines | "headings": [ | ||||
{ "identifier": "Champion", "caption": translate("Champion"), "yStart": 34, "width": 85 }, | { "identifier": "Champion", "caption": translate("Champion"), "yStart": 34, "width": 85 }, | ||||
{ "identifier": "Hero", "caption": translate("Heroes"), "yStart": 34, "width": 85 }, | { "identifier": "Hero", "caption": translate("Heroes"), "yStart": 34, "width": 85 }, | ||||
{ "identifier": "Siege", "caption": translate("Siege"), "yStart": 34, "width": 85 }, | { "identifier": "Siege", "caption": translate("Siege"), "yStart": 34, "width": 85 }, | ||||
{ "identifier": "Ship", "caption": translate("Navy"), "yStart": 34, "width": 85 }, | { "identifier": "Ship", "caption": translate("Navy"), "yStart": 34, "width": 85 }, | ||||
{ "identifier": "Trader", "caption": translate("Traders"), "yStart": 34, "width": 85 } | { "identifier": "Trader", "caption": translate("Traders"), "yStart": 34, "width": 85 } | ||||
], | ], | ||||
"titleHeadings": [ | "titleHeadings": [ | ||||
{ | { | ||||
"caption": sprintf(translate("Unit Statistics (%(trained)s / %(killed)s / %(captured)s / %(lost)s)"), | "caption": sprintf(translate("Unit Statistics (%(trained)s / %(killed)s / %(lost)s)"), | ||||
{ | { | ||||
"trained": getColoredTypeTranslation("trained"), | "trained": getColoredTypeTranslation("trained"), | ||||
"killed": getColoredTypeTranslation("killed"), | "killed": getColoredTypeTranslation("killed"), | ||||
"captured": getColoredTypeTranslation("captured"), | |||||
"lost": getColoredTypeTranslation("lost") | "lost": getColoredTypeTranslation("lost") | ||||
}), | }), | ||||
"yStart": 16, | "yStart": 16, | ||||
"width": 85 * 8 + 105 | "width": 85 * 8 + 105 | ||||
}, // width = 785 | }, // width = 785 | ||||
], | ], | ||||
"counters": [ | "counters": [ | ||||
{ "width": 105, "fn": calculateUnitsWithCaptured, "verticalOffset": 3 }, | { "width": 105, "fn": calculateUnits, "verticalOffset": 3 }, | ||||
{ "width": 85, "fn": calculateUnits, "verticalOffset": 3 }, | |||||
{ "width": 85, "fn": calculateUnits, "verticalOffset": 3 }, | { "width": 85, "fn": calculateUnits, "verticalOffset": 3 }, | ||||
{ "width": 85, "fn": calculateUnits, "verticalOffset": 3 }, | { "width": 85, "fn": calculateUnits, "verticalOffset": 3 }, | ||||
{ "width": 85, "fn": calculateUnits, "verticalOffset": 3 }, | { "width": 85, "fn": calculateUnits, "verticalOffset": 3 }, | ||||
{ "width": 85, "fn": calculateUnits, "verticalOffset": 3 }, | { "width": 85, "fn": calculateUnits, "verticalOffset": 3 }, | ||||
{ "width": 85, "fn": calculateUnits, "verticalOffset": 3 }, | { "width": 85, "fn": calculateUnits, "verticalOffset": 3 }, | ||||
{ "width": 85, "fn": calculateUnitsWithCaptured, "verticalOffset": 3 }, | |||||
{ "width": 85, "fn": calculateUnits, "verticalOffset": 3 }, | { "width": 85, "fn": calculateUnits, "verticalOffset": 3 }, | ||||
{ "width": 85, "fn": calculateUnits, "verticalOffset": 3 } | { "width": 85, "fn": calculateUnits, "verticalOffset": 3 } | ||||
], | ], | ||||
"teamCounterFn": calculateUnitsTeam | "teamCounterFn": calculateUnitsTeam | ||||
}, | }, | ||||
{ | { | ||||
"label": translate("Resources"), | "label": translate("Resources"), | ||||
"headings": [ | "headings": [ | ||||
▲ Show 20 Lines • Show All 295 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator