MCPcopy Create free account
hub / github.com/OpenApoc/OpenApoc / begin

Method begin

game/ui/general/notificationscreen.cpp:48–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46NotificationScreen::~NotificationScreen() = default;
47
48void NotificationScreen::begin()
49{
50 menuform->findControl("BUTTON_RESUME")->addCallback(FormEventType::ButtonClick, [](Event *) {
51 fw().stageQueueCommand({StageCmd::Command::POP});
52 });
53
54 menuform->findControlTyped<CheckBox>("CHECKBOX_ALWAYS_PAUSE")->setChecked(true);
55}
56
57void NotificationScreen::pause() {}
58

Callers

nothing calls this directly

Calls 4

addCallbackMethod · 0.80
findControlMethod · 0.80
stageQueueCommandMethod · 0.80
setCheckedMethod · 0.45

Tested by

no test coverage detected