void CCollectedAchievements::Enter() { CBaseMenuState::Enter(); SetBGImageID(GetAssets()->aAchievementBGID); SetBGHeight(GetTM()->GetTextureHeight(GetAssets()->aAchievementBGID)); SetBGWidth(GetTM()->GetTextureWidth(GetAssets()->aAchievementBGID)); //CenterBGImage(); GetFMOD()->PlaySound(GetAssets()->aMinimalKesoID); GetFMOD()->SetVolume(GetAssets()->aMinimalKesoID , GetGame()->GetMusicVolume()); }
void ColCylinder::DrawBounds() { DWORD geomColor = PhysicsServer::s_pInstance->GetGeomColor(); DWORD linesColor = PhysicsServer::s_pInstance->GetGeomLinesColor(); Mat4 tm = GetTM(); g_pDrawServer->SetWorldTM( tm ); float hf = m_Height*0.5f; g_pDrawServer->SetZEnable( true ); g_pDrawServer->DrawCylinder( Vec3( 0.0f, 0.0f, -hf ), m_Radius, m_Height, linesColor, geomColor, true ); g_pDrawServer->SetZEnable( false ); g_pDrawServer->Flush(); } // ColCylinder::DrawBounds
void ColCapsule::DrawBounds() { DWORD geomColor = PhysicsServer::s_pInstance->GetGeomColor(); DWORD linesColor = PhysicsServer::s_pInstance->GetGeomLinesColor(); Mat4 tm = GetTM(); g_pDrawServer->SetWorldTM( tm ); float height = m_Height - m_Radius*2.0f; float hf = height*0.5f; g_pDrawServer->SetZEnable( true ); g_pDrawServer->DrawCylinder( Vec3( 0.0f, 0.0f, -hf ), m_Radius, height, linesColor, geomColor, false ); g_pDrawServer->DrawSpherePart( Vec3( 0.0f, 0.0f, -hf ), m_Radius, 0.0f, 360.0f, 90.0f, 90.0f, linesColor, geomColor ); g_pDrawServer->DrawSpherePart( Vec3( 0.0f, 0.0f, hf ), m_Radius, 0.0f, 360.0f, 0.0f, 90.0f, linesColor, geomColor ); g_pDrawServer->SetZEnable( false ); g_pDrawServer->Flush(); } // ColCapsule::DrawBounds
void CAnalysisHowPage::GetAnalysisFromInterface(CAnalysis& analysis) { CAnalysisComputation& computation = analysis.GetComputation(); computation.m_bSelectTimeTransformation = m_selectCtrl.GetCheck(); computation.m_previousStatisticType = m_previousStatisticCtrl.GetCurSel() - 1; //computation.m_bSelectFinalComputation = !m_selectCtrl.GetCheck(); computation.m_TM = GetTM(); computation.m_kind = GetComputationKind(); computation.m_statisticType2 = m_statisticTypeCtrl.GetCurSel() - 1; computation.m_eventType = m_eventTypeCtrl.GetCurSel(); computation.m_K = ToFloat(m_KCtrl.GetString()); computation.m_bDropYear = m_bDropYearCtrl.GetCheck(); computation.m_bMeanOverReplication = m_meanOverReplicationCtrl.GetCheck(); computation.m_bMeanOverParameterSet = m_meanOverParameterSetCtrl.GetCheck(); computation.m_bMeanOverLocation = m_meanOverLocationCtrl.GetCheck(); }
void CCollectedAchievements::Render() { //draw each of the achievements //write description next to each GetTM()->DrawWithZSort(GetAssets()->aAchievementBGID, 0,0,0.1f, 0.8f,0.8f, NULL, 0.0f, 0.0f, 0.0f, D3DCOLOR_XRGB(80,80,80)); GetTM()->Draw(GetAssets()->aAvenged, 10,0, 0.8f,0.8f, &m_rRect, 0.0f,0.0f,0.0f, D3DCOLOR_ARGB(m_nAlpha[7], 255,255,255)); GetBitmapFont()->DrawString("KILLED THE SHREDDER", 390, 10,0.05f, 0.6f,D3DCOLOR_ARGB(255,0,255,0)); GetBitmapFont()->DrawString("KILLED THE SHREDDER", 392, 12,0.051f, 0.6f,D3DCOLOR_ARGB(255,255,0,0)); GetTM()->Draw(GetAssets()->aBreakGame, 10,70, 0.8f,0.8f, &m_rRect, 0.0f,0.0f,0.0f, D3DCOLOR_ARGB(m_nAlpha[3], 255,255,255)); GetBitmapFont()->DrawString("ALL ACHIEVEMENTS UNLOCKED", 390, 80, 0.05f, 0.6f,D3DCOLOR_ARGB(255,0,255,0)); GetBitmapFont()->DrawString("ALL ACHIEVEMENTS UNLOCKED", 392, 82, 0.051f, 0.6f,D3DCOLOR_ARGB(255,255,0,0)); GetTM()->Draw(GetAssets()->aCowabunga, 10,150, 0.8f,0.8f, &m_rRect, 0.0f,0.0f,0.0f, D3DCOLOR_ARGB(m_nAlpha[1], 255,255,255)); GetBitmapFont()->DrawString("LEVEL UP", 390, 160,0.05f, 0.6f,D3DCOLOR_ARGB(255,0,255,0)); GetBitmapFont()->DrawString("LEVEL UP", 392, 162,0.051f, 0.6f,D3DCOLOR_ARGB(255,255,0,0)); GetTM()->Draw(GetAssets()->aFlipNow, 10,230, 0.8f,0.8f, &m_rRect, 0.0f,0.0f,0.0f, D3DCOLOR_ARGB(m_nAlpha[2], 255,255,255)); GetBitmapFont()->DrawString("ALL TURTLES DEAD", 390, 240,0.05f, 0.6f,D3DCOLOR_ARGB(255,0,255,0)); GetBitmapFont()->DrawString("ALL TURTLES DEAD", 392, 242,0.051f, 0.6f,D3DCOLOR_ARGB(255,255,0,0)); GetTM()->Draw(GetAssets()->aLessonInPain, 10,310, 0.8f,0.8f, &m_rRect, 0.0f,0.0f,0.0f, D3DCOLOR_ARGB(m_nAlpha[5], 255,255,255)); GetBitmapFont()->DrawString("KILL 30 ENEMIES", 390, 320,0.05f, 0.6f,D3DCOLOR_ARGB(255,0,255,0)); GetBitmapFont()->DrawString("KILL 30 ENEMIES", 392, 322,0.051f, 0.6f,D3DCOLOR_ARGB(255,255,0,0)); GetTM()->Draw(GetAssets()->aMegaKill, 10,390, 0.8f,0.8f, &m_rRect, 0.0f,0.0f,0.0f, D3DCOLOR_ARGB(m_nAlpha[6], 255,255,255)); GetBitmapFont()->DrawString("1 TURTLE KILLS 3 NINJAS", 400, 390,0.05f, 0.6f,D3DCOLOR_ARGB(255,0,255,0)); GetBitmapFont()->DrawString("1 TURTLE KILLS 3 NINJAS", 402, 392,0.051f, 0.6f,D3DCOLOR_ARGB(255,255,0,0)); GetTM()->Draw(GetAssets()->aPartyTime, 10,470, 0.8f,0.8f, &m_rRect, 0.0f,0.0f,0.0f, D3DCOLOR_ARGB(m_nAlpha[0], 255,255,255)); GetBitmapFont()->DrawString("START NEW GAME", 390, 480,0.05f, 0.6f,D3DCOLOR_ARGB(255,0,255,0)); GetBitmapFont()->DrawString("START NEW GAME", 392, 482,0.051f, 0.6f,D3DCOLOR_ARGB(255,255,0,0)); GetTM()->Draw(GetAssets()->aQuickFingers, 10,550, 0.8f,0.8f, &m_rRect, 0.0f,0.0f,0.0f, D3DCOLOR_ARGB(m_nAlpha[9], 255,255,255)); GetBitmapFont()->DrawString("100 PERCENT ON QTE", 390, 560,0.05f, 0.6f,D3DCOLOR_ARGB(255,0,255,0)); GetBitmapFont()->DrawString("100 PERCENT ON QTE", 392, 562,0.051f, 0.6f,D3DCOLOR_ARGB(255,255,0,0)); GetTM()->Draw(GetAssets()->aStrikeHard, 10,630, 0.8f,0.8f, &m_rRect, 0.0f,0.0f,0.0f, D3DCOLOR_ARGB(m_nAlpha[4], 255,255,255)); GetBitmapFont()->DrawString("FIRST MAP COMPLETE", 390, 640,0.05f, 0.6f,D3DCOLOR_ARGB(255,0,255,0)); GetBitmapFont()->DrawString("FIRST MAP COMPLETE", 392, 642,0.051f, 0.6f,D3DCOLOR_ARGB(255,255,0,0)); GetTM()->Draw(GetAssets()->aTrueNinja, 10,710, 0.8f,0.8f, &m_rRect, 0.0f,0.0f,0.0f, D3DCOLOR_ARGB(m_nAlpha[8], 255,255,255)); GetBitmapFont()->DrawString("UNLOCK ALL SKILLS", 390, 720,0.05f, 0.6f,D3DCOLOR_ARGB(255,0,255,0)); GetBitmapFont()->DrawString("UNLOCK ALL SKILLS", 392, 722,0.051f, 0.6f,D3DCOLOR_ARGB(255,255,0,0)); GetBitmapFont()->DrawString("ESC OR CLICK", 825, 700, 0.05f, 0.4f, D3DCOLOR_ARGB(255,0,255,0)); GetBitmapFont()->DrawString("TO GO BACK", 840, 735, 0.05f, 0.4f, D3DCOLOR_ARGB(255,0,255,0)); }