public TransponderInfo(ST_Transponder ponder) { transponder = ponder; name = ponder.vessel.vesselName; altitude = ponder.vessel.altitude; velocity = 0; // updated later }
public static void ShowGUI(ST_Transponder xpond) { xpondInstance = xpond; newName = xpond.transponderName; if (windowInstance != null) { windowInstance.enabled = true; } }
public static void ShowGUI(ST_Transponder xpond) { xpondInstance = xpond; newName = xpond.transponderName; if (windowInstance != null) { windowInstance.enabled = true; } }
public void AddTransponder(ST_Transponder ponder) { uint id = ponder.part.flightID; //Debug.Log (String.Format ("[ST Tracker] AddTransponder: {0}", id)); if (transponders.ContainsKey (id)) { // may have temporarlily lost contact transponders[id].transponder = ponder; return; } transponders[id] = new TransponderInfo (ponder); }
public void AddTransponder(ST_Transponder ponder) { uint id = ponder.part.flightID; //Debug.Log (String.Format ("[ST Tracker] AddTransponder: {0}", id)); if (transponders.ContainsKey(id)) { // may have temporarlily lost contact transponders[id].transponder = ponder; return; } transponders[id] = new TransponderInfo(ponder); }
public void RemoveTransponder(ST_Transponder ponder) { uint id = ponder.part.flightID; Debug.Log(String.Format("[ST Tracker] RemoveTransponder: {0}", id)); if (!transponders.ContainsKey(id)) { return; } double UT = Planetarium.GetUniversalTime(); Debug.Log(String.Format("[ST Tracker] RemoveTransponder: {0} {1}", transponders[id].transponder, UT)); if (transponders[id].transponder != null) { transponders[id].transponder = null; transponders[id].lostContact = UT; } }
public void RemoveTransponder(ST_Transponder ponder) { uint id = ponder.part.flightID; Debug.Log (String.Format ("[ST Tracker] RemoveTransponder: {0}", id)); if (!transponders.ContainsKey (id)) { return; } double UT = Planetarium.GetUniversalTime (); Debug.Log (String.Format ("[ST Tracker] RemoveTransponder: {0} {1}", transponders[id].transponder, UT)); if (transponders[id].transponder != null) { transponders[id].transponder = null; transponders[id].lostContact = UT; } }
public TransponderInfo(ST_Transponder ponder) { transponder = ponder; name = ponder.vessel.vesselName; altitude = ponder.vessel.altitude; velocity = 0; // updated later }