HISE Logo Forum
    • Categories
    • Register
    • Login

    Buttons based on SVG

    Scheduled Pinned Locked Moved Feature Requests
    6 Posts 3 Posters 392 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

      It would be great if there were a direct function within the button component to import an SVG and set colors for the different states (Hover, Clicked).

      I know it is possible through Paint Routines, but this might simplify things a little when creating the interface.

      d.healeyD oskarshO 2 Replies Last reply Reply Quote 0
      • d.healeyD
        d.healey @bendurso
        last edited by

        @bendurso You can do it with LAF

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

        bendursoB 1 Reply Last reply Reply Quote 1
        • oskarshO
          oskarsh @bendurso
          last edited by

          @bendurso For these cases its much easier to just create your own 'library' which is basically a set of reusable function for LAF or PaintRoutines.

          breathing HISE

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

            @d-healey said in Buttons based on SVG:

            You can do it with LAF

            I know. It's just a feature request. I think it would be great to have a built it component for SVG inside the button:
            Screenshot 2024-02-28 at 15.50.55.png

            @oskarsh said in Buttons based on SVG:

            own 'library' which is basically a set of reusable function for LAF or PaintRoutines.

            Do you mean a saved script for reuse, or something different?

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

              @bendurso Yes you can create a namespace containing all your helpers functions that you often need. I like to copy my helpers scripts over to the project that I am working on but you could also put them in your global scripts folder.

              breathing HISE

              bendursoB 1 Reply Last reply Reply Quote 0
              • bendursoB
                bendurso @oskarsh
                last edited by bendurso

                @oskarsh said in Buttons based on SVG:

                namespace containing all your helpers functions

                Oh thanks, yes I usally do that too.

                @d-healey said in Buttons based on SVG:

                You can do it with LAF

                Oh, I just found this tutorial https://www.youtube.com/watch?v=badkm6QVNIA, which is a bit better than the Paint Routines method (using panels) that I knew.

                Still, a built-in function in the component would be nice, since SVG is the new standard for resizable GUI.

                Edit: After following that tutorial, I discovered that the method is indeed easy and convenient to use with multiple SVGs. Thank you!

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

                53

                Online

                1.7k

                Users

                11.7k

                Topics

                101.8k

                Posts