//-----------------------------------------------------------------------------
 // Constructors
 //-----------------------------------------------------------------------------
 public MenuTransitionPush(Menu menuOld, Menu menuNew, int direction)
 {
     this.direction	= direction;
     this.menuOld	= menuOld;
     this.menuNew	= menuNew;
 }
示例#2
0
 public void OpenMenu(Menu menu)
 {
     AudioSystem.PlaySound(GameData.SOUND_MENU_OPEN);
     gameManager.QueueGameStates(
         new TransitionFade(new Color(248, 248, 248), 20, FadeType.FadeOut, roomControl),
         new TransitionFade(new Color(248, 248, 248), 20, FadeType.FadeIn, menu),
         menu
     );
     menuWeapons.OnOpen();
     menuSecondaryItems.OnOpen();
     menuEssences.OnOpen();
 }
示例#3
0
 //-----------------------------------------------------------------------------
 // Menu
 //-----------------------------------------------------------------------------
 public void OpenMenu(Menu currentMenu, Menu menu)
 {
     gameManager.PopGameState();
     gameManager.QueueGameStates(
         new TransitionFade(new Color(248, 248, 248), 20, FadeType.FadeOut, currentMenu),
         new TransitionFade(new Color(248, 248, 248), 20, FadeType.FadeIn, menu),
         menu
     );
 }
示例#4
0
 public void CloseMenu(Menu menu)
 {
     AudioSystem.PlaySound(GameData.SOUND_MENU_CLOSE);
     gameManager.PopGameState();
     gameManager.QueueGameStates(
         new TransitionFade(new Color(248, 248, 248), 20, FadeType.FadeOut, menu),
         new TransitionFade(new Color(248, 248, 248), 20, FadeType.FadeIn, roomControl),
         roomControl
     );
     menuWeapons.OnClose();
     menuSecondaryItems.OnClose();
     menuEssences.OnClose();
 }
示例#5
0
 public void OpenMenu(Menu menu)
 {
     AudioSystem.PlaySound("UI/menu_open");
     gameManager.QueueGameStates(
         new TransitionFade(new Color(248, 248, 248), 20, FadeType.FadeOut, roomControl),
         new TransitionFade(new Color(248, 248, 248), 20, FadeType.FadeIn, menu),
         menu
     );
 }
示例#6
0
 public void CloseMenu(Menu menu)
 {
     AudioSystem.PlaySound("UI/menu_close");
     gameManager.PopGameState();
     gameManager.QueueGameStates(
         new TransitionFade(new Color(248, 248, 248), 20, FadeType.FadeOut, menu),
         new TransitionFade(new Color(248, 248, 248), 20, FadeType.FadeIn, roomControl),
         roomControl
     );
 }