MCPcopy Create free account
hub / github.com/BernardoGiordano/Checkpoint / ScriptMessageOverlay

Method ScriptMessageOverlay

3ds/source/ScriptRequestOverlays.cpp:113–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111/* ---- gui_message -------------------------------------------------------- */
112
113ScriptMessageOverlay::ScriptMessageOverlay(Screen& screen, std::string text)
114 : ScriptTileOverlay(screen, ScriptRunner::get().scriptName()), mText(std::move(text))
115{
116 mButton = std::make_unique<Clickable>(
117 ScriptTile::UI_X + ScriptTile::PAD, buttonRowY(), ScriptTile::UI_W - 2 * ScriptTile::PAD, BTN_H, COLOR_ACCENT, COLOR_WHITE, " OK", true);
118 mButton->selected(true);
119}
120
121void ScriptMessageOverlay::drawBody(int bodyY) const
122{

Callers

nothing calls this directly

Calls 3

getFunction · 0.85
buttonRowYFunction · 0.85
selectedMethod · 0.80

Tested by

no test coverage detected