예제 #1
0
        void DrawOptionsW(int windowID)
        {
            UIUtil.WindowTitle(Windows[windowID], GameController.Instance.Texts("Options"));
            GUI.BeginGroup(UIUtil.GetRect(new Vector2(300, 55), PositionAnchor.Up, Windows[windowID].rect.size, new Vector2(0, 100)));
            UIUtil.Label(new Rect(100, 0, 100, 20), GameController.Instance.Texts("Sound"));
            fBuffer = GUI.HorizontalSlider(new Rect(0, 40, 300, 13), GameController.SoundLevel, 0.0f, 1f);
            if (GameController.SoundLevel != fBuffer)
            {
                GameController.SoundLevel = fBuffer;
            }
            GUI.EndGroup();

            GUI.BeginGroup(UIUtil.GetRect(new Vector2(300, 55), PositionAnchor.Up, Windows[windowID].rect.size, new Vector2(0, 165)));
            UIUtil.Label(new Rect(100, 0, 100, 20), GameController.Instance.Texts("Music"));
            fBuffer = GUI.HorizontalSlider(new Rect(0, 40, 300, 13), GameController.MusicLevel, 0.0f, 1f);
            if (GameController.MusicLevel != fBuffer)
            {
                GameController.MusicLevel = fBuffer;
            }
            GUI.EndGroup();

            if (UIUtil.ButtonBig(UIUtil.GetRect(new Vector2(200, 50), PositionAnchor.Down, Windows[windowID].rect.size, new Vector2(0, -50)), GameController.Instance.Texts("Back")))
            {
                CurWin = Window.MainMenu;
            }
        }
예제 #2
0
 void DrawDefeatW(int windowID)
 {
     UIUtil.WindowTitle(Windows[windowID], Global.Texts("Defeat"));
     if (UIUtil.ButtonBig(UIUtil.GetRect(new Vector2(200, 50), PositionAnchor.Up, Windows[windowID].rect.size, new Vector2(0, 100)), Global.Texts("Main menu")))
     {
         GameController.Instance.LevelOut();
     }
 }
예제 #3
0
        void DrawShopW(int windowID)
        {
            UIUtil.WindowTitle(Windows[windowID], GameController.Instance.Texts("Shop"));

            if (UIUtil.ButtonBig(UIUtil.GetRect(new Vector2(200, 50), PositionAnchor.Down, Windows[windowID].rect.size, new Vector2(0, -50)), GameController.Instance.Texts("Back")))
            {
                CurWin = Window.MainMenu;
            }
        }
예제 #4
0
 void DrawMainW(int windowID)
 {
     UIUtil.WindowTitle(Windows[windowID], GameController.Instance.Texts("Bubbles"));
     //GUI.color.a = window.UIAlpha;
     if (UIUtil.ButtonBig(UIUtil.GetRect(new Vector2(200, 50), PositionAnchor.Up, Windows[windowID].rect.size, new Vector2(0, 100)), GameController.Instance.Texts("Play")))
     {
         GameController.Instance.GoSingleGame();
         //CurWin = Window.Game;
     }
     if (UIUtil.ButtonBig(UIUtil.GetRect(new Vector2(200, 50), PositionAnchor.Up, Windows[windowID].rect.size, new Vector2(0, 150)), GameController.Instance.Texts("Time Atack")))
     {
         GameController.Instance.GoAtack();
         //CurWin = Window.Game;
     }
     if (UIUtil.ButtonBig(UIUtil.GetRect(new Vector2(200, 50), PositionAnchor.Up, Windows[windowID].rect.size, new Vector2(0, 200)), GameController.Instance.Texts("Shop")))
     {
         CurWin = Window.Shop;
     }
     if (UIUtil.ButtonBig(UIUtil.GetRect(new Vector2(200, 50), PositionAnchor.Up, Windows[windowID].rect.size, new Vector2(0, 250)), GameController.Instance.Texts("Options")))
     {
         CurWin = Window.Options;
     }
 }