Example #1
0
 private void createTextFieldFromCharacter(ListView _CharactersListView, PlayerObject _PlayerObject)
 {
     TextField var_TextField1 = new TextField(new Rectangle(0, 0, 289, 85));
     var_TextField1.IsTextEditAble = false;
     var_TextField1.Text = _PlayerObject.Name;
     _CharactersListView.addAtBottom(var_TextField1);
 }
Example #2
0
 private void createTextFields(ListView _CharactersListView, List<PlayerObject> _CharactersList)
 {
     foreach (PlayerObject var_PlayerObject in _CharactersList)
     {
         this.createTextFieldFromCharacter(_CharactersListView, var_PlayerObject);
     }
 }
Example #3
0
        public CharacterMenu()
            : base()
        {
            this.Bounds = new Rectangle(0,0,1000,1000); // TODO: Größe an Bildschirm anpassen!
            this.BackgroundGraphicPath = "Gui/Menu/CharacterCreation/Background";

            this.AllowMultipleFocus = true;

            this.charactersListView = new ListView (new Rectangle (500, 0, 289, 600));
            this.add(this.charactersListView);
            this.fillCharactersListView();

            this.createNewCharacterButton = new Button(new Rectangle(200, 200, 289, 85));
            this.createNewCharacterButton.Text = "Create Character";
            this.add(this.createNewCharacterButton);
            this.createNewCharacterButton.Action = openCreateCharacterMenu;

            this.connectToServerButton = new Button(new Rectangle(200, 300, 289, 85));
            this.connectToServerButton.Text = "Connect";
            this.add(this.connectToServerButton);
            this.connectToServerButton.Action = openConnectToServerMenu;
        }