Changeset 1395


Ignore:
Timestamp:
09/17/06 20:32:17 (18 years ago)
Author:
giegl
Message:

GTPD - Jungle Rumble - Fontsize fix 1 (Michael)

Location:
GTP/trunk/App/Games/Jungle_Rumble
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Games/Jungle_Rumble/bin/config.xml

    r1386 r1395  
    11<?xml version="1.0"?> 
    22<config> 
    3         <width>800</width> 
    4         <height>600</height> 
     3        <width>512</width> 
     4        <height>480</height> 
    55        <fullscreen>0</fullscreen> <!-- 1 = TRUE, 0 = FALSE --> 
    66        <cubemapsize>512</cubemapsize> <!-- 512, 1024, 2048, ... - current ATI cards have problems with size above 512 --> 
  • GTP/trunk/App/Games/Jungle_Rumble/src/MenueScene.cpp

    r1378 r1395  
    5151        Textures[0]->GetLevelDesc(0, &desc);    //get texture size               
    5252        //calculate transfomation: 
    53         D3DXVECTOR2 scaling((float)this->manager->screenWidth/desc.Width,(float)this->manager->screenHeight/desc.Height); 
     53        D3DXVECTOR2 scaling((float)((float)this->manager->screenWidth/(float)desc.Width),(float)((float)this->manager->screenHeight/(float)desc.Height)); 
    5454        //set matrix: 
    5555        D3DXMatrixTransformation2D(&spriteMatrix,NULL,0.0,&scaling,NULL,0,NULL); 
     
    6363        this->LoadingTextures[index]->GetLevelDesc(0, &desc);   //get texture size               
    6464        //calculate transfomation: 
    65         D3DXVECTOR2 scaling((float)this->manager->screenWidth/desc.Width,(float)this->manager->screenHeight/desc.Height); 
     65        D3DXVECTOR2 scaling((float)((float)this->manager->screenWidth/(float)desc.Width),(float)((float)this->manager->screenHeight/(float)desc.Height)); 
    6666        //set matrix: 
    6767        D3DXMatrixTransformation2D(&spriteMatrix,NULL,0.0,&scaling,NULL,0,NULL); 
     
    188188void MenueScene::initGUI() { 
    189189         
    190         //FONTs 
    191         this->GUI->SetFont( 1, L"Comic Sans MS", 18, FW_BOLD ); 
     190        this->setBackgroundSound("./media/music/soundpark/menu.mp3"); 
     191        this->playBackgroundSound(); 
     192         
     193        this->GUI->SetVisible(true); 
     194} 
     195 
     196void MenueScene::setupGUI() { 
     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: 
     202                        fontsize = 14; 
     203                        break; 
     204                case 800: 
     205                        fontsize = 18; 
     206                        break; 
     207                case 1024: 
     208                        fontsize = 24; 
     209                        break; 
     210                case 1200: 
     211                        fontsize = 30; 
     212                        break; 
     213                case 1600: 
     214                        fontsize = 36; 
     215                        break; 
     216                case 1900: 
     217                        fontsize = 42; 
     218                        break; 
     219                default: 
     220                        fontsize = 24; 
     221                        break; 
     222        } 
     223        this->GUI->SetFont( 1, L"Arial", fontsize, FW_BOLD ); 
    192224 
    193225        // Buttons 
     
    203235    } 
    204236 
    205         this->setBackgroundSound("./media/music/soundpark/menu.mp3"); 
    206         this->playBackgroundSound(); 
    207          
    208         this->GUI->SetVisible(true); 
    209 } 
    210  
    211 void MenueScene::setupGUI() { 
    212         //diese funktion ist leider naotwendig da ich die größe noch nicht in initGUI festlegen kann da der manager da noch NULL ist... 
    213         float factorX = (float)this->manager->screenWidth/100; 
    214         float factorY = (float)this->manager->screenHeight/100; 
     237        float factorX = ((float)this->manager->screenWidth)/((float)100); 
     238        float factorY = ((float)this->manager->screenHeight)/((float)100); 
    215239         
    216240        this->GUI->GetListBox(IDC_CHALLENGELIST)->SetLocation((int)(81*factorX), (int)(5*factorY)); 
  • GTP/trunk/App/Games/Jungle_Rumble/src/WuermerDX9_2003.vcproj

    r1391 r1395  
    55        Name="WuermerDX9" 
    66        ProjectGUID="{9C04CC2D-C188-4443-A185-CB0BCA6ED98D}" 
     7        RootNamespace="WuermerDX9" 
    78        SccProjectName="" 
    89        SccAuxPath="" 
     
    221222                                AdditionalDependencies="dxerr9.lib dxguid.lib d3dx9d.lib d3d9.lib winmm.lib comctl32.lib dsound.lib dinput8.lib " 
    222223                                OutputFile="..\bin\JungleRumble.exe" 
     224                                Version="1.0" 
    223225                                LinkIncremental="1" 
    224226                                GenerateDebugInformation="FALSE" 
Note: See TracChangeset for help on using the changeset viewer.