Example #1
0
        public override string GetDisplayName(SubsystemTerrain subsystemTerrain, int value)
        {
            int   data       = Terrain.ExtractData(value);
            int   color      = GetColor(data);
            Shape shape      = GetShape(data);
            int   altitude   = GetAltitude(data);
            bool  flickering = GetFlickering(data);

            return(string.Format(LanguageControl.GetFireworks("Other", "1"), LanguageControl.GetFireworks("FireworksColorDisplayNames", color.ToString()), flickering ? LanguageControl.GetFireworks("Other", "2") : null, LanguageControl.GetFireworks("ShapeDisplayNames", ((int)shape).ToString()), (altitude == 0) ? LanguageControl.GetFireworks("Other", "3") : LanguageControl.GetFireworks("Other", "4")));
        }