コード例 #1
0
        public DaviesLockerGump(Mobile from, DaviesLocker Table) : base(0, 0)
        {
            m_Table = Table;

            Closable   = true;
            Disposable = true;
            Dragable   = true;
            Resizable  = false;

            AddBackground();



            for (int page = 0; page < 500; ++page)
            {
                AddPage(1 + page);

                int pageplus;
                pageplus = (m_Table.Entries.Count / 10) + 1;
                if (pageplus > 50)
                {
                    pageplus = 50;
                }
                AddLabel(110, 545, 2041, String.Format("Page {0} of {1}", page + 1, pageplus));                     // # of Pages

                if (page < 50)
                {
                    AddButton(625, 545, 4005, 4006, 0, GumpButtonType.Page, 2 + page); // next button
                }
                AddLabel(550, 545, 2041, @"PAGE");                                     // Page Label
                AddButton(500, 545, 4014, 4015, 0, GumpButtonType.Page, page);         // prev button


                AddLabel(550, 520, 2041, @"ADD MAPS");                          // Add Map Label
                AddButton(500, 520, 4011, 4012, 1000, GumpButtonType.Reply, 0); //Add Map button

                for (int count = 0; count < 10; ++count)
                {
                    AddDetails((page * 10) + count, count);
                }
            }
        }
コード例 #2
0
 public DaviesLockerTarget(DaviesLocker table) : base(18, false, TargetFlags.None)
 {
     m_Table = table;
 }