Varsuuk
June 28th, 2023, 15:56
I have a global script referenced by a ComboBox (in this case, created through RW, in case the proxy matters.) The combobox is for (base)races and is initially populated upon layout. When the value in the race box changes (onValueChanged(), it calls clear on the subraces combobox and popuates the subraces combo with corresponding subraces (sometimes, it is an empty list)
The part above seems to work.
What doesn't work, is that if I had selected a subrace previously, selecting a new race which clear()s the "linked" subrace combo does not clear the text in the visibe string for thje combobox. If I click it, I now see a different list (which does not have the old (still) visible value in it.) It might even be an empty list.
Is there an existing example of some such use of combo boxes where the current value selected on a "linked" box is changed when the "prime" choice is changed?
(or... am I using completely the wrong paradigm for selecting from preset lists of valid choices and those choices present another subset. I know in 5E when some similar "multichoices" happen, it is via a dialog that depending on selection, the followup dialog offers different choices. I'd like to do it all on one window vs popups, if this is possible.)
The part above seems to work.
What doesn't work, is that if I had selected a subrace previously, selecting a new race which clear()s the "linked" subrace combo does not clear the text in the visibe string for thje combobox. If I click it, I now see a different list (which does not have the old (still) visible value in it.) It might even be an empty list.
Is there an existing example of some such use of combo boxes where the current value selected on a "linked" box is changed when the "prime" choice is changed?
(or... am I using completely the wrong paradigm for selecting from preset lists of valid choices and those choices present another subset. I know in 5E when some similar "multichoices" happen, it is via a dialog that depending on selection, the followup dialog offers different choices. I'd like to do it all on one window vs popups, if this is possible.)