예제 #1
0
        public CraftTrainerGump(Mobile from, CraftTrainer trainer) : base(25, 25)
        {
            m_From    = from;
            m_Trainer = trainer;
            m_From.CloseGump(typeof(CraftTrainerGump));

            AddPage(0);

            AddBackground(50, 10, 425, 174, 5054);
            AddImageTiled(58, 20, 408, 155, 2624);
            AddAlphaRegion(58, 20, 408, 155);

            AddLabel(75, 25, 88, "What do you want to study?");

            AddButton(75, 50, 4005, 4007, 1, GumpButtonType.Reply, 0);
            AddLabel(125, 50, 0x486, "Blacksmith");

            AddButton(75, 75, 4005, 4007, 2, GumpButtonType.Reply, 0);
            AddLabel(125, 75, 0x486, "Carpentry");

            AddButton(75, 100, 4005, 4007, 3, GumpButtonType.Reply, 0);
            AddLabel(125, 100, 0x486, "Tailoring");

            AddButton(75, 125, 4005, 4007, 4, GumpButtonType.Reply, 0);
            AddLabel(125, 125, 0x486, "Alchemy");

            AddButton(75, 150, 4005, 4007, 5, GumpButtonType.Reply, 0);
            AddLabel(125, 150, 0x486, "Inscription");

            AddButton(275, 50, 4005, 4007, 6, GumpButtonType.Reply, 0);
            AddLabel(325, 50, 0x486, "Cooking");

            AddButton(275, 75, 4005, 4007, 7, GumpButtonType.Reply, 0);
            AddLabel(325, 75, 0x486, "Fletching");

            AddButton(275, 100, 4005, 4007, 8, GumpButtonType.Reply, 0);
            AddLabel(325, 100, 0x486, "Cartography");

            AddButton(275, 125, 4005, 4007, 9, GumpButtonType.Reply, 0);
            AddLabel(325, 125, 0x486, "Tinkering");

            AddButton(275, 150, 4005, 4007, 10, GumpButtonType.Reply, 0);
            AddLabel(325, 150, 0x486, "Poisoning");
        }
예제 #2
0
 public StudyTimer(Mobile from, int studyTime, CraftTrainer craftTrainer) : base(TimeSpan.FromSeconds(studyTime))
 {
     m_From    = from;
     m_Trainer = craftTrainer;
 }
		public StudyTimer( Mobile from, int studyTime, CraftTrainer craftTrainer ) : base( TimeSpan.FromSeconds( studyTime ) )
		{
			m_From = from;
			m_Trainer = craftTrainer;
		}
		public CraftTrainerGump( Mobile from, CraftTrainer trainer ) : base( 25,25 ) 
		  {	 
			m_From = from;
			m_Trainer = trainer;
			m_From.CloseGump( typeof( CraftTrainerGump ) );
				
         	AddPage( 0 ); 

			AddBackground( 50, 10, 425, 174, 5054 );
			AddImageTiled( 58, 20, 408, 155, 2624 );
			AddAlphaRegion( 58, 20, 408, 155 );

 			AddLabel( 75, 25, 88, "What do you want to study?");

         	AddButton( 75, 50, 4005, 4007, 1, GumpButtonType.Reply, 0 );
 			AddLabel( 125, 50, 0x486, "Blacksmith" ); 

         	AddButton( 75, 75, 4005, 4007, 2, GumpButtonType.Reply, 0 );
         	AddLabel( 125, 75, 0x486, "Carpentry" ); 

         	AddButton( 75, 100, 4005, 4007, 3, GumpButtonType.Reply, 0 );
         	AddLabel( 125, 100, 0x486, "Tailoring" ); 

         	AddButton( 75, 125, 4005, 4007, 4, GumpButtonType.Reply, 0 );
         	AddLabel( 125, 125, 0x486, "Alchemy" ); 

         	AddButton( 75, 150, 4005, 4007, 5, GumpButtonType.Reply, 0 );
         	AddLabel( 125, 150, 0x486, "Inscription" ); 

         	AddButton( 275, 50, 4005, 4007, 6, GumpButtonType.Reply, 0 );
        	AddLabel( 325, 50, 0x486, "Cooking" ); 

         	AddButton( 275, 75, 4005, 4007, 7, GumpButtonType.Reply, 0 );
         	AddLabel( 325, 75, 0x486, "Fletching" ); 

         	AddButton( 275, 100, 4005, 4007, 8, GumpButtonType.Reply, 0 );
         	AddLabel( 325, 100, 0x486, "Cartography" ); 

         	AddButton( 275, 125, 4005, 4007, 9, GumpButtonType.Reply, 0 );
         	AddLabel( 325, 125, 0x486, "Tinkering" ); 

         	AddButton( 275, 150, 4005, 4007, 10, GumpButtonType.Reply, 0 );
         	AddLabel( 325, 150, 0x486, "Poisoning" ); 
		}