MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / OnButtonClicked

Method OnButtonClicked

engine/Poseidon/UI/Options/FlatMenuPage.cpp:12–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10{
11
12bool FlatMenuPage::OnButtonClicked(OptionsShell& shell, int idc)
13{
14 if (idc == CloseIdc() || idc == IDC_CANCEL)
15 {
16 shell.PopPage();
17 return true;
18 }
19 bool handled = OnNav(shell, idc);
20 if (handled && ContainsCycleIdc(idc, m_cycle, m_cycleSize))
21 m_lastNavIdc = idc;
22 return handled;
23}
24
25void FlatMenuPage::OnReshown(OptionsShell& shell)
26{

Callers

nothing calls this directly

Calls 1

PopPageMethod · 0.80

Tested by

no test coverage detected