HISE Logo Forum
    • Categories
    • Register
    • Login

    Image shows in expansion but now presets dont

    Scheduled Pinned Locked Moved Unsolved Presets / Scripts / Ideas
    preset browserexpansionimages
    36 Posts 3 Posters 176 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.
    • d.healeyD
      d.healey @Jaytove
      last edited by

      @Jaytove I thought you only wanted images for the expansions?

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

      1 Reply Last reply Reply Quote 0
      • J
        Jaytove
        last edited by

        @d-healey i do only want images for expansions im only going to use the expansion and the preset browers the other 2 columns are not going to be used why is double letters coimng up on my presets?

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

          @Jaytove If you don't want to use the other columns at all you can hide them in the Property editor.

          In your original look and feel function you had an if statement.

          if (obj.columnIndex == -1)

          Everything you put between {} will only apply to the expansion column.

          If you add an else clause, as @Chazrox suggested, then anything you put in the else will affect all the other columns, but not the expansion column.

          if (obj.columnIndex == -1)
          {
              // Stuff here is only for the expansion column
          }
          else
          {
              // Stuff here is for the other 3 columns only
          }
          

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

          1 Reply Last reply Reply Quote 1
          • J
            Jaytove
            last edited by

            @d-healey when ever i add the if(obj.column == -1) the image disapears the only place im stuck at now is that all the preset names have xxx over them how do i remove xxx from covering the presets names?

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

              @Jaytove said in Image shows in expansion but now presets dont:

              the only place im stuck at now is that all the preset names have xxx over them how do i remove xxx from covering the presets names?

              That means you're trying to draw images in the else part.

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

              1 Reply Last reply Reply Quote 0
              • J
                Jaytove
                last edited by

                @d-healey so now im lost im not spouse to use the draw function to get the text to show i thought once i drew one i had to draw everything?

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

                  @Jaytove

                  Is this what you are doing?

                  if (obj.columnIndex == -1)
                  {
                     // Here you draw images for your expansions
                  }
                  else
                  {
                     // Here you draw text for the other columns
                  }
                  

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

                  1 Reply Last reply Reply Quote 0
                  • J
                    Jaytove
                    last edited by

                    @d-healey ```

                      {
                            g.setColour(Colours.withAlpha(Colours.white, obj.hover ? 1.0 : 0.5));
                            g.drawImage(obj.text, a, 0, 0);
                            g.drawText(obj.text,a);
                            }
                    ```
                    when i add the if statemet the image disapears this way everything works accpet that the preset names have xxx over them
                    d.healeyD 1 Reply Last reply Reply Quote 0
                    • d.healeyD
                      d.healey @Jaytove
                      last edited by

                      @Jaytove show me the code with the if statement

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

                      1 Reply Last reply Reply Quote 0
                      • J
                        Jaytove
                        last edited by

                        @d-healey i must of mistyped it cause i just retyped it and its better than before your a genius you have no idea how much i appericate you taking your time with me. Im sure you have a million other things you could be doing right now, I JUST WANT YOU TO KNOW THAT I TRULY AND GRATELY APPERICATE YOU THANK YOU VERY MUCH I SINCERLY MEAN THAT

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

                        23

                        Online

                        2.0k

                        Users

                        12.7k

                        Topics

                        109.9k

                        Posts