27 lines
482 B
Lua
Raw Normal View History

local strategy = {
2023-03-14 13:18:53 +08:00
play = function()
print('TODO: play')
end,
pageup = function()
print('TODO: pageup')
end,
pagedown = function()
print('TODO: pagedown')
end,
pin = function()
print('TODO: pin')
end,
2023-03-14 13:18:53 +08:00
close = function(hover)
hover:destroy()
end,
toggle_entry = function()
print('TODO: toggle_entry')
end,
}
2023-03-14 13:18:53 +08:00
return function(hover, action)
-- TODO :
2023-03-14 18:17:07 +08:00
strategy[action](hover)
end