Ejemplo n.º 1
0
		public DuelAcceptGump(Mobile m, Duel duel)
			: base(200, 200)
		{
			m_Mobile = m;
			m_Duel = duel;

			m_Timer = new TimeoutTimer(duel, m);
			m_Timer.Start();

			this.Closable = true;
			this.Disposable = true;
			this.Dragable = true;
			this.Resizable = false;
			this.AddPage(0);
			this.AddBackground(40, 25, 324, 167, 3500);
			this.AddLabel(130, 40, 36, @"Onsite Duel System " + DuelController.Version);
			this.AddLabel(130, 39, 36, @"Onsite Duel System " + DuelController.Version);
			this.AddLabel(60, 73, 36, m_Duel.Creator.Name + " has invited you to their duel!");
			this.AddLabel(60, 72, 36, m_Duel.Creator.Name + " has invited you to their duel!");
			this.AddLabel(60, 96, 36, @"Do you wish to join?");
			this.AddLabel(60, 95, 36, @"Do you wish to join?");
			this.AddLabel(162, 146, 36, @"Yes");
			this.AddLabel(162, 145, 36, @"Yes");
			this.AddLabel(222, 146, 36, @"No");
			this.AddLabel(222, 145, 36, @"No");
			this.AddButton(327, 44, 3, 4, (int)Buttons.closeBtn, GumpButtonType.Reply, 0);
			this.AddButton(144, 149, 4034, 4034, (int)Buttons.yesBtn, GumpButtonType.Reply, 0);
			this.AddButton(204, 149, 4034, 4034, (int)Buttons.noBtn, GumpButtonType.Reply, 0);
		}
Ejemplo n.º 2
0
        public DuelAcceptGump(Mobile m, Duel duel)
            : base(200, 200)
        {
            m_Mobile = m;
            m_Duel   = duel;

            m_Timer = new TimeoutTimer(duel, m);
            m_Timer.Start();

            this.Closable   = true;
            this.Disposable = true;
            this.Dragable   = true;
            this.Resizable  = false;
            this.AddPage(0);
            this.AddBackground(40, 25, 324, 167, 3500);
            this.AddLabel(130, 40, 36, @"Onsite Duel System " + DuelController.Version);
            this.AddLabel(130, 39, 36, @"Onsite Duel System " + DuelController.Version);
            this.AddLabel(60, 73, 36, m_Duel.Creator.Name + " has invited you to their duel!");
            this.AddLabel(60, 72, 36, m_Duel.Creator.Name + " has invited you to their duel!");
            this.AddLabel(60, 96, 36, @"Do you wish to join?");
            this.AddLabel(60, 95, 36, @"Do you wish to join?");
            this.AddLabel(162, 146, 36, @"Yes");
            this.AddLabel(162, 145, 36, @"Yes");
            this.AddLabel(222, 146, 36, @"No");
            this.AddLabel(222, 145, 36, @"No");
            this.AddButton(327, 44, 3, 4, (int)Buttons.closeBtn, GumpButtonType.Reply, 0);
            this.AddButton(144, 149, 4034, 4034, (int)Buttons.yesBtn, GumpButtonType.Reply, 0);
            this.AddButton(204, 149, 4034, 4034, (int)Buttons.noBtn, GumpButtonType.Reply, 0);
        }