class RipperdocCwPreviewItemController extends inkLogicController
{
	private editable var m_itemIcon : inkWidgetRef;
	private editable var m_addIcon : inkWidgetRef;
	private var m_root : weak< inkWidget >;

	protected event OnInitialize()
	{
		m_root = GetRootWidget();
	}

	public function Configure()
	{
		inkWidgetRef.SetVisible( m_itemIcon, false );
		inkWidgetRef.SetVisible( m_addIcon, false );
	}

	public function Configure( isStandard, isVendor : Bool )
	{
		inkWidgetRef.SetVisible( m_itemIcon, isStandard );
		inkWidgetRef.SetVisible( m_addIcon, !( isStandard ) );
		m_root.SetState( ( ( isVendor ) ? ( 'VendorItem' ) : ( 'PlayerItem' ) ) );
	}

}

