Beispiel #1
0
        public PartnerGump(PlayerMobile challenger, ChallengeStone item, int counter, PlayerMobile opponent)
            : base(0, 0)
        {
            i = counter;
            m_ChallengerMobile = challenger;
            m_OpponentMobile = opponent;
            m_Item = item;
            m_Timer2 = new ResponseTimers(m_Item, m_OpponentMobile);
            m_Timer2.Start();

            Closable = false;
            Dragable = false;

            AddImageTiled(107, 132, 14, 14, 83);
            AddImageTiled(121, 130, 245, 14, 84);
            AddImageTiled(366, 132, 14, 14, 85);
            AddImageTiled(107, 145, 14, 140, 86);
            AddImageTiled(118, 144, 252, 143, 87);
            AddImageTiled(366, 145, 14, 140, 88);
            AddImageTiled(107, 285, 14, 14, 89);
            AddImageTiled(121, 285, 245, 11, 90);
            AddImageTiled(366, 285, 14, 14, 91);
            AddHtml(115, 145, 233, 44, "<basefont color=#FF0000><center>Will you join " + m_ChallengerMobile.Name + " as your partner in a challenge?</center></basefont>", false, false);
            AddHtml(125, 190, 237, 77, "<basefont color=#CCCC33>" + message + "</basefont>", false, false);
            AddButton(135, 270, 2128, 2130, 1, GumpButtonType.Reply, 0);
            AddButton(300, 270, 2119, 2121, 2, GumpButtonType.Reply, 0);
        }
Beispiel #2
0
		public FinalGump( PlayerMobile challenger, PlayerMobile opponent, ChallengeStone item ) : base( 0, 0 ) 
		{		
			m_OpponentMobile = opponent;
			m_ChallengerMobile = challenger;
			m_Item = item;
			m_Timer = new ResponseTimers( m_Item, m_OpponentMobile );
			m_Timer.Start();

			Closable = false;
			Dragable = false;

			Targeting.Target.Cancel( m_ChallengerMobile );
			Targeting.Target.Cancel( m_OpponentMobile );

			AddImageTiled( 107, 132, 14, 14, 83);
			AddImageTiled( 121, 130, 245, 14, 84);
			AddImageTiled( 366, 132, 14, 14, 85);
			AddImageTiled( 107, 145, 14, 140, 86);
			AddImageTiled( 118, 144, 252, 143, 87);
			AddImageTiled( 366, 145, 14, 140, 88);
			AddImageTiled( 107, 285, 14, 14, 89);
			AddImageTiled( 121, 285, 245, 11, 90);
			AddImageTiled( 366, 285, 14, 14, 91);
			AddHtml( 123, 154, 233, 20, "<basefont color=#FF0000><center>Will you accept "+ challenger.Name +"'s challenge?</center></basefont>", false, false );
			AddHtml( 125, 175, 237, 77, "<basefont color=#CCCC33>" + message + "</basefont>", false, false );
			AddButton( 135, 260, 2128, 2130, 1, GumpButtonType.Reply, 0 );
			AddButton( 300, 260, 2119, 2121, 2, GumpButtonType.Reply, 0 );

		}