function OnSceneLoad(screen)
    game_state = {}    
    LoadData(screen)
    local pf = play_field
    local level = pf:GetLevelScreen()
    game_state.custom_cursors = {}
    game_state.locked_objects = {}
    --level:AddTaskSafe(CreateTask('', '', ''))
    --zone = CreateZoomZone('')
    game_state.locker = ReferenceCounter()
    game_state.active_zone = nil
    game_state.inventory_zones = {}
    game_state.active_objects = {}
	
	play_field:GetObject('picture'):SetOpacity(0)
	
    play_field:GetObject('picture'):GetAnimation():SetColor('0xFFFFFFFF')
	
	game_state.meta_object = 'cigar7'
end

function OnSceneFree(screen)
    FreeData(screen)
end

function OnScreenShown()    
end

function OnLostFocus()
end

function OnGainFocus()
end

function OnMinigameCompleted()
end

function OnUpdate(dt)
end

function OnNotebookOpened()
    --OnSceneStateChanged(play_field)
end


function OnExit()
end

function OnObjectMouseEnter(object)
    DefaultOnObjectMouseEnter(object)
end

function OnObjectMouseLeave(object)
    DefaultOnObjectMouseLeave(object)
end

function OnObjectMouseDown(object)
    obj_name = object:GetName()
    
    local pf = play_field
    local is_wrong_click = true

    is_wrong_click = DefaultOnObjectMouseDown(object)

    if is_wrong_click then
        --pf:ShowWrongObjectEffect()
    end

    return is_wrong_click;    
end

function OnObjectMouseUp(object)
end

function OnObjectWasFound(object)    
end

function OnObjectWillBeFound(object)
end

function OnToolFound(tool)
end

function OnToolApply(tool, object)    
   DefaultOnToolApply(tool, object)
end

function OnObjectReachPanel(object)
end

function OnButtonPress(title)
    DefaultOnButtonPress(title)
end

function OnMouseMove(previous_pos, current_pos)
end

function OnSetTool(tool)
end

function CanBeHinted(obj)
    if locked_object[obj] ~= true then
        return true
    else
        return false
    end
end

