HISE Logo Forum
    • Categories
    • Register
    • Login

    Initial Zoom Scale Factor

    Scheduled Pinned Locked Moved General Questions
    7 Posts 2 Posters 324 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.
    • bendursoB
      bendurso
      last edited by

      How can I set an initial value to SCALE_FACTOR (zoom) from GeneralSettings.xml? I would like the initial value to be 0.75 (when the user opens the plugin only for the first time).

      I think I had read in some post that it's not recommend shipping the GeneralSettings.xml file modified in the installer.

      d.healeyD 1 Reply Last reply Reply Quote 0
      • d.healeyD
        d.healey @bendurso
        last edited by

        @bendurso Settings.setZoomLevel()

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

        bendursoB 1 Reply Last reply Reply Quote 0
        • bendursoB
          bendurso @d.healey
          last edited by

          @d-healey Yes, but how do I set the value when opening the plugin for the first time? If I put it in "in init" I understand that it will be modified every time the plugin is opened.

          d.healeyD 1 Reply Last reply Reply Quote 0
          • d.healeyD
            d.healey @bendurso
            last edited by

            @bendurso Hmm I think for that you'd need to write a value to a file the first time the plugin is opened. And every time the plugin is opened after that you check if the file exists, if it does you know that it's not the first time it's been opened so you don't set the scaling.

            There might be a simpler way but that's the first way that came to my mind.

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

            bendursoB 1 Reply Last reply Reply Quote 1
            • bendursoB
              bendurso @d.healey
              last edited by

              @d-healey Nice, thanks. It also occurred to me that I can check if the zoom level is equal to 1.0, and if it is (inital value), I reduce it to 0.75

              I'm using draggable zoom with decimal values, so the chances of the user choosing exactly 1.0 are slim.

              If anyone has another idea I'll listen :)

              d.healeyD 1 Reply Last reply Reply Quote 0
              • d.healeyD
                d.healey @bendurso
                last edited by

                @bendurso said in Initial Zoom Scale Factor:

                If anyone has another idea I'll listen :)

                Currently you are making 0.75 your 1.0, instead build your interface to work at 1.0 by default.

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

                bendursoB 1 Reply Last reply Reply Quote 0
                • bendursoB
                  bendurso @d.healey
                  last edited by

                  @d-healey hehe yes, that would be better. But it's a bit late for this project :(

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

                  17

                  Online

                  1.7k

                  Users

                  11.9k

                  Topics

                  103.4k

                  Posts