Beispiel #1
0
            public ResetKeyNumber(Mobile m, SecretChest c)
                : base(1151609, -1) // Reset Key Number
            {
                Mobile = m;
                Chest  = c;

                if (!c.IsChildOf(m.Backpack) || !Chest.Locked)
                {
                    Flags |= CMEFlags.Disabled;
                }
            }
Beispiel #2
0
            public SetEditKeyNumber(Mobile m, SecretChest c)
                : base(1151608, -1) // Set/Edit Key Number
            {
                Mobile = m;
                Chest  = c;

                if (!c.IsChildOf(m.Backpack))
                {
                    Flags |= CMEFlags.Disabled;
                }
            }
Beispiel #3
0
        public SecretChestGump(SecretChest chest, int[] sk, bool setedit)
            : base(0, 0)
        {
            Chest = chest;

            SetEdit = setedit;

            if (setedit)
            {
                TempSecretKey = chest.SecretKey;
            }
            else
            {
                if (sk == null)
                {
                    TempSecretKey = new int[] { 0, 0, 0, 0, 0 };
                }
                else
                {
                    TempSecretKey = sk;
                }
            }

            AddPage(0);

            AddImage(50, 50, 0x58D);

            AddButton(133, 270, 0x81A, 0x81B, SetEdit ? 2 : 1, GumpButtonType.Reply, 0); // OKAY
            AddButton(320, 270, 0x819, 0x818, 0, GumpButtonType.Reply, 0);               // CANCEL

            for (int i = 0; i < TempSecretKey.Length; ++i)
            {
                AddButton(192 + (24 * i), 190, 0x58C, 0x58C, 10 + (i * 2), GumpButtonType.Reply, 0);
                AddImage(190 + (24 * i), 200, 0x58F + TempSecretKey[i]);
                AddButton(192 + (24 * i), 230, 0x599, 0x599, 11 + (i * 2), GumpButtonType.Reply, 0);
            }
        }
Beispiel #4
0
 public SecretChestGump(SecretChest chest, bool setedit)
     : this(chest, null, setedit)
 {
 }