-- CLEAR_ON_SAVE_BEGIN
-- Do not edit code listed below (generated by the editor on each save)
function LoadData(screen)
	local anim = CreateAnimation('data/Texture/Scenes/7_ locker_room_repairers_3/Layers/bg.jpg',0,0,1024,768,1,0)
	anim:SetHotSpot(512,384)
	anim:SetBlendMode(2)
	anim:SetColor('0xFFFFFFFF')
	screen:CreateObject('bg',anim,512,384,9,0,1,1)
	local anim = CreateAnimation('data/Texture/Scenes/7_ locker_room_repairers_3/Items/picture.png',0,0,514,770,1,0)
	anim:SetHotSpot(257,385)
	anim:SetBlendMode(2)
	anim:SetColor('0x00FFFFFF')
	screen:CreateObject('picture',anim,512,384,200,0,0.8,0.8)
	local anim = CreateAnimation('data/Texture/Scenes/7_ locker_room_repairers_3/Zoom/zoom_bak.jpg',0,0,640,480,1,0)
	anim:SetHotSpot(320,240)
	anim:SetBlendMode(2)
	anim:SetColor('0x00FFFFFF')
	screen:CreateObject('zoom_bak',anim,512,384,200,0,1,1)
	local anim = CreateAnimation('data/Texture/Scenes/Common/pixel.jpg',0,0,8,8,1,0)
	anim:SetHotSpot(4,4)
	anim:SetBlendMode(2)
	anim:SetColor('0x01FFFFFF')
	screen:CreateObject('tool_box_zone',anim,630,566,100,0,10,10)
	local anim = CreateAnimation('data/Texture/Comics/Sheriff.dds',0,0,532,636,1,0)
	anim:SetHotSpot(266,256)
	anim:SetBlendMode(2)
	anim:SetColor('0x00FFFFFF')
	screen:CreateObject('Sheriff',anim,734,390,400,0,1,1)
	local anim = CreateAnimation('data/Texture/Scenes/Common/pixel.jpg',0,0,8,8,1,0)
	anim:SetHotSpot(4,4)
	anim:SetBlendMode(2)
	anim:SetColor('0x00FFFFFF')
	screen:CreateObject('pixel1',anim,512,384,401,0,128,96)
	local anim = CreateAnimation('data/Texture/Scenes/Common/pixel.jpg',0,0,8,8,1,0)
	anim:SetHotSpot(4,4)
	anim:SetBlendMode(2)
	anim:SetColor('0x00FFFFFF')
	screen:CreateObject('pixel2',anim,512,384,401,0,128,96)
	local anim = CreateAnimation('data/Texture/Scenes/Common/pixel.jpg',0,0,8,8,1,0)
	anim:SetHotSpot(4,4)
	anim:SetBlendMode(2)
	anim:SetColor('0x00FFFFFF')
	screen:CreateObject('pixel3',anim,512,384,401,0,128,96)
	local anim = CreateAnimation('data/Texture/Comics/Service_Manager.dds',0,0,661,696,1,0)
	anim:SetHotSpot(330,348)
	anim:SetBlendMode(2)
	anim:SetColor('0x00FFFFFF')
	screen:CreateObject('Service_Manager',anim,521,422,400,0,1,1)
	local anim = CreateAnimation('data/Texture/Comics/SMmask.png',0,0,203,61,1,0)
	anim:SetHotSpot(101,30)
	anim:SetBlendMode(2)
	anim:SetColor('0x00FFFFFF')
	screen:CreateObject('SMMask',anim,544,161,410,0,1,1)
	local anim = CreateAnimation('data/Texture/Comics/eyes_sm.png',0,0,142,22,1,0)
	anim:SetHotSpot(71,11)
	anim:SetBlendMode(2)
	anim:SetColor('0x00FFFFFF')
	screen:CreateObject('eyes_sm',anim,729,163,405,0,1,1)
	local anim = CreateAnimation('data/Texture/Scenes/Common/pixel.jpg',0,0,8,8,1,0)
	anim:SetHotSpot(4,4)
	anim:SetBlendMode(2)
	anim:SetColor('0x01FFFFFF')
	screen:CreateObject('uniform_active_zone',anim,867,546,110,0,26,19)
	local anim = CreateAnimation('data/Texture/Scenes/7_ locker_room_repairers_3/Items/hammer.png',0,0,150,76,1,0)
	anim:SetHotSpot(75,38)
	anim:SetBlendMode(2)
	anim:SetColor('0xFFFFFFFF')
	screen:CreateObject('hammer',anim,897,731,100,0,1,1)
	local anim = CreateAnimation('data/Texture/Scenes/7_ locker_room_repairers_3/Items/tape_measure.png',0,0,48,44,1,0)
	anim:SetHotSpot(24,22)
	anim:SetBlendMode(2)
	anim:SetColor('0xFFFFFFFF')
	screen:CreateObject('tape_measure',anim,378,584,100,0,1,1)
	local anim = CreateAnimation('data/Texture/Scenes/7_ locker_room_repairers_3/Items/uniform.png',0,0,244,183,1,0)
	anim:SetHotSpot(122,91)
	anim:SetBlendMode(2)
	anim:SetColor('0xFFFFFFFF')
	screen:CreateObject('uniform',anim,876,559,100,0,1,1)
	local anim = CreateAnimation('data/Texture/Scenes/7_ locker_room_repairers_3/Items/camera.png',0,0,86,99,1,0)
	anim:SetHotSpot(43,49)
	anim:SetBlendMode(2)
	anim:SetColor('0xFFFFFFFF')
	screen:CreateObject('camera',anim,952,353,100,0,1,1)
	local anim = CreateAnimation('data/Texture/Scenes/7_ locker_room_repairers_3/Items/axe.png',0,0,83,144,1,0)
	anim:SetHotSpot(41,72)
	anim:SetBlendMode(2)
	anim:SetColor('0xFFFFFFFF')
	screen:CreateObject('axe',anim,968,126,100,0,1,1)
	local anim = CreateAnimation('data/Texture/Scenes/7_ locker_room_repairers_3/Items/bat.png',0,0,57,172,1,0)
	anim:SetHotSpot(28,86)
	anim:SetBlendMode(2)
	anim:SetColor('0xFFFFFFFF')
	screen:CreateObject('bat',anim,323,423,100,0,1,1)
	local anim = CreateAnimation('data/Texture/Scenes/7_ locker_room_repairers_3/Layers/sprait_skameyki.png',0,0,63,73,1,0)
	anim:SetHotSpot(31,36)
	anim:SetBlendMode(2)
	anim:SetColor('0xFFFFFFFF')
	screen:CreateObject('sprait_skameyki',anim,327,467,103,0,1,1)
	local anim = CreateAnimation('data/Texture/Scenes/7_ locker_room_repairers_3/Items/belt.png',0,0,49,120,1,0)
	anim:SetHotSpot(24,60)
	anim:SetBlendMode(2)
	anim:SetColor('0xFFFFFFFF')
	screen:CreateObject('belt',anim,230,362,100,0,1,1)
	local anim = CreateAnimation('data/Texture/Scenes/7_ locker_room_repairers_3/Items/butterfly.png',0,0,34,25,1,0)
	anim:SetHotSpot(17,12)
	anim:SetBlendMode(2)
	anim:SetColor('0xFFFFFFFF')
	screen:CreateObject('butterfly',anim,708,528,100,0,1,1)
	local anim = CreateAnimation('data/Texture/Scenes/7_ locker_room_repairers_3/Items/chain.png',0,0,60,237,1,0)
	anim:SetHotSpot(30,118)
	anim:SetBlendMode(2)
	anim:SetColor('0xFFFFFFFF')
	screen:CreateObject('chain',anim,1010,305,100,0,1,1)
	local anim = CreateAnimation('data/Texture/Scenes/7_ locker_room_repairers_3/Items/flask.png',0,0,67,34,1,0)
	anim:SetHotSpot(33,17)
	anim:SetBlendMode(2)
	anim:SetColor('0xFFFFFFFF')
	screen:CreateObject('flask',anim,507,511,100,0,1,1)
	local anim = CreateAnimation('data/Texture/Scenes/7_ locker_room_repairers_3/Items/horseshoe.png',0,0,40,44,1,0)
	anim:SetHotSpot(20,22)
	anim:SetBlendMode(2)
	anim:SetColor('0xFFFFFFFF')
	screen:CreateObject('horseshoe',anim,779,90,100,0,1,1)
	local anim = CreateAnimation('data/Texture/Scenes/7_ locker_room_repairers_3/Items/iron.png',0,0,79,93,1,0)
	anim:SetHotSpot(39,46)
	anim:SetBlendMode(2)
	anim:SetColor('0xFFFFFFFF')
	screen:CreateObject('iron',anim,864,355,100,0,1,1)
	local anim = CreateAnimation('data/Texture/Scenes/7_ locker_room_repairers_3/Items/knife.png',0,0,65,16,1,0)
	anim:SetHotSpot(32,8)
	anim:SetBlendMode(2)
	anim:SetColor('0xFFFFFFFF')
	screen:CreateObject('knife',anim,601,318,100,0,1,1)
	local anim = CreateAnimation('data/Texture/Scenes/7_ locker_room_repairers_3/Items/mousetrap.png',0,0,46,24,1,0)
	anim:SetHotSpot(23,12)
	anim:SetBlendMode(2)
	anim:SetColor('0xFFFFFFFF')
	screen:CreateObject('mousetrap',anim,896,456,100,0,1,1)
	local anim = CreateAnimation('data/Texture/Scenes/7_ locker_room_repairers_3/Items/bell.png',0,0,45,25,1,0)
	anim:SetHotSpot(22,12)
	anim:SetBlendMode(2)
	anim:SetColor('0xFFFFFFFF')
	screen:CreateObject('bell',anim,644,415,100,0,1,1)
	local anim = CreateAnimation('data/Texture/Scenes/7_ locker_room_repairers_3/Items/mushroom.png',0,0,57,46,1,0)
	anim:SetHotSpot(28,23)
	anim:SetBlendMode(2)
	anim:SetColor('0xFFFFFFFF')
	screen:CreateObject('mushroom',anim,373,755,100,0,1,1)
	local anim = CreateAnimation('data/Texture/Scenes/7_ locker_room_repairers_3/Items/rake.png',0,0,42,148,1,0)
	anim:SetHotSpot(21,74)
	anim:SetBlendMode(2)
	anim:SetColor('0xFFFFFFFF')
	screen:CreateObject('rake',anim,319,209,100,0,1,1)
	local anim = CreateAnimation('data/Texture/Scenes/7_ locker_room_repairers_3/Items/rapier.png',0,0,46,169,1,0)
	anim:SetHotSpot(23,84)
	anim:SetBlendMode(2)
	anim:SetColor('0xFFFFFFFF')
	screen:CreateObject('rapier',anim,718,490,100,0,1,1)
	local anim = CreateAnimation('data/Texture/Scenes/7_ locker_room_repairers_3/Layers/sprait_shelf.png',0,0,226,32,1,0)
	anim:SetHotSpot(113,16)
	anim:SetBlendMode(2)
	anim:SetColor('0xFFFFFFFF')
	screen:CreateObject('sprait_shelf',anim,878,208,110,0,1,1)
	local anim = CreateAnimation('data/Texture/Scenes/7_ locker_room_repairers_3/Layers/rapier_over.png',0,0,46,39,1,0)
	anim:SetHotSpot(23,19)
	anim:SetBlendMode(2)
	anim:SetColor('0xFFFFFFFF')
	screen:CreateObject('rapier_over',anim,742,549,106,0,1,1)
	local anim = CreateAnimation('data/Texture/Scenes/7_ locker_room_repairers_3/Items/rope.png',0,0,52,126,1,0)
	anim:SetHotSpot(26,63)
	anim:SetBlendMode(2)
	anim:SetColor('0xFFFFFFFF')
	screen:CreateObject('rope',anim,857,118,100,0,1,1)
	local anim = CreateAnimation('data/Texture/Scenes/7_ locker_room_repairers_3/Items/skates.png',0,0,66,54,1,0)
	anim:SetHotSpot(33,27)
	anim:SetBlendMode(2)
	anim:SetColor('0xFFFFFFFF')
	screen:CreateObject('skates',anim,792,423,100,0,1,1)
	local anim = CreateAnimation('data/Texture/Scenes/7_ locker_room_repairers_3/Layers/uniform_over.png',0,0,62,76,1,0)
	anim:SetHotSpot(31,38)
	anim:SetBlendMode(2)
	anim:SetColor('0xFFFFFFFF')
	screen:CreateObject('uniform_over',anim,791,498,106,0,1,1)
	local anim = CreateAnimation('data/Texture/Scenes/7_ locker_room_repairers_3/cigar7.png',0,0,94,108,1,0)
	anim:SetHotSpot(47,54)
	anim:SetBlendMode(2)
	anim:SetColor('0xFFFFFFFF')
	screen:CreateObject('cigar7',anim,577,513,100,0,1,1)
	local anim = CreateAnimation('data/Texture/Scenes/7_ locker_room_repairers_3/Animations/voda.png',0,0,282,220,25,10)
	anim:SetHotSpot(141,110)
	anim:SetBlendMode(2)
	anim:SetColor('0xFFFFFFFF')
	screen:CreateObject('voda',anim,620,140,100,0,1,1)
end

function FreeData(screen)
end
-- CLEAR_ON_SAVE_END
