class 'l_07_Cantellos_shop_Z_Table' (ZoomZone)

function l_07_Cantellos_shop_Z_Table:__init(name, mode, PlayField)
	ZoomZone.__init(self, name, mode, PlayField)

	self:entityHide('area_find_07_lighter','zt_flint')


	local function on_apply_07_flint(event)	
	    
	    self:entityShow('area_find_07_lighter','zt_flint')
	    self:entityHide('area_apply_07_flint')
	if not event.save then
		self:playSound('07_apply_flint')
		self:entityFadeShow('zt_flint')
	    	--	self.playfield:getEntityNamed(''):ChangeOpacity(0,1,0.5)
	    else
		end
	end
	self:registerToolApplyInfo('07_flint', 'area_apply_07_flint', on_apply_07_flint, 'BBT_07_NEED_FLINT')


	local function on_find_07_lighter(event)
        self:entityHide(event.target)
        self:entityHide('zt_flint','zt_lighter')
        self.playfield:entityHide('lighter')  
        self:closeAndDisable()

    end
	self:registerToolFindInfo('07_lighter', 'area_find_07_lighter', on_find_07_lighter)


end

--------------------------------------------------------------------------------
--                      GENERATED CONTENT. DO NOT EDIT.                       --
--------------------------------------------------------------------------------

function l_07_Cantellos_shop_Z_Table:CreateLoaderTable()
	local objects =
	{
		{ name = 'zt_bg',  entityType = 'SpriteEntity',  x = 512,  y = 384,  order = 0,  isRespondable = true,  editingLocked = false,  treeItemIsExpanded = true,  texturePath = 'Data/Textures/Scenes/07_Cantellos_shop/Z_Table/zt_bg.jpg',  width = 640,  height = 480,  },
		{ name = 'zt_lighter',  entityType = 'SpriteEntity',  x = 438,  y = 494,  order = 3,  isRespondable = true,  editingLocked = false,  treeItemIsExpanded = false,  texturePath = 'Data/Textures/Scenes/07_Cantellos_shop/Z_Table/zt_lighter.png',  width = 244,  height = 160,  },
		{ name = 'area_apply_07_flint',  entityType = 'SpriteEntity',  x = 457,  y = 469,  order = 20,  isRespondable = true,  color = {r = 1, g = 1, b = 1, a = 0.00392157},  editingLocked = false,  treeItemIsExpanded = false,  width = 170,  height = 150,  },
		{ name = 'area_find_07_lighter',  entityType = 'SpriteEntity',  x = 440,  y = 488,  order = 60,  isRespondable = true,  color = {r = 1, g = 1, b = 1, a = 0.00392157},  editingLocked = false,  treeItemIsExpanded = true,  width = 170,  height = 150,  },
		{ name = 'zt_flint',  entityType = 'SpriteEntity',  x = 513,  y = 449,  order = 2,  isRespondable = true,  editingLocked = false,  treeItemIsExpanded = false,  texturePath = 'Data/Textures/Scenes/07_Cantellos_shop/Z_Table/zt_flint.png',  width = 34,  height = 38,  },
		{ name = '07_Cantellos_shop_Anim_Z_Table',  entityType = 'CompositionContainer',  x = 192,  y = 144,  order = 0,  isRespondable = true,  editingLocked = false,  treeItemIsExpanded = true,  path = 'Data/Scripts/Scenes/07_Cantellos_shop/Anim/07_Cantellos_shop_Anim_Z_Table.lua',  },
		{ name = 'compositionfon',  entityType = 'CompositionSequence',  parentName = '07_Cantellos_shop_Anim_Z_Table',  x = 0,  y = -1,  order = 0,  isRespondable = true,  editingLocked = false,  treeItemIsExpanded = false,  isCyclic = true,  speed = 1,  },
		{ name = 'zt_bud',  entityType = 'SpriteEntity',  x = 662,  y = 531,  order = 3,  isRespondable = true,  editingLocked = false,  treeItemIsExpanded = false,  texturePath = 'Data/Textures/Scenes/07_Cantellos_shop/Z_Table/zt_bud.png',  width = 84,  height = 73,  },
	}
	return objects
end
