Esempio n. 1
0
        protected override void OnCreate()
        {
            Back.CreateTextCenterX("TEAM DEATHMATCH", 20);
            Back.CreateTextCenterX("Team auswählen", 100);

            const int offset           = 150;
            const int distance         = 40;
            const int backButtonOffset = 400;

            int y, i = 0;

            while ((y = offset + i * distance) < 340 - distance)
            {
                int index = i;
                AddButton("TEAM", "", y, () => SelectTeam(index));
                i++;
            }

            AddButton("Zuschauen", "Team Deathmatch zuschauen.", 340, Spectate);
            AddButton("Zurück", "Zurück ins Hauptmenü.", backButtonOffset, Menus.MainMenu.Menu.Open);
            OnEscape = Menus.MainMenu.Menu.Open;

            arrow = new GUCVisual(0, 0, 20, 20);
            arrow.SetBackTexture("R.tga");
        }
Esempio n. 2
0
        public CharacterSelectionMenu()
        {
            Back.CreateTextCenterX("Charakterauswahl", 10);

            _CharacterButtons = new MainMenuButton[5];
            for (int i = 0; i < _CharacterButtons.Length; i++)
            {
                _CharacterButtons[i]         = AddButton("...", "", _DistanceBetweenButtons * (i + 1), OnActivate);
                _CharacterButtons[i].Enabled = false;
            }

            //Increase the size so we can fit the character model into the menu
            var screenSize = GUCView.GetScreenSize();
            int width      = 900;
            int height     = 600;

            int posX = (screenSize.X - width) / 2;
            int posY = (screenSize.Y - height) / 2;


            Back.SetPos(posX, posY);
            Back.SetSize(width, height);


            _CharacterDisplay = AddCharacter("", 400, 0, 533, 400);
            _CharacterDisplay.SetVisual("HUMANS.MDS");
            _CharacterDisplay.SetAdditionalVisuals(HumBodyMeshs.HUM_BODY_BABE0.ToString(), (int)HumBodyTexs.G1Hero, HumHeadMeshs.HUM_HEAD_BABE.ToString(), (int)HumHeadTexs.FaceBabe_B_RedLocks);
            _CharacterDisplay.Enabled = false;
            _CharacterDisplay.Hide();

            _CharacterNameText = Back.CreateText("PlayerName", 650, 475);
            _CharacterNameText.Hide();

            CursorChanged += OnCursorChanged;
        }
Esempio n. 3
0
 protected override void OnCreate()
 {
     preferredCursorItem = 1;
     Back.CreateTextCenterX("SumpfkrautOnline verlassen?", 100);
     AddButton("Ja", "Ja, ich möchte SumpfkrautOnline verlassen.", 200, () => ExitGameSelected?.Invoke(this));
     AddButton("Nein", "Zurück zum Hauptmenü", 250, () => BackToMainMenu?.Invoke(this));
 }
Esempio n. 4
0
 protected override void OnCreate()
 {
     Back.CreateTextCenterX("Spielerliste", 100);
     //list of player names
     AddButton("Zurück", "Zurück zum Hauptmenü.", 350, MainMenu.Menu.Open);
     OnEscape = MainMenu.Menu.Open;
 }
Esempio n. 5
0
 protected override void OnCreate()
 {
     Back.CreateTextCenterX("RP-Guide", 100);
     //massive wall of text
     AddButton("Zurück", "Zurück zum Hilfemenü.", 350, HelpMenu.Menu.Open);
     //OnEscape = HelpMenu.Menu.Open;
 }
Esempio n. 6
0
        protected override void OnCreate()
        {
            Back.CreateTextCenterX("Chathilfe", 100);

            AddButton("Zurück", "Zurück zum Hilfemenü.", 400, HelpMenu.Menu.Open);
            OnEscape = HelpMenu.Menu.Open;
        }
