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

Method ScriptConfirmOverlay

3ds/source/ScriptRequestOverlays.cpp:163–170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

161}
162
163ScriptConfirmOverlay::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
172void ScriptConfirmOverlay::drawBody(int bodyY) const
173{

Callers

nothing calls this directly

Calls 5

getFunction · 0.85
confirmLeftXFunction · 0.85
buttonRowYFunction · 0.85
confirmHalfFunction · 0.85
confirmRightXFunction · 0.85

Tested by

no test coverage detected