Beispiel #1
0
        public ServerCommand4(Mod game, Rectangle rect)
            : base(rect, "SC4")
        {
            Game = game;

            Rectangle pageRect = this.Rectangle; // tab pages are the size of the tab control

            Children.Add(new XG_Button(new Rectangle(10, 60, 60, 20), "get region", this.name_Clicked));
             //   Children.Add(new XG_Button(new Rectangle(10, 30, 60, 20), "ban", this.ban_Clicked));
               // Children.Add(new XG_Button(new Rectangle(10, 60, 60, 20), "kick", this.kick_Clicked));

            Region = new XGTextBox(new Rectangle(10, 90, 200, 20));
            Region.Text = "selected Region";
            Children.Add(Region);
        }
Beispiel #2
0
        public ServerCommand1(Mod game, Rectangle rect)
            : base(rect, "SC1")
        {
            Game = game;

            Rectangle pageRect = this.Rectangle; // tab pages are the size of the tab control

            Children.Add(new XG_Button(new Rectangle(10, 0, 60, 20), "Login", this.Login_Clicked));

            user = new XGTextBox(new Rectangle(100, 0, 200, 20));
            user.Text = "user";
            Children.Add(user);

            pass = new XGTextBox(new Rectangle(100, 20, 200, 20));
            pass.Text = "pass";
            Children.Add(pass);

             //   Children.Add(new XG_Button(new Rectangle(10, 30, 60, 20), "ban", this.ban_Clicked));

               // Children.Add(new XG_Button(new Rectangle(10, 60, 60, 20), "kick", this.kick_Clicked));
        }
Beispiel #3
0
        public ServerCommand3(Mod game, Rectangle rect)
            : base(rect, "SC3")
        {
            Game = game;

            Rectangle pageRect = this.Rectangle; // tab pages are the size of the tab control

            Children.Add(new XG_Button(new Rectangle(10, 0, 60, 20), "unban", this.unban_Clicked));
            Children.Add(new XG_Button(new Rectangle(10, 30, 60, 20), "ban", this.ban_Clicked));
            Children.Add(new XG_Button(new Rectangle(10, 60, 60, 20), "kick", this.kick_Clicked));

            Reason = new XGTextBox(new Rectangle(10, 90, 200, 20));
            Reason.Text = "Misbehavior";
            Children.Add(Reason);
        }
Beispiel #4
0
        public ServerCommand4(Mod game, Rectangle rect)
            : base(rect, "SC4")
        {
            Game = game;

            Rectangle pageRect = this.Rectangle; // tab pages are the size of the tab control

            Children.Add(new XG_Button(new Rectangle(10, 5, 60, 20), "set 1", this.set1_Clicked));
            Children.Add(new XG_Button(new Rectangle(100, 5, 60, 20), "set 2", this.set2_Clicked));

            Children.Add(new XG_Button(new Rectangle(10, 35, 60, 20), "define", this.gen_Clicked));
            Children.Add(new XG_Button(new Rectangle(100, 35, 60, 20), "delete", this.gen_Clicked));
            Children.Add(new XG_Button(new Rectangle(200, 5, 60, 20), "allow", this.allow_Clicked));

            Children.Add(new XG_Button(new Rectangle(10, 60, 100, 20), "get region", this.getname_Clicked));
            RegionName = new XGTextBox(new Rectangle(10, 90, 150, 20));
            RegionName.Text = "Region name";
            Children.Add(RegionName);

            Children.Add(new XG_Button(new Rectangle(200, 60, 100, 20), "get player info", this.getnamefromp_Clicked));
            player = new XGTextBox(new Rectangle(200, 90, 150, 20));
            player.Text = "player name";
            Children.Add(player);
            Children.Add(new XG_Button(new Rectangle(350, 90, 60, 20), "list", this.list_Clicked));

            Children.Add(new XG_Button(new Rectangle(290, 15, 60, 20), "up", this.expand_Clicked));

            Children.Add(new XG_Button(new Rectangle(290, 40, 60, 20), "down", this.expand_Clicked));

            Children.Add(new XG_Button(new Rectangle(230, 25, 60, 20), "left", this.expand_Clicked));

            Children.Add(new XG_Button(new Rectangle(350, 25, 60, 20), "right", this.expand_Clicked));
        }