loadresource("data\\16\\1\\0002.png","trava2",2);
loadresource("data\\inventary\\gruzik.png","trava5",5);
loadresource("data\\16\\1\\trava_all.png","trava_all",5);
loadresource("data\\16\\1\\0007.jpg","trava7",7);
AddObjForCur()

addstaticobjecttogame(2,"trava2",341,21 ,""); --рамка
CloseBtnX,CloseBtnY=Coords(2)
SetFlagsForSatButtons()

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


addstaticobjecttogame(20,"trava_all",574,22,"",0,290,380,414);
addstaticobjecttogame(21,"trava_all",410,22,"",452,339,548,423);
speciale_action(2,20)
speciale_action(2,21)

addactivobjecttogame(10,"trava_all",480,77 ,"","",0,0,0,0,452,290);
addactivobjecttogame(11,"trava_all",422,277,"","",0,0,452,165,475,174);
addactivobjecttogame(12,"trava_all",383,363,"","",0,0,452,0,516,165);
for i=10,12,1 do
    Set_Anim_Cur(i,4)
    set_pixel_check(i,false)
end;    
NewObj("gruzik","trava5",5000,5000,"362"); --грузик
addactivobjecttogame(6,"trava_all",525,377,"","",0,0,0,704,273,163); --тень
addstaticobjecttogame(7,"trava7",344,33 ,"",0,0,636,543); --бг

    if flags.trava_skos then
        speciale_action(2,10);
        speciale_action(2,11);
        speciale_action(2,12);
        Set_Anim_Cur(10,3)
        Set_Anim_Cur(11,3)
        Set_Anim_Cur(12,3)
        Set_Anim_Cur(6,4);
    end;
    if not flags.trava_skos then
        if flags.grass_10 then
            speciale_action(2,10);
        end;
        if flags.grass_11 then
           speciale_action(2,11);
        end;
        if flags.grass_12 then
            speciale_action(2,12);
        end;
        if flags.grass_13 then
            speciale_action(2,13);
        end;    
    end;    
  if s_obj>0 then
  AddObjToMouse(s_obj)
  s_obj=0
  end;

WaitRender();