コード例 #1
0
 public SplashScreen(MainGame game)
     : base(game)
 {
     menuItems    = new ClickableObject[2];
     menuItems[0] = new ClickableObject(new TextObject("                          ", new Vector2(850, 800)),
                                        delegate()
     {
         game.ActiveGame = "TAGAME";
     });
     menuItems[1] = new ClickableObject(new TextObject("                          ", new Vector2(850, 1110)),
                                        delegate()
     {
         game.Exit();
     });
 }
コード例 #2
0
ファイル: UI.cs プロジェクト: itbmac/bestfouryearsofyourlife
 public UI(MainGame game)
     : base(game)
 {
     menuItems    = new ClickableObject[1];
     menuItems[0] = new ClickableObject(new TextureObject(MediaManager.textures["MENU_MIDDLE"], new Vector2(700, 400)),
                                        delegate()
     {
         if (UI_display_state == 0)
         {
             UI_display_state = 1;
         }
         else
         {
             UI_display_state = 0;
         }
     });
 }
コード例 #3
0
 public WorldMap(MainGame game)
     : base(game)
 {
     menuItems    = new ClickableObject[2];
     menuItems[0] = new ClickableObject(new TextureObject(MediaManager.textures["BLAH"], new Vector2(100, 100)),
                                        delegate()
     {
         game.ActiveGame = "TAGAME";
         MediaManager.StopSound();
         MediaManager.PlaySound("Content/dark_beat");
     });
     menuItems[1] = new ClickableObject(new TextureObject(MediaManager.textures["BLAH"], new Vector2(700, 100)),
                                        delegate()
     {
         game.ActiveGame = "BOOKSTOREGAME";
         MediaManager.StopSound();
         MediaManager.PlaySound("Content/Emilia");
     });
 }