Esempio n. 7
0
 protected override void OnCreate()
 {
     preferredCursorItem = 1;
     Back.CreateTextCenterX("SumpfkrautOnline verlassen?", 100);
     AddButton("Ja", "Ja, ich möchte SumpfkrautOnline verlassen.", 200, Program.Exit);
     AddButton("Nein", "Nein, ich möchte weiterspielen.", 250, MainMenu.Menu.Open);
     OnEscape = MainMenu.Menu.Open;
 }
Esempio n. 8
0
        protected override void OnCreate()
        {
            Back.CreateTextCenterX("Anmeldung", 100);

            name = AddTextBox("Accountname:", "Name deines Accounts eingeben.", 200, 200, Login);
            pw   = AddTextBox("Passwort:", "Passwort deines Accounts eingeben.", 250, 200, Login);
            AddButton("Einloggen", "In den Account einloggen.", 300, Login);
            AddButton("Zurück", "Zurück zum Hauptmenü.", 400, MainMenu.Menu.Open);
            //OnEscape = MainMenu.Menu.Open;
        }
Esempio n. 9
0
        protected override void OnCreate()
        {
            Back.CreateTextCenterX("FREIER MODUS", 20);

            AddButton("Mitspielen", "Dem Freien Modus beitreten.", 140, Join);
            AddButton("Zuschauen", "Dem Freien Modus zuschauen.", 180, Spectate);

            AddButton("Zurück", "Zurück ins Hauptmenü.", 300, MainMenu.Menu.Open);
            OnEscape = MainMenu.Menu.Open;
        }
Esempio n. 10
0
        protected override void OnCreate()
        {
            Back.CreateTextCenterX("BATTLE ROYALE", 20);

            AddButton("Mitspielen", "Dem Spielmodus beitreten.", 140, Join);
            AddButton("Zuschauen", "Dem Spielmodus zuschauen.", 180, Spectate);

            AddButton("Zurück", "Zurück ins Hauptmenü.", 300, Arena.Menus.MainMenu.Menu.Open);
            OnEscape = Arena.Menus.MainMenu.Menu.Open;
        }
Esempio n. 11
0
        protected override void OnCreate()
        {
            Back.CreateTextCenterX("Hauptmenü", 70);

            const int offset = 200;
            const int dist   = 38;

            bLogin    = AddButton("Anmelden", "In einen bestehenden Account einloggen.", offset + dist * 0, LoginMenu.Menu.Open);
            bRegister = AddButton("Registrieren", "Einen neuen Account erstellen.", offset + dist * 1, null);
            bContinue = AddButton("Weiterspielen", "Aktuelles Spiel fortführen.", offset + dist * 2, Close); //lol
            AddButton("Spielerliste", "Zeigt die angemeldeten Spieler.", offset + dist * 3, PlayerlistMenu.Menu.Open);
            AddButton("Hilfe", "Kurzhilfe & Einführung in das Rollenspiel.", offset + dist * 4, HelpMenu.Menu.Open);
            AddButton("Beenden", "Die Welt von SumpfkrautOnline verlassen.", offset + dist * 5, ExitMenu.Menu.Open);
            bContinue.Enabled = false;
            //OnEscape = Open;
        }
Esempio n. 12
0
        protected override void OnCreate()
        {
            base.OnCreate();

            Back.CreateTextCenterX("Login", 100);

            _TbName = AddTextBox("Accountname:", "Name deines Accounts eingeben.", 200, 200, OnActivate);


            _TbPw = AddTextBox("Passwort:", "Passwort deines Accounts eingeben.", 250, 200, OnActivate, true);


            AddButton("Login ausführen", "Mit den eingegebenen Accountdaten einloggen.", 300, OnActivate);


            AddButton("Account erstellen", "Einen neuen Account erstellen", 400, () => CreateAccountSelected?.Invoke(this));
        }
