I eventually want to remove the event system from libsaria. My first step in doing this is to move usage of the event system in Ocarina to one place.
15 lines
253 B
Python
15 lines
253 B
Python
# Bryan Schumaker (4 / 20 / 2011)
|
|
|
|
import libsaria
|
|
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)
|