button with 2< states

Home Forums General Using Ctrlr button with 2< states

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #270
    msepsis
    Participant
      • Topics: 219
      • Replies: 732
      • Total: 951
      • ★★★

      can a button have more than 2 states? doesn’t seem so but I’m hoping I’m just missing something.

      I’d like to create a button, lets say for example that sets the arpegitor off, on or in hold position.

      I’d like this to be a button with two LEDs:

      first state is the button, and two greyed out LEDs
      second state: button and first LED illuminated, second LED grey
      third state: button and first LED grey, second LED illuminated

      thank you!

      Monstrum Media | Music, Sound & Software Design, Chicago / San Francisco listen

      #2246
      atom
      Keymaster
        • Topics: 159
        • Replies: 2945
        • Total: 3104
        • ★★★★★

        yeah two states are for uiToggleButton (true/false) but for a uiButton you can have N states you just fill the state name value in the Button contents field
        [code:2lti3jb1]
        Value name1=1
        Value name2=2
        Value name3=6
        Value name4=78
        [/code:2lti3jb1]

        and the button will cycle through them

        #2245
        msepsis
        Participant
          • Topics: 219
          • Replies: 732
          • Total: 951
          • ★★★

          [img:olu2eb54]http://www.monstrumsepsis.com/stuff/xtbutton.png[/img:olu2eb54]

          I want to use custom gfx, the led indicates the state.
          I’m using uiImageButton as a modulator type.

          I put:
          0
          1
          2
          in the button value

          I turn the label visibility check box to off.

          The image above is 60×66… each state is 60×22 (3×22=66)

          I set the resource image width to 60, set the height to 22 (also have tried 66 out of desperation)

          The button does not look right… it splits in the wrong place.

          I turn the display value to "no value"

          the button graphic vanishes.

          what am I missing? I’m on rev 416 on osx (will be back to a pc to try this on tomorrow)

          Thank yoU!

          Monstrum Media | Music, Sound & Software Design, Chicago / San Francisco listen

          #2244
          atom
          Keymaster
            • Topics: 159
            • Replies: 2945
            • Total: 3104
            • ★★★★★

            the uiButton has only 2 images one for normal and one for DOWN states, it can cycle through various values but it will use only the two images normal and down, it won’t work like you described that needs to be a different component.

            #2242
            msepsis
            Participant
              • Topics: 219
              • Replies: 732
              • Total: 951
              • ★★★
              "atom":310449jo wrote:
              the uiButton has only 2 images one for normal and one for DOWN states, it can cycle through various values but it will use only the two images normal and down, it won’t work like you described that needs to be a different component.[/quote:310449jo]

              ok. so if not uiButton, uiImageButton or a uiToggleButton … which kind of component would make it possible to lay in a button with custom gfx which toggles through more than 2 states??

              Thanks atom

              Monstrum Media | Music, Sound & Software Design, Chicago / San Francisco listen

              #2243
              atom
              Keymaster
                • Topics: 159
                • Replies: 2945
                • Total: 3104
                • ★★★★★

                at the moment none, but i’ll cook something up i promise.

              Viewing 6 posts - 1 through 6 (of 6 total)
              • The forum ‘Using Ctrlr’ is closed to new topics and replies.
              There is currently 0 users and 84 guests online
              No users are currently active
              Forum Statistics
              Threads: 2,495, Posts: 17,374, Members: 77,605
              Most users ever online was 12 on January 22, 2019 3:47 pm
              Ctrlr