protected override string RequirementText()
        {
            string body = targetBody == null?Localizer.GetStringByTag("#cc.req.ProgressCelestialBody.genericBody") : targetBody.displayName;

            string lat = StringBuilderCache.Format("<color=#{0}>{1}</color>", MissionControlUI.RequirementHighlightColor, latitude.ToString("N1"));
            string lon = StringBuilderCache.Format("<color=#{0}>{1}</color>", MissionControlUI.RequirementHighlightColor, longitude.ToString("N1"));

            return(Localizer.Format(invertRequirement ? "#cc.scansat.req.SCANsatLocationCoverage.x" : "#cc.scansat.req.SCANsatLocationCoverage",
                                    SCANsatCoverage.ScanDisplayName(scanType), lat, lon, body));
        }
Пример #2
0
        protected override string RequirementText()
        {
            string body = targetBody == null?Localizer.GetStringByTag("#cc.req.ProgressCelestialBody.genericBody") : targetBody.displayName;

            if (minCoverage > 0 && maxCoverage < 100.0)
            {
                return(Localizer.Format("#cc.scansat.req.SCANsatCoverage.between", minCoverage.ToString("N0"), maxCoverage.ToString("N0"), SCANsatCoverage.ScanDisplayName(scanType), body));
            }
            else if (minCoverage > 0)
            {
                return(Localizer.Format("#cc.scansat.req.SCANsatCoverage.atLeast", minCoverage.ToString("N0"), SCANsatCoverage.ScanDisplayName(scanType), body));
            }
            else
            {
                return(Localizer.Format("#cc.scansat.req.SCANsatCoverage.atMost", maxCoverage.ToString("N0"), SCANsatCoverage.ScanDisplayName(scanType), body));
            }
        }