class TransmogButtonView extends BaseButtonView
{
	private editable var m_container : inkWidgetRef;
	private var m_isActive : Bool;

	public function SetActive( value : Bool )
	{
		if( m_isActive != value )
		{
			m_isActive = value;
			inkWidgetRef.SetState( m_container, ( ( value ) ? ( 'Active' ) : ( 'Default' ) ) );
		}
	}

	public function IsActive() : Bool
	{
		return m_isActive;
	}

	protected event OnButtonStateChanged( controller : weak< inkButtonController >, oldState : inkEButtonState, newState : inkEButtonState )
	{
		super.OnButtonStateChanged( controller, oldState, newState );
		if( newState == inkEButtonState.Normal )
		{
			GetRootWidget().SetState( 'DefaultTransmog' );
		}
		else if( newState == inkEButtonState.Hover )
		{
			GetRootWidget().SetState( 'Hover' );
		}
	}

}

