- [NEW] 'app' module
- [NEW] 'editor' module - [NEW] 'msgbox' module - [NEW] 'score' module - [NEW] 'ui' module - [NEW] 'util' module
This commit is contained in:
16
data/app.lua
Normal file
16
data/app.lua
Normal file
@@ -0,0 +1,16 @@
|
||||
app = {
|
||||
|
||||
update = nil,
|
||||
stack = {},
|
||||
|
||||
push = function(func)
|
||||
table.insert(app.stack, mini.update)
|
||||
mini.update = func
|
||||
end,
|
||||
|
||||
pop = function()
|
||||
if #app.stack > 0 then
|
||||
mini.update = table.remove(app.stack)
|
||||
end
|
||||
end,
|
||||
}
|
||||
Reference in New Issue
Block a user