diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2022-07-12 13:40:53 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2022-07-12 13:40:53 -0700 |
commit | 094f3bd7e89ada36ddef8845770de21e71977954 (patch) | |
tree | 30ad27082be303347e93ae95ed0baaefbbb5f4a1 /main.lua | |
parent | 9b49c8da7725a9ec53bb594674f304f2b4681a6a (diff) | |
download | lines.love-094f3bd7e89ada36ddef8845770de21e71977954.tar.gz |
button framework is at the app level
Diffstat (limited to 'main.lua')
-rw-r--r-- | main.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/main.lua b/main.lua index 6a4e30c..c9c5142 100644 --- a/main.lua +++ b/main.lua @@ -2,12 +2,15 @@ utf8 = require 'utf8' require 'app' require 'test' + require 'keychord' +require 'button' require 'main_tests' -- delegate most business logic to a layer that can be reused by other projects require 'edit' +Editor_state = {} -- called both in tests and real run function App.initialize_globals() @@ -136,6 +139,7 @@ function App.filedropped(file) end function App.draw() + Button_handlers = {} edit.draw() end |