
loadresource("data\\13\\2\\0002.png","kusty02", 2);
loadresource("data\\13\\2\\kusty2.png","kusty2", 3);
loadresource("data\\13\\2\\kusty1.png","kusty1", 4);
loadresource("data\\inventary\\dizel.png","dizel",8);
loadresource("data\\13\\2\\0011.jpg","kusty11",11);


AddObjForCur()
addstaticobjecttogame( 3,"kusty02",137,49 ,""); --рамка
CloseBtnX,CloseBtnY=Coords(3)
SetFlagsForSatButtons()

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


addstaticobjecttogame( 4,"kusty2",430,334,"",0,836,303,181); --ножн закр
speciale_action(2,4);
addstaticobjecttogame( 5,"kusty2",412,325,"",472,635,323,218); --ножн откр
speciale_action(2,5);
addactivobjecttogame( 6,"kusty1",140,57 ,"","",0,0,0,0,594,370); --к1 обрез
addstaticobjecttogame( 7,"kusty2",140,57+235,"",0,0,594,305); --к1
set_pixel_check(6,false)
Set_Anim_Cur(6,4)
addstaticobjecttogame( 8,"kusty2",270,66 ,"",0,305,472,531); --к2 обрез
addactivobjecttogame( 9,"kusty1",270,66 ,"","",0,0,0,370,472,427); --к2
set_pixel_check(9,false)
Set_Anim_Cur(9,4)
NewObj("solar","dizel",2000,2000,"380"); --канистра
NewObj("solra","kusty2",386,220,"380",472,305,330,330); --канистра

addstaticobjecttogame(12,"kusty11",144,57 ,"",0,0,598,540); --бг

if flags.grass_cut then
    Set_Anim_Cur(6,3)
    Set_Anim_Cur(9,3)    
    speciale_action(2,6);
    speciale_action(2,9);    
    Set_Anim_Cur(obj.solra.id,4);
end;

if not flags.grass_cut and flags.cut_7 then
    speciale_action(2,6);
end;

if not flags.grass_cut and flags.cut_9 then
    speciale_action(2,9);
end;

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

WaitRender();