HISE Logo Forum
    • Categories
    • Register
    • Login

    Panel paint routine...sharing one.

    Scheduled Pinned Locked Moved General Questions
    8 Posts 2 Posters 322 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
      last edited by

      So I have a lot of panels that have very slight customisations, so I'd like to share a single paint routine amongst all of them but I cant work out how to do this and still have access to stuff like this.getLocalBounds etc.

      any ideas?

      HISE Development for hire.
      www.channelrobot.com

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

        @Lindon I made a video about this. I'm not at my computer at the moment but take a look at the paint routines playlist on my channel

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

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

          @d-healey said in Panel paint routine...sharing one.:

          @Lindon I made a video about this. I'm not at my computer at the moment but take a look at the paint routines playlist on my channel

          okay thanks will do...

          HISE Development for hire.
          www.channelrobot.com

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

            @d-healey ..nearly...

            I want to be able to parse thru Content.getAllComponents("") looking for panels and assign them the same paint routine.. but for some reason I cant get it to work...

            HISE Development for hire.
            www.channelrobot.com

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

              @Lindon ah I do something like that here https://codeberg.org/LibreWave/RhapsodyBoilerplate/src/branch/main/includes/Card.js#L23

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

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

                @d-healey thanks, you mean this?

                x.setPaintRoutine(function(g) {cardPaintRoutine(g);});

                HISE Development for hire.
                www.channelrobot.com

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

                  ..if so then no as I cant access localBounds etc.

                  LAF.js (1472): Unknown function 'getLocalBounds

                  HISE Development for hire.
                  www.channelrobot.com

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

                    so nearly there... its more like:

                    XYPathNamePanel.setPaintRoutine(function(g){panelPainter(g, this);});

                    HISE Development for hire.
                    www.channelrobot.com

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

                    26

                    Online

                    1.7k

                    Users

                    11.8k

                    Topics

                    102.8k

                    Posts