HISE Logo Forum
    • Categories
    • Register
    • Login

    LAF Alert Icons

    Scheduled Pinned Locked Moved General Questions
    9 Posts 3 Posters 230 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.
    • DanHD
      DanH
      last edited by

      My Alert Icons are quite blocky... not sure why since I'm using SVG paths... Any ideas how I can make them look a bit nicer?! 😆

      laf.registerFunction("drawAlertWindowIcon", function(g, obj)
      {
          if(obj.type == "Question")
          {
      	    p.loadFromData(question_path_data);
      	    g.setColour(0xFF01999E);
      	    g.fillPath(p, [2, 2, obj.area[2]-10, obj.area[3]-15]);
      
          }
      

      Screenshot 2022-11-08 at 11.34.41.png

      DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
      https://dhplugins.com/ | https://dcbreaks.com/
      London, UK

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

        @DanH Are you using Windows 10 scaling > 100%?

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

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

          @d-healey no, whats that? I'm also on mac!

          DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
          https://dhplugins.com/ | https://dcbreaks.com/
          London, UK

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

            @DanH

            no, whats that?

            I thought perhaps you were using a high resolution monitor with the scaling, which could possibly cause the issue you're seeing.

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

            DanHD 1 Reply Last reply Reply Quote 0
            • orangeO
              orange @DanH
              last edited by orange

              @DanH

              This icon is in the fixed area. Since the width and height of your shape are equal (inside a circle), rather than minus or plus math operations, I would use multiply with using object width (obj.area[2]).

              g.fillPath(p, [2,  2, 0.6 * obj.area[2], 0.6 * obj.area[2]]);
              

              You can make experiments with 0.6 coefficient, try to increase or decrease this value (use the same coefficient for both width and height section) to make it fit to the fixed area.

              develop Branch / XCode 13.1
              macOS Monterey / M1 Max

              DanHD d.healeyD 2 Replies Last reply Reply Quote 1
              • DanHD
                DanH @d.healey
                last edited by

                @d-healey oh I see 😆

                DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
                https://dhplugins.com/ | https://dcbreaks.com/
                London, UK

                1 Reply Last reply Reply Quote 0
                • DanHD
                  DanH @orange
                  last edited by

                  @orange will test, thankyou!

                  DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
                  https://dhplugins.com/ | https://dcbreaks.com/
                  London, UK

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

                    @orange @DanH I do the same kind of thing but with a switch statement to handle all icons.

                    switch (obj.type)
                    {
                        case "Info": multiplier = 0.46; break;
                        case "Warning": multiplier = 0.18; break;
                        case "Question": multiplier = 0.58; break;
                        case "Error": multiplier = 0.18; break;
                    }
                    

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

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

                      @d-healey @orange Thanks both. Didn't improve res unfortunately!

                      DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
                      https://dhplugins.com/ | https://dcbreaks.com/
                      London, UK

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

                      11

                      Online

                      1.7k

                      Users

                      11.8k

                      Topics

                      102.8k

                      Posts