| 161 | } |
| 162 | |
| 163 | ScriptConfirmOverlay::ScriptConfirmOverlay(Screen& screen, std::string text) |
| 164 | : ScriptTileOverlay(screen, ScriptRunner::get().scriptName()), mText(std::move(text)) |
| 165 | { |
| 166 | mConfirm = std::make_unique<Clickable>( |
| 167 | confirmLeftX(), buttonRowY(), confirmHalf(), BTN_H, COLOR_ACCENT, COLOR_WHITE, " " + i18n::t("hint.confirm"), true); |
| 168 | mCancel = std::make_unique<Clickable>( |
| 169 | confirmRightX(), buttonRowY(), confirmHalf(), BTN_H, COLOR_RAISED, COLOR_TEXT, " " + i18n::t("common.cancel"), true); |
| 170 | } |
| 171 | |
| 172 | void ScriptConfirmOverlay::drawBody(int bodyY) const |
| 173 | { |
nothing calls this directly
no test coverage detected