class sampleUISoundsLogicController extends inkLogicController
{
	private var textWidget : weak< inkText >;

	protected event OnInitialize()
	{
		textWidget = ( ( inkText )( GetWidget( 'sample_button/button_text' ) ) );
	}

	public function OnHoverOver( button : weak< inkWidget > )
	{
		textWidget.SetText( "Press to start scanning" );
	}

	public function OnHoverOut( button : weak< inkWidget > )
	{
		textWidget.SetText( "Scanning is stopped" );
	}

	public function OnPress( button : weak< inkWidget > )
	{
		textWidget.SetText( "Scanning ..." );
	}

	public function OnRelease( button : weak< inkWidget > )
	{
		textWidget.SetText( "Scanning complete" );
	}

}

