Changeset 1396 for GTP/trunk/App/Games/Jungle_Rumble/src
- Timestamp:
- 09/17/06 21:43:20 (18 years ago)
- Location:
- GTP/trunk/App/Games/Jungle_Rumble/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Games/Jungle_Rumble/src/MenueScene.cpp
r1395 r1396 196 196 void MenueScene::setupGUI() { 197 197 //diese funktion ist leider naotwendig da ich die größe noch nicht in initGUI festlegen kann da der manager da noch NULL ist... 198 199 int fontsize = 0;200 switch(this->manager->screenWidth) {201 case 640:198 199 #if(0) 200 int fontsize = 0; 201 if(manager->screenWidth <= 640) { 202 202 fontsize = 14; 203 break; 204 case 800: 203 } else if (manager->screenWidth <= 800) { 205 204 fontsize = 18; 206 break; 207 case 1024: 205 } else if (manager->screenWidth <= 1024) { 208 206 fontsize = 24; 209 break; 210 case 1200: 207 } else if (manager->screenWidth <= 1200) { 211 208 fontsize = 30; 212 break; 213 case 1600: 209 } else if (manager->screenWidth <= 1600) { 214 210 fontsize = 36; 215 break; 216 case 1900: 211 } else { 217 212 fontsize = 42; 218 break; 219 default: 220 fontsize = 24; 221 break; 222 } 223 this->GUI->SetFont( 1, L"Arial", fontsize, FW_BOLD ); 213 } 214 #elif(1) // MG 215 int fontsize = 21.0 * (manager->screenWidth / 1024.0); 216 #endif 217 218 //this->GUI->SetFont( 1, L"Arial", fontsize, FW_BOLD ); 219 this->GUI->SetFont( 1, L"Verdana", fontsize, FW_BOLD ); 220 //this->GUI->SetFont( 1, L"Tahoma", fontsize, FW_BOLD ); 224 221 225 222 // Buttons -
GTP/trunk/App/Games/Jungle_Rumble/src/Scene.cpp
r1378 r1396 96 96 //Create Texture 97 97 V( DXUTGetD3DDevice()->CreateTexture(this->manager->screenWidth, this->manager->screenHeight, 1, D3DUSAGE_RENDERTARGET, 98 //V( DXUTGetD3DDevice()->CreateTexture(this->manager->screenWidth, this->manager->screenHeight+1, 1, D3DUSAGE_RENDERTARGET, 98 99 D3DFMT_A16B16G16R16F, D3DPOOL_DEFAULT, &this->finalImage, NULL ) ); 99 100
Note: See TracChangeset
for help on using the changeset viewer.