home *** CD-ROM | disk | FTP | other *** search
/ Komputer for Alle 2003 #8 / K-CD-8-2003.ISO / Blitzkrieg / blitzkriegdemo-e.exe / DATA.PAK / ui / MuptiplayerGamesListConnectionError.lua < prev    next >
Encoding:
Text File  |  2002-11-27  |  870 b   |  35 lines

  1. function LuaProcessMessage( nMessageCode, nFirst, nSecond )
  2.     if ( nMessageCode == 536936448 ) then --NOTIFY STATE CHANGED
  3.         if ( nFirst == 3006 or nFirst == 3007 ) then
  4.             --Forward this message to parent
  5.             AddMessage( 268435457, nFirst, nSecond )
  6.             return 1
  7.         end
  8.     end
  9.  
  10. --    if ( nMessageCode == 536936448 and  nFirst == 3006  ) then
  11. --        local nMessage = SetProcessedFlag( nFirst )
  12. --        AddMessage( nMessage, 0, 1 )
  13. --        return 1
  14. --    end
  15.  
  16.  
  17. --    if ( nMessageCode == 536936448 ) then --NOTIFY STATE CHANGED
  18. --        if ( nFirst == 3006 ) then
  19. --            --Forward this message to parent
  20. --            AddMessage( 268435457, nFirst, nSecond )
  21. --            return 1
  22. --        end
  23. --    end
  24.  
  25. -- if keyboard pressed, press specific button
  26.  
  27.  
  28.     if ( nMessageCode == 10002 or nMessageCode == 10001 ) then
  29.         AddMessage( 65537, 3006, 1 )        -- button pressed
  30.         return 1
  31.     end
  32.  
  33.     return 0
  34. end
  35.