Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/summary/layout.js
Context not available. | |||||
} | } | ||||
}; | }; | ||||
/* | |||||
* Array of the panel buttons. | |||||
*/ | |||||
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… | |||||
Not Done Inline Actionsk => key (or panel) bb: `k` => `key` (or `panel`) | |||||
/* | |||||
* Remember the name of the currently opened view panel. | |||||
*/ | |||||
var g_ViewPanel = 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; | ||||
Context not available. |
Wildfire Games · Phabricator
cant use push when afterwards wanna use another function on return cause push doesnt return an array. can concat stay?