local first_text_visible = false;
local second_text_visible = false;
function ActionsJump ()
    
end;
function gameinput (sender,obj_id,attachedID)
    if sender==30 then --комикс завершился
      flags.comics11 = true;
      flags.is_comics=false    
      setcurentleaf("another_world",21,0); 
      Block_Show_Cur(false);
      ShowMenu(true);
      ---start 
     -- DeleteResources("./data/0/global_res.lua","comics11");
      Block_Show_Cur(true);
      StartTimer(8885,0.5)
    return;end;
    
    if sender == 15 then
      if obj_id == 9 then
        WaitRender();
      return; end;
      -- if obj_id==6 then
        -- if counter<2 then
        -- counter=counter+1
        -- speciale_action(2,6,true,1.5)
        -- else
            -- counter=0
            -- StartTimer(22222,7)
        -- end;
      -- return;end;      
    return; end;
    
    if sender == 16 then
      -- if obj_id==6 then
        -- speciale_action(2,6,true,1.5)
      -- return;end;
      if obj_id == 3 then
        StartTimer(22222,1)
        speciale_action(2,2,true);
        speciale_action(2,4,true);
      return; end;
      if obj_id == 4 then
        RotateObject(4,0,360,15);
        speciale_action(2,1100);
        speciale_action(4,1100);
        first_text_visible = true;
      return; end;
    return; end;
    
    if sender == 100 then
      
      clear_satelite_leaf("another_world");
    return; end;
    
    if sender == 33 then  
      
    return;end;
    
    if sender == 6 then
      if second_text_visible then
        -- WaitRender();
        setcolor(1100,0,0,0,1,1); 
        speciale_action(2,1,true);
        speciale_action(2,2,true);
        speciale_action(2,3,true);
        speciale_action(2,4,true);
        speciale_action(2,9,true);
        
        speciale_action(2,1100);
      return; end;
      if first_text_visible then
        set_text(1100, "598");
        second_text_visible = true;
      return; end;
    return; end;
    

    
    if sender == 36 then
      if obj_id == 111 then

        speciale_action(2,3,true,2);
      return; end;      
      if obj_id == 22222 then      
              speciale_action(2,6,true,1.5)
    return; end;              
    return; end;
    
    if sender == 1 then --кликнули левой кнопкой мыши на активный объект
    
      WaitRender();
    return;end;

end
function SheetSwitched(nCount)
end;