Forum

    • Register
    • Login
    • Search
    • Categories

    New Preset Browser LAF?

    General Questions
    2
    4
    36
    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.
    • DanH
      DanH last edited by

      Saw there's been some additions in latest commit?

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

        @DanH Yup

        laf.registerFunction("createPresetBrowserIcons", function(id)
        {
            if (id == "favorite_on")
                return myOnPath;
        
            if (id == "favorite_off")
                return myOffPath;
        });
        

        I found though it doesn't seem to work with a path that's just an outline, it will fill it in.

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

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

          @d-healey cool thanks, are there any other id's? searchIcon?

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

            @DanH Yeah but you're better off using the drawPresetBrowserSearchBar function which also lets you draw the icon. I think it would be good to have a drawFavouriteButton function as well, then we could change the colour and opacity of the favourite button too, but changing the icon is a good start.

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

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

            17
            Online

            740
            Users

            5.4k
            Topics

            50.3k
            Posts