LTBOOL CScreenDisplay::OnRight() { if (!CBaseScreen::OnRight()) return LTFALSE; CLTGUICtrl* pCtrl = GetSelectedControl(); if (pCtrl == m_pHardwareCursor) { m_pHardwareCursor->UpdateData(LTTRUE); if (m_bHardwareCursor) { MBCreate mb; mb.eType = LTMB_YESNO; mb.pFn = AreYouSureCallBack; mb.pData = this; g_pInterfaceMgr->ShowMessageBox(IDS_CONFIRM_CURSOR,&mb,0,LTFALSE); } else { g_pCursorMgr->UseHardwareCursor(LTFALSE); WriteConsoleInt("HardwareCursor",0); } } if (pCtrl == m_pGamma) { pCtrl->UpdateData(); float fGamma = ConvertToGamma(m_nGamma); WriteConsoleFloat("GammaR",fGamma); WriteConsoleFloat("GammaG",fGamma); WriteConsoleFloat("GammaB",fGamma); } return LTTRUE; }
bool CScreenDisplay::OnRight() { if (!CBaseScreen::OnRight()) return false; CLTGUICtrl* pCtrl = GetSelectedControl(); if (pCtrl == m_pGamma) { pCtrl->UpdateData(); float fGamma = ConvertToGamma(m_nGamma); WriteConsoleFloat("GammaR",fGamma); WriteConsoleFloat("GammaG",fGamma); WriteConsoleFloat("GammaB",fGamma); } return true; }
bool CScreenDisplay::OnRButtonUp(int x, int y) { uint16 nControlIndex=0; if (GetControlUnderPoint(x, y, &nControlIndex)) { CLTGUICtrl* pCtrl = GetControl(nControlIndex); if (pCtrl == m_pGamma) { if (!pCtrl->OnRButtonUp(x,y)) return false; pCtrl->UpdateData(); float fGamma = ConvertToGamma(m_nGamma); WriteConsoleFloat("GammaR",fGamma); WriteConsoleFloat("GammaG",fGamma); WriteConsoleFloat("GammaB",fGamma); return true; } } return CBaseScreen::OnRButtonUp(x, y); }
LTBOOL CScreenDisplay::OnRButtonUp(int x, int y) { uint16 nControlIndex=0; if (GetControlUnderPoint(x, y, &nControlIndex)) { CLTGUICtrl* pCtrl = GetControl(nControlIndex); if (pCtrl == m_pHardwareCursor) { return OnLeft(); } if (pCtrl == m_pGamma) { if (!pCtrl->OnRButtonUp(x,y)) return LTFALSE; pCtrl->UpdateData(); float fGamma = ConvertToGamma(m_nGamma); WriteConsoleFloat("GammaR",fGamma); WriteConsoleFloat("GammaG",fGamma); WriteConsoleFloat("GammaB",fGamma); return LTTRUE; } } return CBaseScreen::OnRButtonUp(x, y); }