blowfishpro / B9PartSwitch

A Kerbal Space Program plugin designed to implement switching of part meshes, resources, and nodes
GNU Lesser General Public License v3.0
50 stars 33 forks source link

QoL improvements for parts with a large number of subtypes #228

Open Scialytic opened 2 years ago

Scialytic commented 2 years ago

If there's anything you don't like or want me to change, I'm happy to fix it.

I think this is mostly relevant for Conformal Decals. https://github.com/blowfishpro/B9PartSwitch/issues/199 With a big atlas texture, 50+ (or even 100+) subtypes is not outside the realm of possibility.

The popup selector is unchanged if it fits nicely on screen: B9PS_0

But if it would be too tall, a scrolling version is used instead: B9PS_1+2

The in-PAW selector now scrolls automatically to keep the current subtype button visible. The selected button will be centered unless it's too near the start/end of the list. I also boost the scroll sensitivity according to the number of buttons, for people who prefer mouse-wheeling to dragging their way through a long list. B9PS_3

Grimmas commented 1 year ago

We were discussing on Discord today and this came up. This is definitely a feature I want to see in B9, as I have a few patches out that convert other mods to B9 and they have very many tank setups to the point that the window overflows and it's impossible to select some of the tanks. screenshot130