HISE Logo Forum
    • Categories
    • Register
    • Login

    Look and Feel question.

    Scheduled Pinned Locked Moved General Questions
    7 Posts 3 Posters 334 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.
    • CyberGenC
      CyberGen
      last edited by

      Is there a function that I can use to see the default look and feel code of objects so that I can use it as reference when writing custom laf for similar objects?

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

        @RastaChess You'd need to go into the HISE source code to find it

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

        CyberGenC 1 Reply Last reply Reply Quote 1
        • A
          aaronventure
          last edited by

          Do you mean

          Console.print(trace(obj));
          

          ?

          CyberGenC 1 Reply Last reply Reply Quote 0
          • CyberGenC
            CyberGen @aaronventure
            last edited by CyberGen

            @aaronventure trace is more for like properties, I mean something like (see below) but instead of this customized code, the original or default look and feel code. It would be so useful as a starting point reference.

            //	ALERT WINDOW
             	laf.registerFunction("drawAlertWindow", function(g, obj)
            		{
            			Console.print(trace(obj));
            
            			var a = obj.area;
            			var mA = [a[3]*0.01, a[3]*0.01, a[2]*0.99, a[3]*0.99];
            			g.setColour(Colours.darkgrey);	
            		 	g.drawRect(mA, 1);
            		});
            
            1 Reply Last reply Reply Quote 2
            • CyberGenC
              CyberGen @d.healey
              last edited by

              @d-healey daunting.

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

                @RastaChess

                daunting.

                Link Preview Image
                HISE/hi_tools/hi_tools/HI_LookAndFeels.cpp at develop · christophhart/HISE

                The open source framework for sample based instruments - HISE/hi_tools/hi_tools/HI_LookAndFeels.cpp at develop · christophhart/HISE

                favicon

                GitHub (github.com)

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

                CyberGenC 1 Reply Last reply Reply Quote 1
                • CyberGenC
                  CyberGen @d.healey
                  last edited by

                  @d-healey thank you for pointing me in the right direction.

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

                  51

                  Online

                  1.7k

                  Users

                  11.7k

                  Topics

                  101.9k

                  Posts