| 111 | /* ---- gui_message -------------------------------------------------------- */ |
| 112 | |
| 113 | ScriptMessageOverlay::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 | |
| 121 | void ScriptMessageOverlay::drawBody(int bodyY) const |
| 122 | { |
nothing calls this directly
no test coverage detected