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

Added support for automatically preloading screens

This commit is contained in:
Björn Ritzl
2019-01-11 08:47:06 +01:00
parent 7f770d6b3b
commit 7740499821
6 changed files with 103 additions and 14 deletions

View File

@@ -6,6 +6,7 @@ go.property("popup", false)
go.property("popup_on_popup", false)
go.property("transition_id", hash(""))
go.property("focus_id", hash(""))
go.property("preload", false)
function init(self)
@@ -18,6 +19,7 @@ function init(self)
popup_on_popup = self.popup_on_popup,
transition_id = self.transition_id,
focus_id = self.focus_id,
auto_preload = self.preload,
}
monarch.register_factory(self.screen_id, self.screen_factory, settings)
end