| 230 | void UIEdit::SetFont(int font) { m_FontHandle = font; } |
| 231 | |
| 232 | void UIEdit::Activate() { |
| 233 | if (UI_current_editbox) { |
| 234 | UI_current_editbox->Deactivate(); |
| 235 | } |
| 236 | |
| 237 | m_Wnd->HoldHotkeys(); |
| 238 | m_Active = true; |
| 239 | UI_current_editbox = this; |
| 240 | m_UpdateCount = false; |
| 241 | |
| 242 | // mprintf(0, "activating edit box\n"); |
| 243 | } |
| 244 | |
| 245 | // deactivates edit box (use if you know what you're doing.) |
| 246 | void UIEdit::Deactivate() { |
no test coverage detected