Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function init(self)
- msg.post(".", "acquire_input_focus")
- msg.post("#gameproxy", "load")
- end
- function final(self)
- msg.post(".", "release_input_focus")
- end
- function on_message(self, message_id, message, sender)
- if message_id == hash("show_game") then
- msg.post("#gameproxy", "load")
- msg.post("#titleproxy", "unload")
- elseif message_id == hash("show_title") then
- msg.post("#titleproxy", "load")
- msg.post("#gameproxy", "unload")
- elseif message_id == hash("proxy_loaded") then
- print("proxy_loaded", sender)
- msg.post(sender,"init")
- msg.post(sender, "enable")
- elseif message_id == hash("proxy_unloaded") then
- print("proxy_unloaded", sender)
- end
- end
Add Comment
Please, Sign In to add comment