2011-04-20 19:34:55 -04:00
|
|
|
# Bryan Schumaker (4 / 20 / 2011)
|
|
|
|
|
|
|
|
import libsaria
|
2011-04-20 19:44:45 -04:00
|
|
|
import queue
|
2011-04-20 21:07:00 -04:00
|
|
|
from ocarina import body
|
2011-04-20 19:34:55 -04:00
|
|
|
from ocarina.body import footer
|
|
|
|
|
|
|
|
invite = libsaria.event.invite
|
|
|
|
|
|
|
|
def on_play(*args):
|
|
|
|
footer.on_play()
|
|
|
|
invite("POSTPLAY", on_play)
|
|
|
|
|
|
|
|
def on_pause(*args):
|
|
|
|
footer.on_pause()
|
|
|
|
invite("POSTPAUSE", on_pause)
|
2011-04-20 19:44:45 -04:00
|
|
|
|
|
|
|
def on_stop(*args):
|
|
|
|
footer.on_pause()
|
|
|
|
invite("POSTSTOP", on_stop)
|
|
|
|
|
2011-04-20 20:34:14 -04:00
|
|
|
def on_load(*args):
|
|
|
|
footer.on_load()
|
2011-04-20 19:44:45 -04:00
|
|
|
queue.refresh()
|
2011-04-20 21:07:00 -04:00
|
|
|
body.cur_page_goto()
|
2011-04-20 20:34:14 -04:00
|
|
|
invite("POSTLOAD", on_load)
|