overridable draws the window background before gadgets
| 1016 | |
| 1017 | // overridable draws the window background before gadgets |
| 1018 | void newuiMenu::OnDraw() { |
| 1019 | // draw background |
| 1020 | m_bkg->draw(0, 0); |
| 1021 | |
| 1022 | // draw title |
| 1023 | if (m_cursheetidx != -1 && m_hassheet[m_cursheetidx]) { |
| 1024 | UITextItem *title = m_sheetbtn[m_cursheetidx].GetTitle(); |
| 1025 | UITextItem m_texttitle(MONITOR15_NEWUI_FONT, title->GetBuffer(), NEWUI_MONITORFONT_COLOR); |
| 1026 | |
| 1027 | m_texttitle.draw(m_titlex - 8 + (NEWUI_MEDWIN_TITLE_W - m_texttitle.width()) / 2, m_titley); |
| 1028 | } |
| 1029 | |
| 1030 | // draws gadgets. |
| 1031 | UIWindow::OnDraw(); |
| 1032 | } |
| 1033 | |
| 1034 | // overridable: called in Destroy |
| 1035 | void newuiMenu::OnDestroy() { |
nothing calls this directly
no test coverage detected