There's com.fs.starfarer.ui.newui.OptionPanel.Option
Doesnt seem to exist on my side, might be obfuscated or not on the current build.
Hmm. Is something like this adequate?
https://i.imgur.com/oent4ik.gif
It does have the shortcoming of losing the default keyboard shortcuts for options above 9. And I'm not super happy that in a way this encourages having more options in these kinds of dialogs; imo they work best UI-wise when the number of options is limited...
It would help, because people will add options to the market menu no matter if this exists or not (As is already the case), even when its not the nicest solution.
If you find another solution that would be fine too, its mostly that modders already like adding to the main market menu, and it causes to stack up when you run multiple of such mods.
Also while somewhat off topic and beyond this thread but on a similar issue, would changing the colony structures menu in to a scroll bar be possible aswell? Hartley has made a mod that allows for more than 12 structures, but it is very janky, and 12 structures just isnt enough when playing with mods. Of course the vanilla limit could still just be 12, but a mod could modify the limit, beyond which it would smoothy enable a scroll-bar for any further structures.