overridable: called in Destroy
| 1033 | |
| 1034 | // overridable: called in Destroy |
| 1035 | void 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 |
nothing calls this directly
no test coverage detected