Azmyth.XNA.AzmythGame.ShowSettings C# (CSharp) Method

ShowSettings() public method

public ShowSettings ( bool blnShow ) : void
blnShow bool
return void
        public void ShowSettings(bool blnShow)
        {
            if (blnShow)
            {
                if (m_settings == null)
                {
                    m_settings = new frmSettings(this, m_graphics);

                    XGControl.BkgColor = Color.Black;
                    XGControl.ControlColor = Color.Gray;
                    XGControl.ForeColor = Color.White;

                    //XnaGUIManager.Activate(true);
                }
            }
            else
            {
                if (m_settings != null)
                {
                    XnaGUIManager.Controls.Remove(m_settings);

                    m_settings = null;
                }
            }
        }