Engines/FlatRedBallXNA/FlatRedBall/Gui/ToggleButton.cs
/// <summary>
/// Presses the ToggleButton down but does not call the onClick event.
/// </summary>
Presses the ToggleButton down but does not call the onClick event.
Presses the ToggleButton down but does not call the onClick event .
public void PressNoCall()
		{
			if(Enabled == false)	return;
            ButtonPushedState = ButtonPushedState.Down;
			for(int i = 0; i < radioGroup.Count; i++)
			{
				if(radioGroup[i] != this)
				{
                    ((ToggleButton)radioGroup[i]).ButtonPushedState = ButtonPushedState.Up;
				}
			}
            base.Text = this.pressedText;
            if (IsPressed && mDownTexture != null)
            {
                mOverlayTexture = mDownTexture;
            }
            else if (!IsPressed && mUpTexture != null)
            {
                mOverlayTexture = mUpTexture;
            }
		}
public void PressNoCall ( ) { if ( Enabled == false ) return ; ButtonPushedState = ButtonPushedState . Down ; for ( int i = 0 ; i < radioGroup . Count ; i ++ ) { if ( radioGroup [ i ] != this ) { ( ( ToggleButton ) radioGroup [ i ] ) . ButtonPushedState = ButtonPushedState . Up ; } } base . Text = this . pressedText ; if ( IsPressed && mDownTexture != null ) { mOverlayTexture = mDownTexture ; } else if ( ! IsPressed && mUpTexture != null ) { mOverlayTexture = mUpTexture ; } }
Presses the ToggleButton down but does not call the onClick event.
Presses the ToggleButton down but does not call the onClick event .