DKL9 GitList
Repositories
DKL9 home
memoire
Code
Commits
Branches
Tags
Search
Tree:
b39812d
Branches
Tags
master
memoire
src
toggle.lua
Reformulate data structures
John Smith
commited
b39812d
at 2023-177 12:35:37
toggle.lua
Blame
History
Raw
local function fn(config, deck, _, ip) local sp = deck[ip[1]].pr[ip[2]] local dir if sp.delay < 0 then dir = "Restoring" else dir = "Suspending" end io.write(string.format("%s %s\n", dir, sp)) sp.delay = -sp.delay return deck end return { desc = "(t)oggle suspension of prompt (with card:prompt index)", nd = true, ni = true, fn = fn }