
loadresource("data\\18\\2\\0002.png","cep_krugka_2",2);
loadresource("data\\18\\2\\cep_krugka.png","cep_krugka",3);
loadresource("data\\18\\2\\0008.jpg","cep_krugka_8",8);
loadresource("data\\inventary\\kr.png","kr",8);
AddObjForCur()
addstaticobjecttogame(3,"cep_krugka_2",137,41 ,""); --рамка
CloseBtnX,CloseBtnY=Coords(3)
SetFlagsForSatButtons()

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




addstaticobjecttogame(4,"cep_krugka",431,340,"",430,715,165,225); --нап1
speciale_action(2,4);
addstaticobjecttogame(10,"cep_krugka",136+152,68+208,"",656,511,305,169); --нап2
speciale_action(2,10);
addstaticobjecttogame(5,"cep_krugka",419,356,"",0,511,166,229); --нап2
speciale_action(2,5);
addstaticobjecttogame(6,"cep_krugka",136,68 ,"",430,0,477,511); --цепь пил
speciale_action(2,6);
addactivobjecttogame(7,"cep_krugka",136,68 ,"","",0,0,0,0,430,511); --цепь цел
Set_Anim_Cur(7,4);

NewObj("kruga","kr",2000,2000,"445"); --кружка
NewObj("kruag","cep_krugka",393,134,"445",430,511,226,204); --кружка
Set_Anim_Cur(obj.kruag.id,4);
addstaticobjecttogame(11,"cep_krugka",259,236,"",656,680,368,204); --тень кружки
addstaticobjecttogame(9,"cep_krugka_8",136+8,46 ,"",0,0,603,549); --бг
counter=0;
if flags.perepil then
    Set_Anim_Cur(7,3);
    speciale_action(2,6);
    speciale_action(2,7);
    speciale_action(2,10);
    Set_Anim_Cur(obj.kruag.id,4);
end;

  if s_obj>0 then
  AddObjToMouse(s_obj)
  s_obj=0
  end;

WaitRender();