Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/summary/layout.js
Show First 20 Lines • Show All 204 Lines • ▼ Show 20 Lines | "counters": [ | ||||
{ "width": 100, "fn": calculateMapExploration, "verticalOffset": 12 }, | { "width": 100, "fn": calculateMapExploration, "verticalOffset": 12 }, | ||||
{ "width": 100, "fn": calculateMapPeakControl, "verticalOffset": 12 }, | { "width": 100, "fn": calculateMapPeakControl, "verticalOffset": 12 }, | ||||
{ "width": 100, "fn": calculateMapFinalControl, "verticalOffset": 12 } | { "width": 100, "fn": calculateMapFinalControl, "verticalOffset": 12 } | ||||
], | ], | ||||
"teamCounterFn": calculateMiscellaneousTeam | "teamCounterFn": calculateMiscellaneousTeam | ||||
} | } | ||||
}; | }; | ||||
/* | |||||
* Array of the panel button names. | |||||
*/ | |||||
var g_PanelButtons = Object.keys(g_ScorePanelsData).concat(["charts"]).map(k => k + "PanelButton"); | |||||
ffffffff: cant use push when afterwards wanna use another function on return cause push doesnt return an… | |||||
bbUnsubmitted Not Done Inline Actionsk => key (or panel) bb: `k` => `key` (or `panel`) | |||||
/* | |||||
* Remember the name of the currently opened view panel. | |||||
*/ | |||||
var g_SelectedPanel = g_PanelButtons[0]; | |||||
Not Done Inline Actionsg_SelectedPanel IMO elexis: g_SelectedPanel IMO | |||||
function getColoredTypeTranslation(type) | function getColoredTypeTranslation(type) | ||||
{ | { | ||||
return g_SummaryTypes[type].color ? '[color="' + g_SummaryTypes[type].color + '"]' + g_SummaryTypes[type].caption + '[/color]' : g_SummaryTypes[type].caption; | return g_SummaryTypes[type].color ? '[color="' + g_SummaryTypes[type].color + '"]' + g_SummaryTypes[type].caption + '[/color]' : g_SummaryTypes[type].caption; | ||||
} | } | ||||
function resetGeneralPanel() | function resetGeneralPanel() | ||||
{ | { | ||||
for (let h = 0; h < g_MaxHeadingTitle; ++h) | for (let h = 0; h < g_MaxHeadingTitle; ++h) | ||||
▲ Show 20 Lines • Show All 158 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator
cant use push when afterwards wanna use another function on return cause push doesnt return an array. can concat stay?