Skip to content

Commit

Permalink
Disable functions after beat 0
Browse files Browse the repository at this point in the history
I just replace a bunch of the functions with stubs that get mad at you
for using them after beat 0 instead of doing anything. I hope this works
well.
  • Loading branch information
xerool committed May 29, 2021
1 parent 9cb7f49 commit 880e565
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions template/template.xml
Original file line number Diff line number Diff line change
Expand Up @@ -740,6 +740,19 @@
resolve_aliases()
compile_nodes()
-- disable all the table inserters during runtime
ease = function() screen_error('cannot be run after beat 0', 1, 'ease') end
add = function() screen_error('cannot be run after beat 0', 1, 'add') end
func = function() screen_error('cannot be run after beat 0', 1, 'func') end
set = function() screen_error('cannot be run after beat 0', 1, 'set') end
get = function() screen_error('cannot be run after beat 0', 1, 'get') end
setdefault = function() screen_error('cannot be run after beat 0', 1, 'setdefault') end
reset = function() screen_error('cannot be run after beat 0', 1, 'reset') end
node = function() screen_error('cannot be run after beat 0', 1, 'node') end
definemod = function() screen_error('cannot be run after beat 0', 1, 'definemod') end
aux = function() screen_error('cannot be run after beat 0', 1, 'aux') end
alias = function() screen_error('cannot be run after beat 0', 1, 'alias') end
self:luaeffect('Update')
end
Expand Down

0 comments on commit 880e565

Please sign in to comment.