Пример #1
0
 public void ShowWormholes()
 {
     foreach (var WormholeGate in Plugin.Config.WormholeGates)
     {
         var description = WormholeGate.Description;
         var color       = "#ff00f7";
         if (description == null)
         {
             description = "";
         }
         else
         {
             description = WormholeGate.Description.Replace("\\n", "\n");
         }
         if (WormholeGate.HexColor != null && WormholeGate.HexColor != "")
         {
             color = WormholeGate.HexColor;
         }
         try
         {
             MyVisualScriptLogicProvider.AddGPS(WormholeGate.Name, description, new Vector3D(WormholeGate.X, WormholeGate.Y, WormholeGate.Z), ColorUtils.TranslateColor(color), 0, Context.Player.IdentityId);
             Context.Respond("GPS added to your list if it didn't already exist");
         }
         catch
         {
             Context.Respond("Error: tell an admin to check the Hexcolor setting make sure it has # at the begining");
         }
     }
 }
Пример #2
0
 private void createTempMarker(string text, int time, Vector3 pos)
 {
     deleteMarkerAt   = ticks + time * 60;
     deleteMarkerName = text;
     MyVisualScriptLogicProvider.AddGPS(text, "", pos, Color.Green, time,
                                        MyAPIGateway.Session.Player.IdentityId);
 }
Пример #3
0
        private void createPatrolPointHUD(Vector3 pos)
        {
            var count = patrolPoints.Count;

            MyVisualScriptLogicProvider.AddGPS("Patrol Point #" + count, "", pos, Color.Green, 0,
                                               MyAPIGateway.Session.Player.IdentityId);
        }
Пример #4
0
        public void startRecordingPoints()
        {
            resetData();
            deleteOldWaypoints(false);

            recordingPoints = true;
            MyVisualScriptLogicProvider.AddGPS("Adding Waypoints", "", block.GetPosition(), Color.Aqua, 0,
                                               MyAPIGateway.Session.Player.IdentityId);
        }