示例#1
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;
            }
        }