Ejemplo n.º 1
0
        public TAboutGump(TSystemStone stone)
            : base(stone, 448, "About")
        {
            m_Stone = stone;

            this.AddHtml(116, 166, 452, 327, About, (bool)false, (bool)true);
        }
Ejemplo n.º 2
0
		public TAboutGump(TSystemStone stone)
			: base( stone, 448, "About" )
		{
			m_Stone = stone;

			this.AddHtml( 116, 166, 452, 327, About, (bool)false, (bool)true);
		}
Ejemplo n.º 3
0
		public TBaseGump(TSystemStone stone, int size, string header) : base(0,0)
		{
			m_Stone = stone;

			this.AddHtml(105, 141, 447, 21, "<CENTER><baseFONT color='lime'>" + header, (bool)false, (bool)false);
			//this.AddHtml( 105, 166, 463, 327, info, (bool)false, (bool)true);
			InitializeComponent(size);
		}
Ejemplo n.º 4
0
        public TBaseGump(TSystemStone stone, int size, string header) : base(0, 0)
        {
            m_Stone = stone;

            this.AddHtml(105, 141, 447, 21, "<CENTER><baseFONT color='lime'>" + header, (bool)false, (bool)false);
            //this.AddHtml( 105, 166, 463, 327, info, (bool)false, (bool)true);
            InitializeComponent(size);
        }
Ejemplo n.º 5
0
        private static int CalcSize(TSystemStone from)
        {
            if (from.Coords == null)
            {
                return(159);
            }

            return(159 + (from.Coords.Count * 33));
        }
Ejemplo n.º 6
0
        public TCommandGump(TSystemStone stone)
            : base(stone, 204, "System Commands")
        {
            m_Stone = stone;

            this.AddButton(124, 190, btnNormID, btnPressID, (int)Buttons.btnStart, GumpButtonType.Reply, 0);
            this.AddLabel(154, 190, 100, @"Start the tournament");
            this.AddButton(124, 220, btnNormID, btnPressID, (int)Buttons.btnStop, GumpButtonType.Reply, 0);
            this.AddLabel(154, 220, 100, @"Stop the tournament");
        }
Ejemplo n.º 7
0
        public TManageGump(TSystemStone stone)
            : base(stone, 204, "System Management")
        {
            m_Stone = stone;

            this.AddButton(124, 190, btnNormID, btnPressID, (int)Buttons.btnSpells, GumpButtonType.Reply, 0);
            this.AddLabel(154, 190, 100, @"Edit Restricted Spells");
            this.AddButton(124, 220, btnNormID, btnPressID, (int)Buttons.btnSkills, GumpButtonType.Reply, 0);
            this.AddLabel(154, 220, 100, @"Edit Restricted Skills");
        }
Ejemplo n.º 8
0
		public TManageGump(TSystemStone stone)
			: base( stone, 204, "System Management" )
		{
			m_Stone = stone;

			this.AddButton(124, 190, btnNormID, btnPressID, (int)Buttons.btnSpells, GumpButtonType.Reply, 0);
			this.AddLabel(154, 190, 100, @"Edit Restricted Spells");
			this.AddButton(124, 220, btnNormID, btnPressID, (int)Buttons.btnSkills, GumpButtonType.Reply, 0);
			this.AddLabel(154, 220, 100, @"Edit Restricted Skills");

		}
Ejemplo n.º 9
0
		public TCommandGump(TSystemStone stone)
			: base( stone, 204, "System Commands" )
		{
			m_Stone = stone;

			this.AddButton(124, 190, btnNormID, btnPressID, (int)Buttons.btnStart, GumpButtonType.Reply, 0);
			this.AddLabel(154, 190, 100, @"Start the tournament");
			this.AddButton(124, 220, btnNormID, btnPressID, (int)Buttons.btnStop, GumpButtonType.Reply, 0);
			this.AddLabel(154, 220, 100, @"Stop the tournament");

		}
