Exemplo n.º 1
0
        public PSBookGump(Mobile from, PSBook 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, "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++)
            {
                PowerScroll scroll = m_Book.Entries[i] as PowerScroll;
                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++;
            }
        }
Exemplo n.º 2
0
		public PSBookGump(Mobile from, PSBook 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, "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++)
			{
				PowerScroll scroll = m_Book.Entries[i] as PowerScroll;
				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++;
			}
		}