loadresource("data\\14\\3\\0002.png","stenka_2",3);
loadresource("data\\14\\3\\stenka_all.png","stenka_all",4);
loadresource("data\\14\\3\\0006.jpg","stenka_6",7);

AddObjForCur()
addstaticobjecttogame(3,"stenka_2",116,72 ,""); --рамка
CloseBtnX,CloseBtnY=Coords(3)
SetFlagsForSatButtons()

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



addactivobjecttogame(4,"stenka_all",128,167,"","",0,0,0,0,752,168); --верхний
addactivobjecttogame(5,"stenka_all",298,304,"","",0,0,0,168,594,155); --средний
addactivobjecttogame(6,"stenka_all",155,338,"","",0,0,0,323,638,163); --нижний
for i=4,6,1 do
    Set_Anim_Cur(i,4);
end;

addstaticobjecttogame(7,"stenka_6",122,77 ,"",0,0,785,499); --бг

if flags.brush_4 then
    speciale_action(2,4)
    Set_Anim_Cur(4,3)
end;
if flags.brush_5 then
    speciale_action(2,5)
    Set_Anim_Cur(5,3)
end;
if flags.brush_6 then
    speciale_action(2,6)
    Set_Anim_Cur(6,3)
end;
  if s_obj>0 then
  AddObjToMouse(s_obj)
  s_obj=0
  end;

WaitRender();