Esempio n. 1
0
        public ForensicLootGump(Mobile owner, ArrayList looters, int page, BountyLedger book) : base(GumpOffsetX, GumpOffsetY)
        {
            owner.CloseGump(typeof(ForensicLootGump));

            m_Owner   = owner;
            m_Mobiles = looters;
            m_Book    = book;

            Initialize(page);
        }
Esempio n. 2
0
        public ForensicKillerGump(Mobile owner, Mobile killer, BountyLedger book) : base(30, 30)
        {
            owner.CloseGump(typeof(ForensicKillerGump));

            m_Owner  = owner;
            m_Killer = killer;
            m_Book   = book;

            BuildKillerGump();
        }
        public ForensicChoiceGump(Mobile owner, Mobile killer, ArrayList looters, BountyLedger book) : base(30, 30)
        {
            owner.CloseGump(typeof(ForensicChoiceGump));

            m_Owner   = owner;
            m_Killer  = killer;
            m_Looters = looters;
            m_Book    = book;

            BuildChoiceGump();
        }
        public BountyLedgerGump(Mobile from, BountyLedger book)
            : base(150, 200)
        {
            m_Book = book;
            AddBackground();

            // Packout old entries;
            m_Book.PackEntries();

            ArrayList entries = m_Book.Entries;

            try
            {
                AddIndex();
            }
            catch (Exception e)
            {
                LogHelper.LogException(e);
                Console.WriteLine("BountyLedgerGump: Error in AddIndex");
                Console.WriteLine(e);
            }

            for (int page = 0; page < 8; ++page)
            {
                AddPage(2 + page);

                AddButton(125, 14, 2205, 2205, 0, GumpButtonType.Page, 1 + page);

                if (page < 7)
                {
                    AddButton(393, 14, 2206, 2206, 0, GumpButtonType.Page, 3 + page);
                }

                for (int half = 0; half < 2; ++half)
                {
                    try
                    {
                        AddDetails((page * 2) + half, half);
                    }
                    catch (Exception e)
                    {
                        LogHelper.LogException(e);
                        Console.WriteLine("BountyLedgerGump: Error in AddDetails");
                        Console.WriteLine(e);
                    }
                }
            }
        }
Esempio n. 5
0
 public AddEntryTarget(BountyLedger book) : base(10, false, TargetFlags.None)
 {
     m_Book = book;
 }