loadresource("data\\14\\11\\0005.png","zamok_kamery_05",1005);
loadresource("data\\14\\11\\zamok_kamery1.png","zamok_kamery1",1006);
loadresource("data\\14\\11\\zamok_kamery2.png","zamok_kamery2",1007);
loadresource("data\\14\\11\\symbols.png","symbols",1011);
loadresource("data\\14\\11\\0022.jpg","zamok_kamery_22",1022);

--set_activ_free_leaf("zamok_kamery");
AddObjForCur()
SetFlagsForSatButtons()
addstaticobjecttogame(1005,"zamok_kamery_05",90 ,37 ,""); --рамка
CloseBtnX,CloseBtnY,SkipBtnX,SkipBtnY,HelpBtnX,HelpBtnY=Coords(1005)

HelpWidth=36
HelpHeight=36
CreateHelpBtn(HelpBtnX,HelpBtnY,36,36);

if flags.stenka and flags.is_gruzik then
  AddSkipBtn(SkipBtnX,SkipBtnY);
end;
--------------------------------

CloseWidth=34
CloseHeight=34
CreateCloseBtn(CloseBtnX,CloseBtnY);


addstaticobjecttogame(1006,"zamok_kamery1",96 ,37 ,"",518,0,396,333); --подсказка
if not flags.stenka then
  speciale_action(2,1006);
end;
addstaticobjecttogame(1007,"zamok_kamery2",270,84 ,"",0,494,602,171); --груз готов
if not flags.is_gruzik then
  speciale_action(2,1007);
end;
addactivobjecttogame(1008,"zamok_kamery1",312,245,"","",0,0,0,0,518,207); --створка закрыта
if flags.is_gruzik then
  speciale_action(2,1008);
end;
addstaticobjecttogame(1009,"zamok_kamery2",766,83 ,"",619,665,93,117); --грузик
speciale_action(2,1009);
addactivobjecttogame(1010,"zamok_kamery2",274,43 ,"","",0,0,0,270,591,224); --перекл
Set_Anim_Cur(1010,4)
if flags.is_gruzik then
  speciale_action(2,1010);
end;
addactivobjecttogame(1011,"symbols",336,267,"",""); --1
addactivobjecttogame(1012,"symbols",470,267,"",""); --2
addactivobjecttogame(1013,"symbols",605,267,"",""); --3
addactivobjecttogame(1014,"symbols",740,267,"",""); --4
addactivobjecttogame(1015,"symbols",336,357,"",""); --5
addactivobjecttogame(1016,"symbols",470,357,"",""); --6
addactivobjecttogame(1017,"symbols",605,357,"",""); --7
addactivobjecttogame(1018,"symbols",740,357,"",""); --8
for i = 1011,1018,1 do
set_pixel_check(i,false);
--Set_Anim_Cur(i,4)
end;
addstaticobjecttogame(1019,"zamok_kamery2",342,462,"",0,665,619,156); --штука
addstaticobjecttogame(1020,"zamok_kamery2",120,470,"",0,0,802,132); --затвор закрыт
addstaticobjecttogame(1021,"zamok_kamery2",222,470,"",0,132,700,138); --затвор открыт
speciale_action(2,1021);
addstaticobjecttogame(1022,"zamok_kamery_22",96 ,42 ,"",0,0,826,568); --бг


if not flags.is_gruzik then
  if s_obj>0 then
  AddObjToMouse(s_obj)
  s_obj=0
  end;
end;

Block_Show_Cur(true)
WaitRender();
