Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skipping a page from a tile/plugin #4

Closed
quintenstar opened this issue Apr 5, 2022 · 1 comment
Closed

Skipping a page from a tile/plugin #4

quintenstar opened this issue Apr 5, 2022 · 1 comment

Comments

@quintenstar
Copy link

I don't think it's possible yet, but it would be awesome if it were possible to be able to tell the scheduler to skip a page/slide from a child tile/plugin.

It would be nice for cases when there is no dynamic content available to be shown by the plugin. And not having to display fallback assets as an alternative.

@dividuum
Copy link
Contributor

dividuum commented Apr 6, 2022

This is actually possible already: If the tile exports a can_show function and that function returns false, the whole page will be skipped during each scheduling round. See

function M.can_show(config)
local mode = config.mode or 'all_talks'
print("probing frab mode", mode)
-- these can always play
if mode == "day" or
mode == "clock" or
mode == "all_talks"
then
return true
end
return not not current_room
end

@dividuum dividuum closed this as completed Apr 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants