hint = false;

function Buttons_T(sender,obj_id)
    ButtonTreatment(obj_id,10001,10002,10003,772,116,34,34,sender,"kabinet",false)
end;

local exit_button = false;
function gameinput (sender,obj_id,attachedID) 
    CursorTreatment(obj_id,sender,attachedID); 
    Buttons_T(sender,obj_id)
  
  if sender == 100 then
    Block_Show_Cur(false);
  return; end;

  if sender==30 then
      DeleteResource("0204");
      DeleteResource("0205");
      DeleteResource("0206");     
      DeleteResource("0207");
      DeleteResource("0208");
      DeleteResource("0209");
      DeleteResource("0210");     
      DeleteResource("0211");
      DeleteResource("0212");      
      DeleteResource("noj_lab");
      DeleteResource("pympa1");      
    setcurentleaf("kabinet",0,0);
    Block_Show_Cur(false);
    if flags.open_tumba and not flags.open_tumba_loc then
      flags.open_tumba_loc = true;
      speciale_action(2,18);
    end;
    if flags.tumba then
      ActivateObject(18,false);
      Set_Anim_Cur(18,3);
      ActivateObject(20,false);
      Set_Anim_Cur(20,3);
      StopEmiter("one2");   
      flags.minifirst=true;
    return; end;
  return;end;  
  
  
  if sender==50 then
      
      StartTimer(80802,1)
  return;end;
  
  
  if sender == 1 then
      if attachedID ~= -1 then
        RemObjFromMouse()
      end;

    if obj_id == 8 then
        speciale_action(2,5,true);
		Set_Anim_Cur(8,3);
        Set_Anim_Cur(5,4);
        speciale_action(2,6,true);
        speciale_action(2,8);
        flags.open_tumba = true;
        playeffect("tumb");
    return; end;

    if obj_id == 5 then
      Set_Anim_Cur(5,3)
      flags.tumba=true
      StoreObj(obj.nog.id,5,"47",335,350,"nog",280,220)
    return; end;
    
    if obj_id == 1 then
        RemObjFromMouse()
    return; end;
  return ;end;
   
  if sender==36 then
    if obj_id==80802 then
        clear_satelite_leaf("kabinet");     
            
    end
  return;end;  
   

end
function SheetSwitched(nCount)
end;