| 19 | void CUICheckButton::SetDependControl(CUIWindow* pWnd) { m_pDependControl = pWnd; } |
| 20 | |
| 21 | void CUICheckButton::Update() |
| 22 | { |
| 23 | CUI3tButton::Update(); |
| 24 | |
| 25 | if (m_pDependControl) |
| 26 | m_pDependControl->Enable(GetCheck()); |
| 27 | } |
| 28 | |
| 29 | void CUICheckButton::SetCurrentValue() { SetCheck(GetOptBoolValue()); } |
| 30 |