Advertisement
Guest User

Untitled

a guest
Nov 19th, 2015
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.91 KB | None | 0 0
  1. Searching 6244 files for "execute"
  2.  
  3. /Users/catlard/apps/funenglish/_games/make_a_scene/Views/ViewObjects/Animation.lua:
  4.   131      function view:nextOrder()
  5.   132          if Model.getOrder() == data.order then
  6.   133:             self:execute{phase="began", order=true}
  7.   134          end
  8.   135      end
  9.   ...
  10.   164          if event.phase=="began" then
  11.   165              local duration
  12.   166:             duration, handled = view:execute(event)
  13.   167              if not object then return end
  14.   168              if object.master and object.master.mute then
  15.   ...
  16.   187          local handled
  17.   188          if event.phase=="began" then
  18.   189:             -- execute the animation
  19.   190              -- any animation which wishes to stop propagation of the event can return
  20.   191              -- true for handled
  21.   192              local duration
  22.   193            
  23.   194:             duration, handled = view:execute(event)
  24.   195  
  25.   196              if object.master and object.master.mute then
  26.   ...
  27.   219  
  28.   220          ]]
  29.   221:     function view:execute(event)
  30.   222  
  31.   223          local duration, handled
  32.  
  33. /Users/catlard/apps/funenglish/lib/scamp/utils/CommandQueue.lua:
  34.    12      local trig
  35.    13  
  36.    14:     function commandQueue.execute()
  37.    15:         -- pull next one off queue, execute it
  38.    16          if #queue > 0 then
  39.    17              local item = queue[1]
  40.    ..
  41.    22                  function()
  42.    23                      table.shift(queue)
  43.    24:                     commandQueue.execute()
  44.    25                  end
  45.    26              )
  46.    ..
  47.    34          if #queue == 1 then
  48.    35              -- if no queue, then fire it off!
  49.    36:             commandQueue.execute()
  50.    37          end
  51.    38      end
  52.  
  53. /Users/catlard/apps/funenglish/setup.lua:
  54.     1: os.execute('clear')
  55.     2  math.randomseed(os.time())
  56.     3  display.setStatusBar( display.HiddenStatusBar )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement