Beispiel #1
0
 /// <summary>
 /// Closes window.
 /// </summary>
 public void CloseWindow()
 {
     if (Parent == null)
     {
         GUIManager.Remove(this);
     }
     else
     {
         GUIManager.Remove(this);
     }
 }
Beispiel #2
0
        /// <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;
            }
        }
Beispiel #3
0
 /// <summary>
 /// When popup is closed, remove it from the GUIManager.
 /// </summary>
 /// <param name="sender">Sender.</param>
 protected void OnClose(object sender)
 {
     GUIManager.Remove(this);
 }