/// <summary> /// Closes window. /// </summary> public void CloseWindow() { if (Parent == null) { GUIManager.Remove(this); } else { GUIManager.Remove(this); } }
/// <summary> /// Closes listbox. /// </summary> protected void CloseListBox() { if (this.isListBoxOpen) { GUIManager.Remove(this.listBox); // Check if mouse is over button if (this.button.CheckCoordinates(InputEvents.GetMouseX(), InputEvents.GetMouseY())) { this.button.CurrentSkinState = SkinState.Hover; } else { this.button.CurrentSkinState = SkinState.Normal; } this.isListBoxOpen = false; } }
/// <summary> /// When popup is closed, remove it from the GUIManager. /// </summary> /// <param name="sender">Sender.</param> protected void OnClose(object sender) { GUIManager.Remove(this); }