class inkButtonTintController extends inkButtonController
{
	editable var m_NormalColor : Color;
	editable var m_HoverColor : Color;
	editable var m_PressColor : Color;
	editable var m_DisableColor : Color;
	editable var m_TintControlRef : inkWidgetRef;

	protected event OnButtonStateChanged( controller : weak< inkButtonController >, oldState : inkEButtonState, newState : inkEButtonState )
	{
		switch( newState )
		{
			case inkEButtonState.Normal:
				inkWidgetRef.SetTintColor( m_TintControlRef, m_NormalColor );
			break;
			case inkEButtonState.Hover:
				inkWidgetRef.SetTintColor( m_TintControlRef, m_HoverColor );
			break;
			case inkEButtonState.Press:
				inkWidgetRef.SetTintColor( m_TintControlRef, m_PressColor );
			PlaySound( 'Button', 'OnPress' );
			break;
			case inkEButtonState.Disabled:
				inkWidgetRef.SetTintColor( m_TintControlRef, m_DisableColor );
			break;
		}
	}

}

