getState() public method

public getState ( ) : State
return State
Esempio n. 1
0
        private void toggleButton(Button a_button)
        {
            if (a_button.getState() == Button.State.Toggled)
            {
                a_button.setState(Button.State.Normal);
            }
            else
            {
                a_button.setState(Button.State.Toggled);
            }

            if (a_button == m_btnFullscreen)
            {
                m_settingsFile["Fullscreen"] = (m_btnFullscreen.getState() == Button.State.Toggled).ToString().ToLower();
            }
            else if (a_button == m_btnAntialias)
            {
                m_settingsFile["Antialias"]	= (m_btnAntialias.getState() == Button.State.Toggled).ToString().ToLower();
            }
            else if (a_button == m_btnVSync)
            {
                m_settingsFile["VSync"]	= (m_btnVSync.getState() == Button.State.Toggled).ToString().ToLower();
            }
        }