Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revisionBoth sides next revision | ||
livebox:hah_plugboard_v2 [2014/01/03 02:33] – [Filter] brett | livebox:hah_plugboard_v2 [2014/01/03 04:08] – [Timer] brett | ||
---|---|---|---|
Line 258: | Line 258: | ||
<code lua> | <code lua> | ||
+ | require " | ||
elapsed = 0 | elapsed = 0 | ||
- | function tick(self) | + | function tick(self, userdata) |
elapsed = elapsed + self.interval | elapsed = elapsed + self.interval | ||
print(" | print(" | ||
if elapsed > 10 then | if elapsed > 10 then | ||
- | print(self.userdata) | + | print(userdata) |
self:stop() | self:stop() | ||
end | end | ||
Line 270: | Line 271: | ||
xap.Timer(tick, | xap.Timer(tick, | ||
+ | xap.process() | ||
</ | </ | ||