Ejemplo n.º 10
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            int version = reader.ReadInt();

            if (Core.AOS && NameHue == 0x35)
            {
                NameHue = -1;
            }

            m_Link = (TSystemStone)reader.ReadItem();
        }
Ejemplo n.º 11
0
        public TRegionEditGump(TSystemStone stone, Rectangle3D rect)
            : base(stone, 195, "Region Properties")
        {
            m_Stone = stone;
            m_Rect  = rect;

            this.AddButton(120, 184, 1209, 9904, (int)Buttons.btnShow, GumpButtonType.Reply, 0);
            this.AddButton(196, 184, 1209, 9904, (int)Buttons.btnDelete, GumpButtonType.Reply, 0);
            this.AddButton(279, 184, 1209, 9904, (int)Buttons.btnBack, GumpButtonType.Reply, 0);
            this.AddLabel(144, 182, 36, @"Show");
            this.AddLabel(220, 182, 36, @"Delete");
            this.AddLabel(303, 182, 36, @"Back to Management");
            this.AddHtml(105, 215, 447, 21, "<baseFONT color='white'><Center>" + String.Format("Start: {0} | End: {1}", rect.Start, rect.End), (bool)false, (bool)false);
        }
Ejemplo n.º 12
0
		public TRegionEditGump(TSystemStone stone, Rectangle3D rect)
			: base( stone, 195, "Region Properties" )
		{
			m_Stone = stone;
			m_Rect = rect;

			this.AddButton(120, 184, 1209, 9904, (int)Buttons.btnShow, GumpButtonType.Reply, 0);
			this.AddButton(196, 184, 1209, 9904, (int)Buttons.btnDelete, GumpButtonType.Reply, 0);
			this.AddButton(279, 184, 1209, 9904, (int)Buttons.btnBack, GumpButtonType.Reply, 0);
			this.AddLabel(144, 182, 36, @"Show");
			this.AddLabel(220, 182, 36, @"Delete");
			this.AddLabel(303, 182, 36, @"Back to Management");
			this.AddHtml( 105, 215, 447, 21, "<baseFONT color='white'><Center>" + String.Format("Start: {0} | End: {1}", rect.Start, rect.End), (bool)false, (bool)false);
		}
Ejemplo n.º 13
0
        private readonly int Start = 184;         //214;

        public TRegionGump(TSystemStone stone)
            : base(stone, CalcSize(stone), "Region Management & Editing")
        {
            m_Stone = stone;

            this.AddButton(120, 184, 1209, 1210, (int)Buttons.btnAdd, GumpButtonType.Reply, 0);
            this.AddLabel(148, 182, 36, @"Add Region");
            this.AddButton(233, 184, 1209, 1210, (int)Buttons.btnShow, GumpButtonType.Reply, 0);
            this.AddLabel(261, 182, 36, @"Show All Regions");
            this.AddButton(375, 184, 1209, 1210, (int)Buttons.btnDelete, GumpButtonType.Reply, 0);
            this.AddLabel(403, 182, 36, @"Delete All");

            m_ButtonIDs = new List <int>();
            ListRegions();
        }
Ejemplo n.º 14
0
		private readonly int Start = 184; //214;

		public TRegionGump(TSystemStone stone)
			: base( stone, CalcSize(stone), "Region Management & Editing" )
		{
			m_Stone = stone;

			this.AddButton(120, 184, 1209, 1210, (int)Buttons.btnAdd, GumpButtonType.Reply, 0);
			this.AddLabel(148, 182, 36, @"Add Region");
			this.AddButton(233, 184, 1209, 1210, (int)Buttons.btnShow, GumpButtonType.Reply, 0);
			this.AddLabel(261, 182, 36, @"Show All Regions");
			this.AddButton(375, 184, 1209, 1210, (int)Buttons.btnDelete, GumpButtonType.Reply, 0);
			this.AddLabel(403, 182, 36, @"Delete All");

			m_ButtonIDs = new List<int>();
			ListRegions();
		}
