3
0
mirror of https://github.com/britzl/monarch.git synced 2025-06-27 18:37:46 +02:00
Monarch-Extension/test/data/screen_preload.gui_script
Björn Ritzl 20cf731fdb
Wait with screen unload until next screen is loaded and ready to be shown (#74)
* Removed screen flicker when transitioning between screens

* Moved advanced example to subfolder. Added basic example.

* Remove flicker on back navigation too

* Fix issue with no_stack screens added at any time
2021-06-24 07:45:09 +02:00

6 lines
164 B
Plaintext

function init(self)
local monarch = require "monarch.monarch"
local data = monarch.data(hash("screen_preload"))
if data then data.count = data.count + 1 end
end