Esempio n. 1
0
        public override void Draw(SectionModule section)
        {
            var target = FlightGlobals.fetch.VesselTarget?.GetVessel();

            if (target != null)
            {
                double longitude = AngleHelper.Clamp180(target.longitude);
                DrawLine(Units.ToAngleDMS(longitude) + (longitude < 0.0 ? "W" : " E"), section.IsHud);
            }
        }
Esempio n. 2
0
        public override void Draw(SectionModule section)
        {
            var target = FlightGlobals.fetch.VesselTarget;

            if (target != null)
            {
                var    vessel   = target.GetVessel();
                double latitude = AngleHelper.Clamp180(vessel.latitude);
                DrawLine(Units.ToAngleDMS(latitude) + (latitude < 0 ? " S" : " N"), section.IsHud);
            }
        }
Esempio n. 3
0
        public override void Draw(Unity.Flight.ISectionModule section)
        {
            var target = Rendezvous.RendezvousProcessor.targetVessel;

            if (target != null)
            {
                var vessel = target.GetVessel();
                if (vessel == null)
                {
                    DrawLine("N/A", section.IsHud);
                }
                else
                {
                    double latitude = AngleHelper.Clamp180(vessel.latitude);
                    DrawLine(Units.ToAngleDMS(latitude) + (latitude < 0 ? " S" : " N"), section.IsHud);
                }
            }
        }
Esempio n. 4
0
        public override void Draw(Unity.Flight.ISectionModule section)
        {
            if (!RendezvousProcessor.ShowDetails)
            {
                return;
            }

            var target = Rendezvous.RendezvousProcessor.targetVessel;

            if (target != null)
            {
                var vessel = target.GetVessel();
                if (vessel == null)
                {
                    DrawLine("N/A", section.IsHud);
                }
                else
                {
                    double longitude = AngleHelper.Clamp180(vessel.longitude);
                    DrawLine(Units.ToAngleDMS(longitude) + (longitude < 0.0 ? " W" : " E"), section.IsHud);
                }
            }
        }
Esempio n. 5
0
        public override void Draw(Unity.Flight.ISectionModule section)
        {
            double angle = AngleHelper.Clamp180(FlightGlobals.ship_longitude);

            DrawLine(Units.ToAngleDMS(angle) + (angle < 0.0 ? " W" : " E"), section.IsHud);
        }