HISE Logo Forum
    • Categories
    • Register
    • Login

    Plugin doesn't respect UI Zoom Factor onInit

    Scheduled Pinned Locked Moved Scripting
    25 Posts 6 Posters 1.5k 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.
    • LindonL
      Lindon @ccbl
      last edited by

      @ccbl said in Plugin doesn't respect UI Zoom Factor onInit:

      @oskarsh how would that look in context?

      inline function onFiftyControl(component, value)
      {
      	Settings.setZoomLevel(0.5);
      };
      Content.getComponent("Fifty").setControlCallback(onFiftyControl)
      

      Do you define the value as 1.0?

      I really don't know coding very well.

      so like this:

      inline function onFiftyControl(component, value)
      {
          if(value)
              Settings.setZoomLevel(0.5);
      };
      Content.getComponent("Fifty").setControlCallback(onFiftyControl)
      

      HISE Development for hire.
      www.channelrobot.com

      d.healeyD oskarshO C 3 Replies Last reply Reply Quote 0
      • d.healeyD
        d.healey @Lindon
        last edited by

        @Lindon Genius!

        Libre Wave - Freedom respecting instruments and effects
        My Patreon - HISE tutorials
        YouTube Channel - Public HISE tutorials

        LindonL 1 Reply Last reply Reply Quote 1
        • LindonL
          Lindon @d.healey
          last edited by

          @d-healey ha ha ha ha.....

          HISE Development for hire.
          www.channelrobot.com

          1 Reply Last reply Reply Quote 0
          • oskarshO
            oskarsh @Lindon
            last edited by

            @Lindon wow sleek and elegant solution!

            1 Reply Last reply Reply Quote 0
            • C
              ccbl @Lindon
              last edited by

              @Lindon said in Plugin doesn't respect UI Zoom Factor onInit:

              @ccbl said in Plugin doesn't respect UI Zoom Factor onInit:

              @oskarsh how would that look in context?

              inline function onFiftyControl(component, value)
              {
              	Settings.setZoomLevel(0.5);
              };
              Content.getComponent("Fifty").setControlCallback(onFiftyControl)
              

              Do you define the value as 1.0?

              I really don't know coding very well.

              so like this:

              inline function onFiftyControl(component, value)
              {
                  if(value)
                      Settings.setZoomLevel(0.5);
              };
              Content.getComponent("Fifty").setControlCallback(onFiftyControl)
              

              After flushing my %appdata% config this worked! Thanks!

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

              22

              Online

              1.7k

              Users

              11.9k

              Topics

              103.6k

              Posts