Reply To: button array method?

Home Forums General Programming button array method? Reply To: button array method?

#72953
goodweather
Participant
    • Topics: 45
    • Replies: 550
    • Total: 595
    • ★★★

    I did this in a Moog Sub37 panel proto…
    You need to put all buttons in the same Radio Group.
    A radio group is simply a number…
    This will make the button highlighted and switch off the other ones in the same group.

    Then you attach the same OnChange method to all buttons and track the one which is = 1

    Don’t use OnMouse Down because it is not the same!
    OnMouseDown doesn’t mean you change the value…
    If you have an uiImageSlider with a label and the button image, OnMouseDOwn can react when you click on the label and this doesn’t change the On/Off state.
    Clicking on the button will change the On/Off state.
    So, OnMouseDown is not the same as OnChange!

    Ctrlr