Пример #1
0
        public PetPSBookGump(Mobile from, PetPSBook book)       : base(0, 0)
        {
            m_From = from;
            m_Book = book;

            y = (m_Book.Entries.Count - 1) * 20;

            Closable   = true;
            Disposable = true;
            Dragable   = true;
            Resizable  = false;
            AddPage(0);
            AddBackground(10, 50, 230, 113 + y, 9250);
            AddImageTiled(24, 65, 200, 85 + y, 2053);
            AddAlphaRegion(24, 65, 200, 85 + y);
            AddImageTiled(24, 87, 200, 10, 9264);
            AddImageTiled(24, 120, 200, 10, 9264);
            AddImageTiled(105, 95, 3, 55 + y, 9264);
            AddImageTiled(179, 95, 3, 55 + y, 9264);

            AddLabel(65, 65, 190, "Pet PowerScroll Book");
            AddLabel(30, 100, 199, "Skill");
            AddLabel(110, 100, 199, "Value");
            AddLabel(185, 100, 199, "Drop");

            int y2      = 0;
            int butNumb = 1;

            for (int i = 0; i < m_Book.Entries.Count; i++)
            {
                PetPowerScroll scroll = m_Book.Entries[i] as PetPowerScroll;
                AddLabel(25, 130 + y2, 195, scroll.Skill.ToString());
                AddLabel(110, 130 + y2, 195, scroll.Value.ToString());
                AddButton(195, 133 + y2, 1209, 1210, butNumb, GumpButtonType.Reply, 0);
                y2 += 20;
                butNumb++;
            }
        }
Пример #2
0
		public PetPSBookGump(Mobile from, PetPSBook book)	: base( 0, 0 )
		{
			m_From = from;
			m_Book = book;

			y = (m_Book.Entries.Count -1)*20;

			Closable=true;
			Disposable=true;
			Dragable=true;
			Resizable=false;
			AddPage(0);
			AddBackground(10, 50, 230, 113+y, 9250);
			AddImageTiled( 24, 65, 200, 85+y, 2053);			
			AddAlphaRegion(24, 65, 200, 85+y);
			AddImageTiled(24, 87, 200, 10, 9264);
			AddImageTiled(24, 120, 200, 10, 9264);
			AddImageTiled(105, 95, 3, 55+y, 9264);
			AddImageTiled(179, 95, 3, 55+y, 9264);

			AddLabel(65, 65, 190, "Pet PowerScroll Book");
			AddLabel(30, 100, 199, "Skill");
			AddLabel(110, 100, 199, "Value");
			AddLabel(185, 100, 199, "Drop");
			
			int y2 = 0;
			int butNumb = 1;
			for(int i = 0; i < m_Book.Entries.Count; i++)
			{
				PetPowerScroll scroll = m_Book.Entries[i] as PetPowerScroll;
				AddLabel(25, 130+y2, 195, scroll.Skill.ToString());
				AddLabel(110, 130+y2, 195, scroll.Value.ToString());
				AddButton(195, 133+y2, 1209, 1210, butNumb, GumpButtonType.Reply, 0);
				y2+=20;
				butNumb++;
			}
		}