/// <summary> /// Disconnects provided display. +Overloads. /// </summary> /// <param name="Display">Example: A Text Panel</param> public void DisconnectDisplay(IMyTextSurface Display) { if (!ConnectedDisplays.Contains(Display)) { return; } ConnectedDisplays.Remove(Display); Copy(new SandboxEmulation.MyTextSurface(), Display, true); }
/// <summary> /// Connects to a new block that only has one display. +Overloads. /// </summary> /// <param name="Display">Example: A Text Panel</param> public void ConnectDisplay(IMyTextSurface Display) { if (ConnectedDisplays.Contains(Display)) { return; } ConnectedDisplays.Add(Display); CopyTo(Display, true); }