Exemplo n.º 1
0
        private void LocSecPage(int width, ref int y)
        {
            AddHtml(0, y += 10, width, "<CENTER>Lockdowns and Secures");
            AddImage(width / 2 - 100, y + 2, 0x39);
            AddImage(width / 2 + 70, y + 2, 0x3B);

            AddHtml(0, y += 25, width, "<CENTER>Suggest Secures");
            AddButton(width / 2 - 70, y + 3, 0x2716, "Suggest LocSec", new GumpCallback(SuggestLocSec));
            AddButton(width / 2 + 60, y + 3, 0x2716, "Suggest LocSec", new GumpCallback(SuggestLocSec));

            AddHtml(30, y += 25, width / 2 - 20, "<DIV ALIGN=RIGHT>Secures (Max: " + (General.RemainingSecures(c_Contract.ParentHouse) + c_Contract.Secures) + ")");
            AddTextField(width / 2 + 50, y, 50, 20, 0x480, 0xBBC, "Secures", c_Contract.Secures.ToString());
            AddButton(width / 2 + 25, y + 3, 0x2716, "Secures", new GumpCallback(Secures));

            AddHtml(30, y += 20, width / 2 - 20, "<DIV ALIGN=RIGHT>Lockdowns (Max: " + (General.RemainingLocks(c_Contract.ParentHouse) + c_Contract.Locks) + ")");
            AddTextField(width / 2 + 50, y, 50, 20, 0x480, 0xBBC, "Lockdowns", c_Contract.Locks.ToString());
            AddButton(width / 2 + 25, y + 3, 0x2716, "Lockdowns", new GumpCallback(Lockdowns));

            string helptext = String.Format("Sans donner d'espace, ce ne serait pas vraiment une maison, ici, vous assignez les lockdowns" +
                                            "et secures de votre propre maison. Utilisez le bouton suggérer pour une idée de combien vous devriez alouer. Soyez très prudent lorsque vous" +
                                            "louez votre bien: si vous utilisez trop de stockage vous commencerez à utiliser du stockage que vous avez réservé a vos clients" +
                                            "Vous recevrez un avertissement de 48 heures lorsque cela se produit, après quoi le contrat disparaîtra!");

            AddHtml(10, y += 35, width - 20, 180, helptext, false, false);

            y += 180;

            AddHtml(30, y += 20, 80, "Previous");
            AddButton(10, y, 0x15E3, 0x15E7, "Previous", new GumpStateCallback(ChangePage), (int)c_Page - 1);

            if (c_Contract.Locks != 0 && c_Contract.Secures != 0)
            {
                AddHtml(width - 60, y, 60, "Next");
                AddButton(width - 30, y, 0x15E1, 0x15E5, "Next", new GumpStateCallback(ChangePage), (int)c_Page + 1);
            }
        }