Changeset 3791 for 2012


Ignore:
Timestamp:
2012-07-27 11:55:53 (7 years ago)
Author:
anlakane
Message:

Talletus.

Location:
2012/30/JyriP/X/X
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • 2012/30/JyriP/X/X/X/X.cs

    r3789 r3791  
    4747    void MapMenu() 
    4848    { 
    49         MultiSelectWindow MapList = new MultiSelectWindow("X Maps", "Hello World", "Run!", "QWE"); 
     49        MultiSelectWindow MapList = new MultiSelectWindow("X Maps", "Hello World", "Run!", "QWE", ".:???:."); 
    5050        MapList.AddItemHandler(0, NextMap); 
    5151        MapList.AddItemHandler(1, map2); 
    5252        MapList.AddItemHandler(2, map3); 
     53        MapList.AddItemHandler(3, map4); 
    5354        Add(MapList); 
    5455    } 
     
    5657    void map2() 
    5758    { 
     59        MediaPlayer.Play("musics/music2"); 
    5860        mapNum = 2; 
    5961        NextMap(); 
     
    6264    void map3() 
    6365    { 
    64         MediaPlayer.Stop(); 
     66        MediaPlayer.Play("musics/theme"); 
    6567        mapNum = 3; 
     68        NextMap(); 
     69    } 
     70 
     71    void map4() 
     72    { 
     73        MediaPlayer.Play("musics/music2"); 
     74        mapNum = 4; 
    6675        NextMap(); 
    6776    } 
     
    7786        { 
    7887            CreateMap("maps/map2"); 
    79             MediaPlayer.Play("musics/music2"); 
    8088        } 
    8189        else if (mapNum == 3) 
    8290        { 
    83             MediaPlayer.Play("musics/theme"); 
    8491            CreateMap("maps/map3"); 
    8592        } 
    86         else if (mapNum == 4) MainMenu(); 
     93        else if (mapNum == 4) 
     94        { 
     95            CreateMap("maps/map4"); 
     96        } 
    8797 
    8898        Level.Background.FitToLevel(); 
  • 2012/30/JyriP/X/X/XContent/XContent.contentproj

    r3789 r3791  
    230230    </Compile> 
    231231  </ItemGroup> 
     232  <ItemGroup> 
     233    <Compile Include="maps\map4.png"> 
     234      <Name>map4</Name> 
     235      <Importer>TextureImporter</Importer> 
     236      <Processor>TextureProcessor</Processor> 
     237    </Compile> 
     238  </ItemGroup> 
    232239  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    233240  <!--  To modify your build process, add your task inside one of the targets below and uncomment it.  
Note: See TracChangeset for help on using the changeset viewer.