This Forum is now reserved to registred users!
Show a module and hide all others
-
@bugsounet Hello from Greece. When you have the time please check the below recipe you wrote for me in order to hide/show modules and tell me if it is possible to hide all others modules when I show the desired one. And when it gets hidden again to appear all other modules. Thank you in advance.
var recipe = { transcriptionHooks: { "HIDE_CLOCK": { pattern: "Hide Clock", command: "hide_clock" }, "SHOW_CLOCK": { pattern: "Show Clock", command: "show_clock" }, }, commands: { "hide_clock": { moduleExec: { module: () => { MM.getModules().enumerate((m)=> { if (m.name == "clock") m.hide(1000, {lockString: "RECIPE_LOCKED"}) })