fix(color): use TIMERS value instead of assuming always 3 (#5391)
This commit is contained in:
@@ -205,12 +205,9 @@ void StatisticsViewPage::build(Window* window)
|
|||||||
|
|
||||||
// Timers
|
// Timers
|
||||||
new StaticText(line, rect_t{}, STR_TIMER_LABEL);
|
new StaticText(line, rect_t{}, STR_TIMER_LABEL);
|
||||||
new DynamicText(
|
for (int i = 0; i < TIMERS; i += 1)
|
||||||
line, rect_t{}, [] { return getTimerString(timersStates[0].val); });
|
new DynamicText(
|
||||||
new DynamicText(
|
line, rect_t{}, [=] { return getTimerString(timersStates[i].val); });
|
||||||
line, rect_t{}, [] { return getTimerString(timersStates[1].val); });
|
|
||||||
new DynamicText(
|
|
||||||
line, rect_t{}, [] { return getTimerString(timersStates[2].val); });
|
|
||||||
|
|
||||||
line = window->newLine(grid);
|
line = window->newLine(grid);
|
||||||
line->padAll(PAD_ZERO);
|
line->padAll(PAD_ZERO);
|
||||||
|
|||||||
Reference in New Issue
Block a user