HISE Logo Forum
    • Categories
    • Register
    • Login

    Preset browser resize?

    Scheduled Pinned Locked Moved General Questions
    3 Posts 2 Posters 154 Views
    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.
    • lalalandsynthL
      lalalandsynth
      last edited by

      I just noticed that the preset browser does not resize with the GUi resize.
      I suspect there is no way to make that happen ?

      https://lalalandaudio.com/

      https://lalalandsynth.com/

      https://www.facebook.com/lalalandsynth

      https://www.facebook.com/lalalandsynth

      ustkU 1 Reply Last reply Reply Quote 0
      • ustkU
        ustk @lalalandsynth
        last edited by

        @lalalandsynth Of course it does, you might have a bug somewhere... restart Hise maybe...

        Can't help pressing F5 in the forum...

        1 Reply Last reply Reply Quote 1
        • lalalandsynthL
          lalalandsynth
          last edited by lalalandsynth

          Not when I am using this to display the presetbrowser. Tried with another plugin that does not use scripting for the preset browser and yes that works .

          // Preset open;
          const var PresetDisplay = Content.getComponent("PresetDisplay");
          
          PresetDisplay.setPaintRoutine(function(g)
          {
          
          	g.fillAll(0xFF000000);	
          	
          	g.setColour(0xFFb6a187);
          	
          	g.drawAlignedText(this.data.text, [0, 0, this.getWidth(), this.getHeight()], "centred");
          	
          });
          
          PresetDisplay.startTimer(200);
          
          PresetDisplay.setTimerCallback(function()
          {
              var text = Engine.getCurrentUserPresetName();
          	
              if(text == "")
          	text = "Init";
          	
              if(this.data.text != text)
              {
                  this.data.text = text;
                  this.repaint();
              }
          });
          
          const var presetBrowserData = 
          {
            "Type": "PresetBrowser",
            "Title": " ",
            "FontSize": 16,
            "ShowFolderButton": false,
            "NumColumns": 2,
            "ColourData":
            {
              "bgColour": "0xFF282522",
              "itemColour1": "00B6A187",
              "itemColour3": "00B6A187"
            }
          };
          
          PresetDisplay.setPopupData(presetBrowserData, [PresetDisplay.getWidth()/2, 30, 600, 320]);;
          
          
          PresetDisplay.set("allowCallbacks", "Context Menu");
          

          https://lalalandaudio.com/

          https://lalalandsynth.com/

          https://www.facebook.com/lalalandsynth

          https://www.facebook.com/lalalandsynth

          1 Reply Last reply Reply Quote 0
          • First post
            Last post

          46

          Online

          1.7k

          Users

          11.7k

          Topics

          101.9k

          Posts