## Summary * Give activities name and log when entering and exiting them * Clearer logs when attempting to debug, knowing where users are coming from/going to helps
17 lines
420 B
C++
17 lines
420 B
C++
#include "FullScreenMessageActivity.h"
|
|
|
|
#include <GfxRenderer.h>
|
|
|
|
#include "config.h"
|
|
|
|
void FullScreenMessageActivity::onEnter() {
|
|
Activity::onEnter();
|
|
|
|
const auto height = renderer.getLineHeight(UI_FONT_ID);
|
|
const auto top = (GfxRenderer::getScreenHeight() - height) / 2;
|
|
|
|
renderer.clearScreen();
|
|
renderer.drawCenteredText(UI_FONT_ID, top, text.c_str(), true, style);
|
|
renderer.displayBuffer(refreshMode);
|
|
}
|