Example #1
0
        private void GenerateEvilAlt(int num4, int num5, List <ModBiome> allBiome)
        {
            if (CurrentEvil == VanillaBiome.Corruption.ToString() || CurrentEvil == VanillaBiome.Crimson.ToString())
            {
                WorldGen.GERunner(num4, 0, (float)(3 * -(float)num5), 5f, false);
                return;
            }

            ModBiome biome = allBiome.Single(i => i.BiomeName == CurrentEvil);
        }
Example #2
0
        public UIMenuButton GenerateButton(ModBiome biome)
        {
            UIMenuButton button = new UIMenuButton(biome.BiomeName, 5, 5);

            button.SetChangingSize(0.6f, 0.8f);
            button.OnClick += (evt, element) =>
            {
                BiomeWorld.currentEvil = biome.BiomeName;
                BiomeWorld.PendingEvil = biome.BiomeName;
                Main.menuMode          = 7;
            };
            return(button);
        }