loadresource("data\\7\\4\\0002.png","fakel1",1);

loadresource("data\\7\\4\\0004.jpg","fakel3",3);
loadresource("data\\inventary\\svecha_gorit.png","fakel4",4);


AddObjForCur()

addstaticobjecttogame(3,"fakel1",94 ,23 ,""); --рамка
CloseBtnX,CloseBtnY=Coords(3)
SetFlagsForSatButtons()

CloseWidth=34
CloseHeight=34

CreateCloseBtn(CloseBtnX,CloseBtnY);


NewObj("svgor","fakel4",5000,5000,"3034"); --свеча горит
Activ={
295,66,
295+89,66,
295+89,66+178,
295,66+178
}
CreatePolygon(6,4,"Activ")
Set_Anim_Cur(6,4)
addstaticobjecttogame(5,"fakel3",109,38 ,"",0,0,476,501); --фон

AddParticleToObject(6,"fakel_dop",335,234);
MoveEmiter("fakel_dop",335,234);
StartEmiter("fakel_dop");

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

WaitRender();