Guest User

Untitled

a guest
May 22nd, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. function init(self)
  2. msg.post(".", "acquire_input_focus")
  3. msg.post("#gameproxy", "load")
  4. end
  5.  
  6. function final(self)
  7. msg.post(".", "release_input_focus")
  8. end
  9.  
  10. function on_message(self, message_id, message, sender)
  11. if message_id == hash("show_game") then
  12. msg.post("#gameproxy", "load")
  13. msg.post("#titleproxy", "unload")
  14. elseif message_id == hash("show_title") then
  15. msg.post("#titleproxy", "load")
  16. msg.post("#gameproxy", "unload")
  17. elseif message_id == hash("proxy_loaded") then
  18. print("proxy_loaded", sender)
  19. msg.post(sender,"init")
  20. msg.post(sender, "enable")
  21. elseif message_id == hash("proxy_unloaded") then
  22. print("proxy_unloaded", sender)
  23. end
  24. end
Add Comment
Please, Sign In to add comment