loadresource("data\\8\\2\\0002.png","vaza_svecha2",2);
loadresource("data\\8\\2\\vaza_svecha.png","vaza_svecha",5);
loadresource("data\\inventary\\svecha.png","svecha",8);
loadresource("data\\8\\2\\0009.jpg","vaza_svecha9",9);

AddObjForCur()

addstaticobjecttogame( 3,"vaza_svecha2",79 ,58 ,""); --рамка
CloseBtnX,CloseBtnY=Coords(3)


SetFlagsForSatButtons()

CloseWidth=34
CloseHeight=34

CreateCloseBtn(CloseBtnX,CloseBtnY);



addstaticobjecttogame( 20,"vaza_svecha",314,203,"",0,362,95,137); 
addstaticobjecttogame( 21,"vaza_svecha",315,219,"",95,362,55,91); 
speciale_action(2,20)
speciale_action(2,21)

addactivobjecttogame( 6,"vaza_svecha",273,117,"","",0,0,560,0,359,429); --ваза целая
Set_Anim_Cur(6,4)

NewObj("svech","svecha",2000,2000,"153"); --свеча в вазе
NewObj("svehc","vaza_svecha",351,205,"153",919,0,65,236); --свеча в вазе
speciale_action(2,obj.svehc.id);
counter=1


addstaticobjecttogame( 9,"vaza_svecha",104,184,"",0,0,560,362); --битая ваза
speciale_action(2,9);
addstaticobjecttogame(10,"vaza_svecha9",88 ,69 ,"",0,0,624,500); --фон
if flags.vase_broke then
    speciale_action(2,6);
    speciale_action(2,obj.svehc.id);
    Set_Anim_Cur(obj.svehc.id,4)
    speciale_action(2,9);
end;

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

WaitRender();