class ImageActionButtonLogicController extends DeviceActionWidgetControllerBase
{
	[ category = "Widget Refs" ]
	private editable var m_tallImageWidget : inkImageRef;
	protected var m_price : Int32;

	public override function Initialize( gameController : DeviceInkGameControllerBase, const widgetData : ref< SActionWidgetPackage > )
	{
		var action : DispenceItemFromVendor;
		super.Initialize( gameController, widgetData );
		action = ( ( DispenceItemFromVendor )( widgetData.action ) );
		if( action )
		{
			inkImageRef.SetTexturePart( m_tallImageWidget, action.GetAtlasTexture() );
			m_price = action.GetPrice();
		}
	}

	public function GetPrice() : Int32
	{
		return m_price;
	}

}

