示例#1
0
 public HitchGump(StablePost post) : base(0, 0)
 {
     m_Post   = post;
     Dragable = true;
     if (m_Post != null && m_Post.Controlled != null)            //<< Safety Catch shouldn't need it.
     {
         temp = m_Post.HomeRange;
         AddPage(0);
         AddBackground(0, 0, 248, 122, 9270);
         AddLabel(105, 75, 1071, Convert.ToString(temp));
         AddLabel(20, 20, 1071, @"Owner:");
         AddLabel(75, 20, 1071, m_Post.Owner.Name);
         AddLabel(20, 45, 1071, @"Pet:");
         AddLabel(75, 45, 1071, m_Post.PetName);
         AddLabel(20, 75, 1071, @"HomeRange:");
         AddButton(150, 80, 2223, 2223, 1, GumpButtonType.Reply, 0);
         AddButton(170, 80, 2224, 2224, 2, GumpButtonType.Reply, 0);
         AddButton(200, 75, 1154, 1155, 3, GumpButtonType.Reply, 0);
     }
     else
     {
         m_Post.Say("ERROR: Something went Fatally Wrong with the GUMP!");
         m_Post.Say("ERROR: Either the Post doesn't exist OR there is not Mobile Controlled!");
     }
 }
示例#2
0
        public HitchGump( StablePost post )
            : base(0, 0)
        {
            m_Post = post;
            temp = m_Post.HomeRange;
            Dragable = true;

            AddPage( 0 );
            AddBackground( 0, 0, 248, 122, 9270 );
            AddLabel( 105, 75, 1071, Convert.ToString( temp ) );
            AddLabel( 20, 20, 1071, @"Owner:" );
            AddLabel( 75, 20, 1071, m_Post.Owner.Name );
            AddLabel( 20, 45, 1071, @"Pet:" );
            AddLabel( 75, 45, 1071, m_Post.Controlled.Name );
            AddLabel( 20, 75, 1071, @"HomeRange:" );
            AddButton( 150, 80, 2223, 2223, 1, GumpButtonType.Reply, 0 );
            AddButton( 170, 80, 2224, 2224, 2, GumpButtonType.Reply, 0 );
            AddButton( 200, 75, 1154, 1155, 3, GumpButtonType.Reply, 0 );
        }