Beispiel #1
0
        public void InitializeEditRightPanel(PremiumSpawner spawner)
        {
            AddLabel(350, 60, 52, "Creatures List");

            AddButton(525, 105, 0xFB7, 0xFB9, 20000, GumpButtonType.Reply, 0);
            AddLabel(525, 80, 52, "Okay");

            AddButton(525, 185, 0xFB4, 0xFB6, 20001, GumpButtonType.Reply, 0);
            AddLabel(500, 160, 52, "Bring to Home");

            AddButton(525, 265, 0xFA8, 0xFAA, 20002, GumpButtonType.Reply, 0);
            AddLabel(500, 240, 52, "Total Respawn");

            AddButton(525, 345, 0xFAB, 0xFAD, 20003, GumpButtonType.Reply, 0);
            AddLabel(510, 320, 52, "Properties");


            for (int i = 0; i < 13; i++)
            {
                AddButton(425, (22 * i) + 100, 0xFA5, 0xFA7, 20005 + (i * 2), GumpButtonType.Reply, 0);
                AddButton(454, (22 * i) + 100, 0xFA2, 0xFA4, 20004 + (i * 2), GumpButtonType.Reply, 0);

                AddImageTiled(275, (22 * i) + 100, 149, 23, 0x52);
                AddImageTiled(276, (22 * i) + 100, 147, 21, 0xBBC);

                string str = "";

                if (i < spawner.CreaturesName.Count)
                {
                    str = (string)spawner.CreaturesName[i];
                    int count = spawner.CountCreatures(str);

                    AddLabel(285, (22 * i) + 101, 0, count.ToString());
                }

                AddTextEntry(305, (22 * i) + 101, 120, 21, 0, i, str);
            }
        }