Ejemplo n.º 15
0
        private static void DoChooseArea(Mobile from, Map map, Point3D start, Point3D end, object control)
        {
            TSystemStone master = (TSystemStone)control;
            Rectangle3D  rect   = new Rectangle3D(start, end);

            if (master.m_Coords == null)
            {
                master.m_Coords = new List <Rectangle3D>();
            }

            master.m_Coords.Add(rect);

            master.UpdateRegion();

            from.SendGump(new TRegionGump(master));
        }
Ejemplo n.º 16
0
        public TMainGump(TSystemStone stone)
            : base(stone, 312, "Navigation")
        {
            m_Stone = stone;

            this.AddButton(120, 189, 9903, 9904, (int)Buttons.btnInfo, GumpButtonType.Reply, 0);
            this.AddLabel(148, 189, 100, @"Information & Statistics");
            this.AddButton(120, 249, 9903, 9904, (int)Buttons.btnCommands, GumpButtonType.Reply, 0);
            this.AddButton(120, 220, 9903, 9904, (int)Buttons.btnManagement, GumpButtonType.Reply, 0);
            this.AddLabel(148, 249, 100, @"System Commands");
            this.AddLabel(148, 220, 100, @"System Management");
            this.AddButton(120, 279, 9903, 9904, (int)Buttons.btnRegions, GumpButtonType.Reply, 0);
            this.AddLabel(148, 279, 100, @"Region Management & Editing");
            this.AddButton(120, 309, 9903, 9904, (int)Buttons.btnAbout, GumpButtonType.Reply, 0);
            this.AddLabel(148, 309, 100, @"About");
            this.AddImage(353, 133, 990);
        }
Ejemplo n.º 17
0
		public TMainGump(TSystemStone stone)
			: base( stone, 312, "Navigation" )
		{
			m_Stone = stone;

			this.AddButton(120, 189, 9903, 9904, (int)Buttons.btnInfo, GumpButtonType.Reply, 0);
			this.AddLabel(148, 189, 100, @"Information & Statistics");
			this.AddButton(120, 249, 9903, 9904, (int)Buttons.btnCommands, GumpButtonType.Reply, 0);
			this.AddButton(120, 220, 9903, 9904, (int)Buttons.btnManagement, GumpButtonType.Reply, 0);
			this.AddLabel(148, 249, 100, @"System Commands");
			this.AddLabel(148, 220, 100, @"System Management");
			this.AddButton(120, 279, 9903, 9904, (int)Buttons.btnRegions, GumpButtonType.Reply, 0);
			this.AddLabel(148, 279, 100, @"Region Management & Editing");
			this.AddButton(120, 309, 9903, 9904, (int)Buttons.btnAbout, GumpButtonType.Reply, 0);
			this.AddLabel(148, 309, 100, @"About");
			this.AddImage(353, 133, 990);
		}
Ejemplo n.º 18
0
		public TJoinGump(TSystemStone stone, Mobile from)
			: base( 0, 0 )
		{
			m_Stone = stone;

			this.Closable=false;
			this.Disposable=false;
			this.Dragable=true;
			this.Resizable=false;
			this.AddPage(0);
			this.AddBackground(90, 61, 494, 448, 9270);
			this.AddAlphaRegion(101, 71, 471, 427);
			this.AddLabel(111, 81, 1166, @"Milt's Automated Tourney System - v" + TSystemStone.Version);
			this.AddImage(505, 78, 5581);
			this.AddImage(115, 106, 3001);
			this.AddHtml( 111, 166, 457, 201, Rules(), (bool)false, (bool)true);
			this.AddHtml( 105, 141, 447, 21, "<baseFONT COLOR='lime'><CENTER>Tournament Signups", (bool)false, (bool)false);
			this.AddImage(407, 266, 990);
			this.AddImage(406, 266, 653);

			bool signedup = SignedUp(from);

			this.AddLabel(108, 377, 36, signedup ? (m_Stone.AllowTeams && IsLeader(from) ? "Press 'Add' to add people to your team." : "You are already signed up for this tournament.") : "What would you like to do?");

			if(!signedup)
			{
				this.AddButton(128, 432, 9903, 9904, 1, GumpButtonType.Reply, 0);
				this.AddLabel(158, 432, 100, @"Join");
			}
			else
			{
				this.AddButton(128, 432, 9903, 9904, 3, GumpButtonType.Reply, 0);
				this.AddLabel(158, 432, 100, @"Quit");

				if(IsLeader(from))
				{
					this.AddButton(298, 432, 9903, 9904, 4, GumpButtonType.Reply, 0);
 					this.AddLabel(328, 432, 100, @"Add");
				}
			}

			this.AddButton(208, 432, 9903, 9904, 2, GumpButtonType.Reply, 0);
			this.AddLabel(238, 432, 100, @"Cancel");
		}
