Closed pq closed 4 years ago
encoder, key and screen settings should be saved and restored between switches.
specifically, this will
redraw()
forward pointers:
menu.init() asserts encoder settings here:
menu.init()
https://github.com/monome/norns/blob/90b16dfa3a4d2114e448a4fb4558f1b8687680dd/lua/menu.lua#L291-L292
which is called after script init here:
https://github.com/monome/norns/blob/90b16dfa3a4d2114e448a4fb4558f1b8687680dd/lua/script.lua#L42-L43
see also: #345 (for the plumbing to manage screen state).
/cc @tehn @artfwo
screen attribute saving works now.
must get the encoder states to restore properly now
encoder, key and screen settings should be saved and restored between switches.
specifically, this will
redraw()
s since scripts won't need to (re)assert their screen settingsforward pointers:
menu.init()
asserts encoder settings here:https://github.com/monome/norns/blob/90b16dfa3a4d2114e448a4fb4558f1b8687680dd/lua/menu.lua#L291-L292
which is called after script init here:
https://github.com/monome/norns/blob/90b16dfa3a4d2114e448a4fb4558f1b8687680dd/lua/script.lua#L42-L43
see also: #345 (for the plumbing to manage screen state).
/cc @tehn @artfwo