public override void Exit() { UIManager.Instance.HideCursor(); editor.Dispose(); OverlayContainer.ChildIterator children = editorPanel.GetChildIterator(); while (children.MoveNext()) { OverlayElement currentElement = children.Current; editorPanel.RemoveChild(currentElement.Name); } UIManager.Instance.DestroyWidget(btnAddObject); UIManager.Instance.DestroyWidget(btnAIMeshCreateLine); UIManager.Instance.DestroyWidget(btnAIMeshCreateVertex); UIManager.Instance.DestroyWidget(btnClose); UIManager.Instance.DestroyWidget(btnSave); UIManager.Instance.DestroyWidget(lbAIMesh); UIManager.Instance.DestroyWidget(lbGeneral); UIManager.Instance.DestroyWidget(lbObjects); UIManager.Instance.DestroyWidget(lsvObjects); Widget.NukeOverlayElement(horline); Widget.NukeOverlayElement(horline2); UIManager.Instance.GetTraysLayer().Remove2D(editorPanel); Widget.NukeOverlayElement(editorPanel); }
public static void ChangeContainerColour(OverlayContainer cont, ColourValue c1, ColourValue c2) { OverlayContainer.ChildIterator i = cont.GetChildIterator(); while (i.MoveNext()) { OverlayElement element = i.Current; if (element != null) { ChangeElementColour(element, c1, c2); } } }