Ejemplo n.º 19
0
        public TJoinGump(TSystemStone stone, Mobile from)
            : base(0, 0)
        {
            m_Stone = stone;

            this.Closable   = false;
            this.Disposable = false;
            this.Dragable   = true;
            this.Resizable  = false;
            this.AddPage(0);
            this.AddBackground(90, 61, 494, 448, 9270);
            this.AddAlphaRegion(101, 71, 471, 427);
            this.AddLabel(111, 81, 1166, @"Milt's Automated Tourney System - v" + TSystemStone.Version);
            this.AddImage(505, 78, 5581);
            this.AddImage(115, 106, 3001);
            this.AddHtml(111, 166, 457, 201, Rules(), (bool)false, (bool)true);
            this.AddHtml(105, 141, 447, 21, "<baseFONT COLOR='lime'><CENTER>Tournament Signups", (bool)false, (bool)false);
            this.AddImage(407, 266, 990);
            this.AddImage(406, 266, 653);

            bool signedup = SignedUp(from);

            this.AddLabel(108, 377, 36, signedup ? (m_Stone.AllowTeams && IsLeader(from) ? "Press 'Add' to add people to your team." : "You are already signed up for this tournament.") : "What would you like to do?");

            if (!signedup)
            {
                this.AddButton(128, 432, 9903, 9904, 1, GumpButtonType.Reply, 0);
                this.AddLabel(158, 432, 100, @"Join");
            }
            else
            {
                this.AddButton(128, 432, 9903, 9904, 3, GumpButtonType.Reply, 0);
                this.AddLabel(158, 432, 100, @"Quit");

                if (m_Stone.AllowTeams && IsLeader(from))
                {
                    this.AddButton(298, 432, 9903, 9904, 4, GumpButtonType.Reply, 0);
                    this.AddLabel(328, 432, 100, @"Add");
                }
            }

            this.AddButton(208, 432, 9903, 9904, 2, GumpButtonType.Reply, 0);
            this.AddLabel(238, 432, 100, @"Cancel");
        }
Ejemplo n.º 20
0
		public TInfoGump(TSystemStone stone, int page)
			: base( stone, 448, "Information and Statistics")
		{
			m_Stone = stone;
			m_Page = page;

			this.AddLabel(109, 203, 36, @"Kick");
			this.AddLabel(156, 203, 36, @"Player Name");
			this.AddLabel(203, 176, 36, String.Format("There are {0} players signed up. [{1} teams]", GetMasterList().Count, m_Stone.SignedUp.Count));
			this.AddLabel(282, 203, 36, @"Team ID");
			this.AddButton(490, 225, 2437, 2438, (int)Buttons.btnPageDown, GumpButtonType.Reply, 0);
			this.AddButton(476, 225, 2435, 2436, (int)Buttons.btnPageUp, GumpButtonType.Reply, 0);
			this.AddLabel(472, 204, 36, @"Page");
			this.AddImage(445, 294, 5536);

			m_ButtonIDs = new List<int>();

			if(!m_Stone.Started)
				InitializeComponent();
		}