Esempio n. 13
0
        protected override void OnCreate()
        {
            Back.CreateTextCenterX("Kurzhilfe", 100);

            AddButton("Chatbefehle", "Eine Liste aller nutzbaren Chatbefehle.", 180, HelpChatMenu.Menu.Open);
            AddButton("RP-Guide", "Eine kurze Einführung ins Rollenspiel.", 220, HelpRPMenu.Menu.Open);

            const int offsetY = 280;
            const int dist    = 24;

            keyHelp = (GUCVisual)Back.AddChild(new GUCVisual());
            keyHelp.CreateTextCenterX("ENTER - Chat öffnen", pos[1] + offsetY + dist * 0);
            keyHelp.CreateTextCenterX("F2 - Wechsel zw. OOC-/RP-Chat", pos[1] + offsetY + dist * 1);
            keyHelp.CreateTextCenterX("T - Handelsanfrage", pos[1] + offsetY + dist * 2);
            keyHelp.CreateTextCenterX("X - Animationsmenü", pos[1] + offsetY + dist * 3);

            AddButton("Zurück", "Zurück zum Hauptmenü.", 400, MainMenu.Menu.Open);
            //OnEscape = MainMenu.Menu.Open;
        }
Esempio n. 14
0
        protected override void OnCreate()
        {
            title = Back.CreateTextCenterX("", 50);

            const int offset           = 100;
            const int distance         = 50;
            const int backButtonOffset = 350;

            int y, i = 0;

            while ((y = offset + i * distance) < backButtonOffset - distance)
            {
                int index = i;
                AddButton("CLASS", "", y, () => SelectClass(index));
                i++;
            }
            AddButton("Zurück", "Zurück ins Teammenü.", backButtonOffset, TOTeamsMenu.Menu.Open);
            OnEscape = TOTeamsMenu.Menu.Open;
        }
Esempio n. 15
0
        protected override void OnCreate()
        {
            title = Back.CreateTextCenterX("", 50);

            const int offset           = 100;
            const int distance         = 50;
            const int backButtonOffset = 350;

            int y, i = 0;

            while ((y = offset + i * distance) < backButtonOffset - distance)
            {
                int index = i;
                AddButton("CLASS", "", y, () => SelectClass(index));
                i++;
            }
            AddButton("Zuschauen", "Dem Spielmodus zuschauen.", 300, Spectate);
            AddButton("Zurück", "Zurück ins Hauptmenü.", backButtonOffset, Menus.MainMenu.Menu.Open);
            OnEscape = Menus.MainMenu.Menu.Open;
        }
Esempio n. 16
0
        protected override void OnCreate()
        {
            base.OnCreate();
            var screenSize = GUCView.GetScreenSize();

            Back.SetPos((screenSize.X - 900) / 2, (screenSize.Y - 480) / 2);
            Back.SetSize(900, 480);

            Back.CreateTextCenterX("Login", 100);

            _TbName = AddTextBox("Accountname:", "Name deines Accounts eingeben.", 200, 200, OnActivate);


            _TbPw = AddTextBox("Passwort:", "Passwort deines Accounts eingeben.", 250, 200, OnActivate, true);

            _TbPw2 = AddTextBox("Passwort wdh.:", "Passwort deines Accounts wiederholen.", 300, 200, OnActivate, true);

            AddButton("erstellen", "Die Erstellung des Accounts ausführen", 350, OnActivate);

            AddButton("Zurück", "Die Erstellung des Accounts abbrechen", 400, () => ChancelSelected?.Invoke(this));

            _LbErrorText = Back.CreateTextCenterX("", 400);
            _LbErrorText.SetColor(ColorRGBA.Red);
        }
Esempio n. 17
0
 public ErrorScreen()
 {
     _Text = Back.CreateTextCenterX("...", 50);
     _Text.SetColor(ColorRGBA.Red);
     Back.CreateTextCenterX("mit Esc schließen.", 150);
 }
Esempio n. 18
0
 public WaitScreen()
 {
     _Text = Back.CreateTextCenterX("...", 50);
 }