void CExternalUILobby::Draw() { /*D3DXMATRIX mat; float fScaleWidth = (float)(g_GameDATA.m_nScrWidth / 1024.); float fScaleHeight = (float)(g_GameDATA.m_nScrHeight / 768.); D3DXMatrixScaling( &mat, fScaleWidth, fScaleHeight, 0.0f ); HNODE hBG = CGame::GetInstance().GetExUIBackGround(); ::setTransformSprite( mat ); ::drawSprite( hBG, NULL, NULL, &D3DXVECTOR3( 0, 0, 0 ), D3DCOLOR_RGBA( 255, 255, 255, 255 ) );*/ if ( !g_GameDATA.m_bNoUI ) { m_pCurrDialog->Draw(); DrawMsgBox(); } POINT ptMouse; CGame::GetInstance().Get_MousePos( ptMouse ); CCursor::GetInstance().Draw( ptMouse ); }
//************************************************************************************************ // MsgBox() //************************************************************************************************ bool cMenu::MsgBox(int rc_fd, char* header, char* question) { DrawMsgBox(header, question); int rccode = 0; while((rccode != RC_OK) && (rccode != RC_HOME)) { cMenu::GetRCCode(rc_fd, rccode); } ClearOSD(); if ( rccode == RC_OK ) return true; return false; }