Bugsounet Coding

    • Register
    • Login
    • Search
    This Forum is now reserved to registred users!

    Show a module and hide all others

    Recipes
    1
    1
    40
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      Anthony Donators last edited by

      @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"})
                })
      
      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Powered by NodeBB | @bugsounet ©2022