class 'l_12_grannies_room_z_lamp' (ZoomEventHandler)

function l_12_grannies_room_z_lamp:__init(name)
    ZoomEventHandler.__init(self, name)
end

--------------------------------------------------------------------------------
-- CLEAR_ON_SAVE_BEGIN
-- Do not edit code listed below (generated by the editor on each save)
function l_12_grannies_room_z_lamp:LoadData(screen)
	local anim
	anim = CreateAnimation('data/Texture/Scenes/12_grannies_room/main/z_lamp/z_lamp_bg.png',0,0,350,350,1,0)
	anim:SetHotSpot(175,175)
	anim:SetBlendMode(2)
	anim:SetColor('0xFFFFFFFF')
	screen:CreateObject('z_lamp_bg',anim,512,384,50,0,1,1)
	
	anim = CreateAnimation('data/Texture/Scenes/12_grannies_room/main/z_lamp/z_lamp_bg_dark.png',0,0,350,350,1,0)
	anim:SetHotSpot(175,175)
	anim:SetBlendMode(2)
	anim:SetColor('0xFFFFFFFF')
	screen:CreateObject('z_lamp_bg_dark',anim,512,384,51,0,1,1)
	
	anim = CreateAnimation('data/Texture/Scenes/12_grannies_room/main/z_lamp/z_lamp_key_1.png',0,0,280,254,1,0)
	anim:SetHotSpot(140,127)
	anim:SetBlendMode(2)
	anim:SetColor('0xFFFFFFFF')
	screen:CreateObject('z_lamp_key_1',anim,544,432,60,0,1,1)
	
	anim = CreateAnimation('data/Texture/Scenes/12_grannies_room/main/z_lamp/z_lamp_key_2.png',0,0,279,237,1,0)
	anim:SetHotSpot(139,118)
	anim:SetBlendMode(2)
	anim:SetColor('0xFFFFFFFF')
	screen:CreateObject('z_lamp_key_2',anim,544,440,61,0,1,1)
	
	anim = CreateAnimation('data/Texture/Scenes/12_grannies_room/main/z_lamp/z_lamp_key_2_light.png',0,0,280,238,1,0)
	anim:SetHotSpot(140,119)
	anim:SetBlendMode(2)
	anim:SetColor('0xFFFFFFFF')
	screen:CreateObject('z_lamp_key_2_light',anim,544,441,62,0,1,1)
	
	anim = CreateAnimation('data/Texture/Common/area_round.png',0,0,128,128,1,0)
	anim:SetHotSpot(24,64)
	anim:SetBlendMode(2)
	anim:SetColor('0x01FFFFFF')
	screen:CreateObject('area_apply_zl_lamp_valve',anim,420.95,383,100,0,2.58,2.01)
	
	anim = CreateAnimation('data/Texture/Common/area_round.png',0,0,128,128,1,0)
	anim:SetHotSpot(24,64)
	anim:SetBlendMode(2)
	anim:SetColor('0x01FFFFFF')
	screen:CreateObject('area_click_zl_lamp_valve',anim,420.95,383,100,0,2.56,2)
	
end
-- CLEAR_ON_SAVE_END
