3
0
mirror of https://github.com/britzl/monarch.git synced 2025-09-28 02:22:20 +02:00

Changed how transition urls are defined

This commit is contained in:
Björn Ritzl
2017-09-25 21:21:33 +02:00
parent 592418fef7
commit e7edfbe173
3 changed files with 33 additions and 82 deletions

View File

@@ -3,19 +3,12 @@ local monarch = require "monarch.monarch"
go.property("screen_proxy", msg.url("#collectionproxy"))
go.property("screen_id", hash(""))
go.property("popup", false)
go.property("transition_show_in", msg.url())
go.property("transition_show_out", msg.url())
go.property("transition_back_in", msg.url())
go.property("transition_back_out", msg.url())
go.property("transition_url", msg.url())
go.property("controller_url", msg.url())
function init(self)
monarch.register(self.screen_id, self.screen_proxy, self.popup, {
show_in = self.transition_show_in,
show_out = self.transition_show_out,
back_in = self.transition_back_in,
back_out = self.transition_back_out,
})
monarch.register(self.screen_id, self.screen_proxy, self.popup, self.transition_url, self.controller_url)
end
function final(self)