class 'l_09_Andreas_house_Z_Gramophone' (ZoomZone)

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

	local function find_curved_handle(event)
   		self:entityHide('area_find_curved_handle')
    	self:entityHide('zg_handle')
    	if IsToolFound('09_gramophones_horn') then self:closeAndDisable() end
	end
	self:registerToolFindInfo('09_curved_handle', 'area_find_curved_handle', find_curved_handle)


	local function find_part_of_the_tube(event)
   		self:entityHide('area_find_part_of_the_tube')
   	    self.playfield:entityHide('tube')
    	self:entityHide('zg_trumpet')
    	if IsToolFound('09_curved_handle') then self:closeAndDisable() end
	end
	self:registerToolFindInfo('09_gramophones_horn', 'area_find_part_of_the_tube', find_part_of_the_tube)

end

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

function l_09_Andreas_house_Z_Gramophone:CreateLoaderTable()
	local objects =
	{
		{ name = 'zg_bg',  entityType = 'SpriteEntity',  x = 512,  y = 384,  order = 0,  editingLocked = false,  treeItemIsExpanded = true,  texturePath = 'Data/Textures/Scenes/09_Andreas_house/Z_Gramophone/zg_bg.jpg',  width = 384,  height = 512,  },
		{ name = 'zg_guitar',  entityType = 'SpriteEntity',  x = 599,  y = 414,  order = 0,  editingLocked = false,  treeItemIsExpanded = true,  texturePath = 'Data/Textures/Scenes/09_Andreas_house/Z_Gramophone/zg_guitar.png',  width = 208,  height = 450,  },
		{ name = 'zg_handle',  entityType = 'SpriteEntity',  x = 531,  y = 398,  order = 0,  editingLocked = false,  treeItemIsExpanded = false,  texturePath = 'Data/Textures/Scenes/09_Andreas_house/Z_Gramophone/zg_handle.png',  width = 46,  height = 50,  },
		{ name = 'zg_trumpet',  entityType = 'SpriteEntity',  x = 466,  y = 251,  order = 0,  editingLocked = false,  treeItemIsExpanded = true,  texturePath = 'Data/Textures/Scenes/09_Andreas_house/Z_Gramophone/zg_trumpet.png',  width = 274,  height = 224,  },
		{ name = 'area_find_part_of_the_tube',  entityType = 'SpriteEntity',  x = 433,  y = 240,  order = 0,  color = {r = 1, g = 1, b = 1, a = 0.00392157},  editingLocked = false,  treeItemIsExpanded = false,  width = 200,  height = 200,  },
		{ name = 'area_find_curved_handle',  entityType = 'SpriteEntity',  x = 531,  y = 403,  order = 20,  color = {r = 1, g = 1, b = 1, a = 0.00392157},  editingLocked = false,  treeItemIsExpanded = false,  width = 100,  height = 100,  },
	}
	return objects
end
