| 121 | } |
| 122 | |
| 123 | void UIStatic::OnDraw() { |
| 124 | if (m_Flags & UIF_BORDER) |
| 125 | ui_DrawBox(GR_WHITE, 0, 0, m_W, m_H); |
| 126 | |
| 127 | if (m_Background) |
| 128 | m_Background->draw(0, 0, m_W, m_H); |
| 129 | if (m_Title) { |
| 130 | // int y = (m_H/2 - m_Title->height()/2); |
| 131 | // int x = (m_W/2 - m_Title->width()/2); |
| 132 | m_Title->draw(0, 0); |
| 133 | } |
| 134 | } |
| 135 | |
| 136 | void UIStatic::OnFormat() { |
| 137 | if (m_Flags & UIF_FIT) { |
nothing calls this directly
no test coverage detected