HISE Logo Forum
    • Categories
    • Register
    • Login

    Floating Tile Button

    Scheduled Pinned Locked Moved General Questions
    50 Posts 7 Posters 5.3k 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.
    • Tod SlaughterT
      Tod Slaughter @d.healey
      last edited by

      @d-healey alt text

      d.healeyD 1 Reply Last reply Reply Quote 1
      • d.healeyD
        d.healey @Tod Slaughter
        last edited by

        @tod-slaughter Ya, see my last post :)

        Free HISE Bootcamp Full Course for beginners.
        YouTube Channel - Public HISE tutorials
        My Patreon - HISE tutorials

        1 Reply Last reply Reply Quote 0
        • Tod SlaughterT
          Tod Slaughter
          last edited by

          alt text

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

            @tod-slaughter Like I said, the colours seem to be messed up/buggy. @Christoph-Hart ?

            Free HISE Bootcamp Full Course for beginners.
            YouTube Channel - Public HISE tutorials
            My Patreon - HISE tutorials

            1 Reply Last reply Reply Quote 0
            • Tod SlaughterT
              Tod Slaughter
              last edited by

              I liked your first example btw, really cool but there's a toggle close button in the preset browser that can accidentally destroy the gui

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

                @tod-slaughter That only appears in the preview I think, not in the exported plugin (although I could be wrong about this).

                Free HISE Bootcamp Full Course for beginners.
                YouTube Channel - Public HISE tutorials
                My Patreon - HISE tutorials

                Tod SlaughterT 1 Reply Last reply Reply Quote 0
                • Tod SlaughterT
                  Tod Slaughter @d.healey
                  last edited by

                  @d-healey You're right I just tried it 😁

                  1 Reply Last reply Reply Quote 1
                  • Tod SlaughterT
                    Tod Slaughter
                    last edited by

                    @d-healey sometime ago I found one of your snippets with 2 panels with a show hide button e.g. creating a tab.

                    I can't find it now. Do you remember the one I mean?

                    1 Reply Last reply Reply Quote 0
                    • Christoph HartC
                      Christoph Hart
                      last edited by

                      That one?

                      https://forum.hise.audio/topic/499/multiple-page/9

                      Tod SlaughterT 2 Replies Last reply Reply Quote 0
                      • Tod SlaughterT
                        Tod Slaughter @Christoph Hart
                        last edited by

                        @christoph-hart Not the one but it helped thank you :D

                        1 Reply Last reply Reply Quote 0
                        • Tod SlaughterT
                          Tod Slaughter @Christoph Hart
                          last edited by

                          @christoph-hart Can you please snippet the pop out preset browser like the one in hexeract?

                          1 Reply Last reply Reply Quote 0
                          • Christoph HartC
                            Christoph Hart
                            last edited by

                            Fresh from the source:

                            const var PresetDisplay = Content.getComponent("PresetDisplay");
                            
                            PresetDisplay.setPaintRoutine(function(g)
                            {
                            
                            	g.fillAll(0xFF111111);	
                            	
                            	g.setColour(Colours.white);
                            	
                            	g.drawAlignedText(this.data.text, [0, 0, this.getWidth(), this.getHeight()], "centred");
                            	
                            });
                            
                            PresetDisplay.startTimer(200);
                            
                            PresetDisplay.setTimerCallback(function()
                            {
                                var text = Engine.getCurrentUserPresetName();
                            	
                                if(text == "")
                            	text = "Init";
                            	
                                if(this.data.text != text)
                                {
                                    this.data.text = text;
                                    this.repaint();
                                }
                            });
                            
                            const var presetBrowserData = 
                            {
                              "Type": "PresetBrowser",
                              "Title": " ",
                              "FontSize": 16,
                              "ColourData":
                              {
                                "bgColour": "0xDD111111",
                                "itemColour1": "0xFF46C0D8",
                                "itemColour3": "0x3346C0D8"
                              }
                            };
                            
                            PresetDisplay.setPopupData(presetBrowserData, [PresetDisplay.getWidth()/2, 25, 800, 470]);
                            
                            NatanN 1 Reply Last reply Reply Quote 1
                            • Tod SlaughterT
                              Tod Slaughter
                              last edited by

                              yay! Thx ☺

                              1 Reply Last reply Reply Quote 0
                              • Tod SlaughterT
                                Tod Slaughter
                                last edited by

                                @Christoph-Hart alt text

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

                                  @tod-slaughter I see no controls in your widget list and that function is part of the panel control class so you must have a panel on which to call that function. Basically the script Christoph gave you assumes there are some controls on your canvas, you'll need to create them manually.

                                  Free HISE Bootcamp Full Course for beginners.
                                  YouTube Channel - Public HISE tutorials
                                  My Patreon - HISE tutorials

                                  Tod SlaughterT 1 Reply Last reply Reply Quote 0
                                  • Tod SlaughterT
                                    Tod Slaughter @d.healey
                                    last edited by

                                    @d-healey

                                    I was just trying to test it to see how I could adapt it. Not sure what controls to add as this is called from a text "init" button on the interface of hexeract

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

                                      @tod-slaughter Well I can see that the control PresetDisplay has the setPaintRoutine function attached. So I would guess you need to add a panel called PresetDisplay. In fact that is the only control I see mentioned in Christoph's script.

                                      Free HISE Bootcamp Full Course for beginners.
                                      YouTube Channel - Public HISE tutorials
                                      My Patreon - HISE tutorials

                                      Tod SlaughterT 1 Reply Last reply Reply Quote 0
                                      • Tod SlaughterT
                                        Tod Slaughter @d.healey
                                        last edited by

                                        @d-healey Great I'll try that

                                        1 Reply Last reply Reply Quote 0
                                        • Christoph HartC
                                          Christoph Hart
                                          last edited by

                                          Ah I forgot to enable mouse callbacks. Just add this line somewhere:

                                          PresetDisplay.set("allowCallbacks", "Context Menu");
                                          
                                          Tod SlaughterT 1 Reply Last reply Reply Quote 0
                                          • Tod SlaughterT
                                            Tod Slaughter @Christoph Hart
                                            last edited by

                                            @christoph-hart said in Floating Tile Button:

                                            PresetDisplay.set("allowCallbacks", "Context Menu");

                                            SWEEEEEEET!!!!

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

                                            26

                                            Online

                                            2.0k

                                            Users

                                            12.6k

                                            Topics

                                            109.8k

                                            Posts