Exemplo n.º 1
0
        public RewardTicketsGump(Mobile from, Item item) : base(50, 50)
        {
            from.CloseGump(typeof(RewardTicketsGump));
            m_From = from;
            if (!(item is RewardTicketLedger))
            {
                return;
            }
            RewardTicketLedger tl = item as RewardTicketLedger;

            m_TL = tl;

            AddPage(0);

            AddBackground(40, 40, 360, 325, 5170);

            AddLabel(75, 75, 69, item.Name);
            AddLabel(75, 100, 88, "You have " + ((RewardTicketLedger)tl).RewardTickets + " Reward tickets.");
            AddLabel(75, 125, 32, @"Add tickets to your Ledger manually:");
            AddButton(307, 130, 2460, 2461, 1, GumpButtonType.Reply, 0);             //add tickets
            AddLabel(75, 150, 88, @"How many ticket do you want to take out?");

            AddBackground(125, 200, 195, 41, 9270);             //text entry backgrounf
            if (((RewardTicketLedger)tl).RewardTickets >= 10000)
            {
                AddTextEntry(145, 211, 155, 21, 39, 3, "10000");                 //default text entry (where we write how much RewardTickets)
            }
            else
            {
                AddTextEntry(145, 211, 155, 21, 39, 3, "" + ((RewardTicketLedger)tl).RewardTickets + "");
            }

            //ticket item
            AddLabel(75, 180, 69, @"Extract tickets:");
            AddImage(70, 200, 92);
            AddButton(79, 207, 2474, 0, 2, GumpButtonType.Reply, 0);

            AddImage(70, 255, 7012);
            AddImage(300, 255, 7012);
            AddLabel(146, 277, 38, @"Reward Ticket System");
        }
Exemplo n.º 2
0
 public SetOwnerTarget(RewardTicketLedger tl) : base(18, false, TargetFlags.None)
 {
     m_TL = tl;
 }
Exemplo n.º 3
0
 public AddRewardTicketsTarget(RewardTicketLedger tl) : base(18, false, TargetFlags.None)
 {
     m_TL = tl;
 }
			public SetOwnerTarget( RewardTicketLedger tl ) : base( 18, false, TargetFlags.None )
			{
				m_TL = tl;
			}
		public RewardTicketsGump( Mobile from, Item item ) : base( 50, 50 )
		{
			from.CloseGump( typeof( RewardTicketsGump ) );
			m_From = from;
			if (!(item is RewardTicketLedger))
				return;
			RewardTicketLedger tl = item as RewardTicketLedger;
			m_TL = tl;

			AddPage(0);

			AddBackground(40, 40, 360, 325, 5170);

			AddLabel(75, 75, 69, item.Name);
			AddLabel(75, 100, 88, "You have " + ((RewardTicketLedger)tl).RewardTickets + " Reward tickets.");
			AddLabel(75, 125, 32, @"Add tickets to your Ledger manually:");
			AddButton(307, 130, 2460, 2461, 1, GumpButtonType.Reply, 0); //add tickets
			AddLabel(75, 150, 88, @"How many ticket do you want to take out?");

			AddBackground(125, 200, 195, 41, 9270); //text entry backgrounf
			if (((RewardTicketLedger)tl).RewardTickets >= 10000)
				AddTextEntry(145, 211, 155, 21, 39, 3, "10000"); //default text entry (where we write how much RewardTickets)
			else
				AddTextEntry(145, 211, 155, 21, 39, 3, "" + ((RewardTicketLedger)tl).RewardTickets + "");

			//ticket item
			AddLabel(75, 180, 69, @"Extract tickets:");
			AddImage(70, 200, 92);
			AddButton(79, 207, 2474, 0, 2, GumpButtonType.Reply, 0);

			AddImage(70, 255, 7012);
			AddImage(300, 255, 7012);
			AddLabel(146, 277, 38, @"Reward Ticket System");
		}
			public AddRewardTicketsTarget( RewardTicketLedger tl ) : base( 18, false, TargetFlags.None )
			{
				m_TL = tl;
			}