| 48 | } |
| 49 | |
| 50 | bool CUI3tButton::OnMouseDown(int mouse_btn) |
| 51 | { |
| 52 | if (m_bCheckMode) |
| 53 | { |
| 54 | if (mouse_btn == MOUSE_1) |
| 55 | { |
| 56 | if (m_eButtonState == BUTTON_NORMAL) |
| 57 | m_eButtonState = BUTTON_PUSHED; |
| 58 | else |
| 59 | m_eButtonState = BUTTON_NORMAL; |
| 60 | } |
| 61 | GetMessageTarget()->SendMessage(this, BUTTON_CLICKED, NULL); |
| 62 | return true; |
| 63 | } |
| 64 | else |
| 65 | return CUIButton::OnMouseDown(mouse_btn); |
| 66 | } |
| 67 | |
| 68 | void CUI3tButton::OnFocusLost() |
| 69 | { |
nothing calls this directly
no test coverage detected