MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / OnDestroy

Method OnDestroy

Descent3/newui_core.cpp:1035–1056  ·  view source on GitHub ↗

overridable: called in Destroy

Source from the content-addressed store, hash-verified

1033
1034// overridable: called in Destroy
1035void newuiMenu::OnDestroy() {
1036 int i;
1037
1038 if (m_bkg) {
1039 Newui_resources.Free(m_bkg);
1040 m_bkg = NULL;
1041 }
1042
1043 for (i = 0; i < m_nsheets; i++) {
1044 if (m_hassheet[i]) {
1045 m_sheets[i].Destroy();
1046 m_sheetbtn[i].Destroy();
1047 m_hassheet[i] = false;
1048 }
1049 }
1050
1051 m_nsheets = 0;
1052
1053 SetUICallback(m_uiframe_cb);
1054
1055 UIWindow::OnDestroy();
1056}
1057
1058//////////////////////////////////////////////////////////////////////////////
1059// CLASS, large (fullscreen) menu

Callers

nothing calls this directly

Calls 4

SetUICallbackFunction · 0.85
FreeMethod · 0.80
IsCreatedMethod · 0.80
DestroyMethod · 0.45

Tested by

no test coverage detected