Ejemplo n.º 21
0
        public TSystemStone() : base(0xEDD)
        {
            m_SignedUp = new List <List <Mobile> >();
            m_Coords   = new List <Rectangle3D>();

            StaticRef = this;

            Movable = false;
            Visible = false;
            Name    = "Tournament System Control Stone";

            UpdateRegion();

            m_RestrictedSpells = new BitArray(SpellRegistry.Types.Length);
            m_RestrictedSkills = new BitArray(SkillInfo.Table.Length);

            m_CanHeal      = true;
            m_Potions      = true;
            m_MagicWeapons = true;
        }
Ejemplo n.º 22
0
		public TAcceptGump(TSystemStone stone, Mobile target, Mobile from, TJoinGump g)
			: base( 0, 0 )
		{
			m_Stone = stone;
			m_Sender = from;
			m_Gump = g;

			this.Closable=false;
			this.Disposable=false;
			this.Dragable=true;
			this.Resizable=false;
			this.AddPage(0);
			this.AddBackground(152, 167, 295, 134, 9270);
			this.AddAlphaRegion(163, 177, 273, 113);
			this.AddHtml( 162, 194, 274, 20, "<baseFONT color='lime'><CENTER>" + from.Name, (bool)false, (bool)false);
			this.AddLabel(168, 211, 100, @"has requested that you join their team for");
			this.AddLabel(193, 232, 100, @"the tournament. Will you accept?");
			this.AddButton(227, 259, 247, 248, (int)Buttons.btnOK, GumpButtonType.Reply, 0);
			this.AddButton(305, 259, 242, 241, (int)Buttons.btnCancel, GumpButtonType.Reply, 0);
		}
        public TAcceptGump(TSystemStone stone, Mobile target, Mobile from, TJoinGump g)
            : base(0, 0)
        {
            m_Stone  = stone;
            m_Sender = from;
            m_Gump   = g;

            this.Closable   = false;
            this.Disposable = false;
            this.Dragable   = true;
            this.Resizable  = false;
            this.AddPage(0);
            this.AddBackground(152, 167, 295, 134, 9270);
            this.AddAlphaRegion(163, 177, 273, 113);
            this.AddHtml(162, 194, 274, 20, "<baseFONT color='lime'><CENTER>" + from.Name, (bool)false, (bool)false);
            this.AddLabel(168, 211, 100, @"has requested that you join their team for");
            this.AddLabel(193, 232, 100, @"the tournament. Will you accept?");
            this.AddButton(227, 259, 247, 248, (int)Buttons.btnOK, GumpButtonType.Reply, 0);
            this.AddButton(305, 259, 242, 241, (int)Buttons.btnCancel, GumpButtonType.Reply, 0);
        }
Ejemplo n.º 24
0
        public TInfoGump(TSystemStone stone, int page)
            : base(stone, 448, "Information and Statistics")
        {
            m_Stone = stone;
            m_Page  = page;

            this.AddLabel(109, 203, 36, @"Kick");
            this.AddLabel(156, 203, 36, @"Player Name");
            this.AddLabel(203, 176, 36, String.Format("There are {0} players signed up. [{1} teams]", GetMasterList().Count, m_Stone.SignedUp.Count));
            this.AddLabel(282, 203, 36, @"Team ID");
            this.AddButton(490, 225, 2437, 2438, (int)Buttons.btnPageDown, GumpButtonType.Reply, 0);
            this.AddButton(476, 225, 2435, 2436, (int)Buttons.btnPageUp, GumpButtonType.Reply, 0);
            this.AddLabel(472, 204, 36, @"Page");
            this.AddImage(445, 294, 5536);

            m_ButtonIDs = new List <int>();

            if (!m_Stone.Started)
            {
                InitializeComponent();
            }
        }
Ejemplo n.º 25
0
		public override void Deserialize( GenericReader reader )
		{
			base.Deserialize( reader );

			int version = reader.ReadInt();

			if ( Core.AOS && NameHue == 0x35 )
				NameHue = -1;

			m_Link = (TSystemStone)reader.ReadItem();
		}
Ejemplo n.º 26
0
			public TInviteTarget(TSystemStone stone, TJoinGump g) : base(12, false, TargetFlags.None)
			{
				m_Stone = stone;
				m_Gump = g;
			}
Ejemplo n.º 27
0
		public TSystemStone() : base(0xEDD)
		{
			m_SignedUp = new List<List<Mobile>>();
			m_Coords = new List<Rectangle3D>();

			StaticRef = this;

			Movable = false;
			Visible = false;
			Name = "Tournament System Control Stone";

			UpdateRegion();

			m_RestrictedSpells = new BitArray( SpellRegistry.Types.Length );
			m_RestrictedSkills = new BitArray( SkillInfo.Table.Length );

			m_CanHeal = true;
			m_Potions = true;
			m_MagicWeapons = true;
		}
Ejemplo n.º 28
0
		public override void Deserialize(GenericReader reader)
		{
			base.Deserialize(reader);

			StaticRef = this;

			int version = reader.ReadInt();

			switch( version )
			{
				case 5:
				{
					m_TeamMaxPlayers = reader.ReadInt();
					m_AllowTeams = reader.ReadBool();

					goto case 4;
				}
				case 4:
				{
					m_AllowSameIP = reader.ReadBool();
					m_SpectatorDest = reader.ReadPoint3D();

					goto case 3;
				}
				case 3:
				{
					m_Enabled = reader.ReadBool();
					m_CanHeal = reader.ReadBool();
					m_Potions = reader.ReadBool();
					m_MagicWeapons = reader.ReadBool();

					goto case 2;
				}
				case 2:
				{
					int size = reader.ReadInt();

					m_Coords = new List<Rectangle3D>();

					for( int i = 0; i < size; ++i )
					{
						m_Coords.Add( new Rectangle3D( reader.ReadPoint3D(), reader.ReadPoint3D() ) );
					}

					goto case 1;
				}
				case 1:
				{
					m_RestrictedSpells = ReadBitArray( reader );
					m_RestrictedSkills = ReadBitArray( reader );

					goto case 0;
				}
				case 0:
				{
					break;
				}
			}
		}
Ejemplo n.º 29
0
		private static int CalcSize(TSystemStone from)
		{
			if(from.Coords == null)
				return 159;

			return 159 + (from.Coords.Count * 33);
		}
Ejemplo n.º 30
0
 public TArenaRegion(TSystemStone m, Map map, params Rectangle3D[] area) : base("Tournament Arena", map, DefaultPriority, area)
 {
     m_Stone = m;
 }
Ejemplo n.º 31
0
		public TArenaRegion( TSystemStone m, Map map, params Rectangle3D[] area ) : base( "Tournament Arena", map, DefaultPriority, area )
		{
            		m_Stone = m;
		}
Ejemplo n.º 32
0
 public TInviteTarget(TSystemStone stone, TJoinGump g) : base(12, false, TargetFlags.None)
 {
     m_Stone = stone;
     m_Gump  = g;
 }
Ejemplo n.º 33
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            StaticRef = this;

            int version = reader.ReadInt();

            switch (version)
            {
            case 5:
            {
                m_TeamMaxPlayers = reader.ReadInt();
                m_AllowTeams     = reader.ReadBool();

                goto case 4;
            }

            case 4:
            {
                m_AllowSameIP   = reader.ReadBool();
                m_SpectatorDest = reader.ReadPoint3D();

                goto case 3;
            }

            case 3:
            {
                m_Enabled      = reader.ReadBool();
                m_CanHeal      = reader.ReadBool();
                m_Potions      = reader.ReadBool();
                m_MagicWeapons = reader.ReadBool();

                goto case 2;
            }

            case 2:
            {
                int size = reader.ReadInt();

                m_Coords = new List <Rectangle3D>();

                for (int i = 0; i < size; ++i)
                {
                    m_Coords.Add(new Rectangle3D(reader.ReadPoint3D(), reader.ReadPoint3D()));
                }

                goto case 1;
            }

            case 1:
            {
                m_RestrictedSpells = ReadBitArray(reader);
                m_RestrictedSkills = ReadBitArray(reader);

                goto case 0;
            }

            case 0:
            {
                break;
            }
            }
        }