MechJeb2

MechJeb2

4M Downloads

Toolbar buttons missing

Machine-Maker opened this issue · 4 comments

commented

Having an issue where buttons are missing from toolbar. Linuxgurugamer said issues with missing buttons should be reported here. As you can see I’ve unlocked delta V, but it’s not an option in the toolbar available buttons.
image

commented

There may be more to it than overriding IconName

Also, I do think that's actually it. Because the string returned by IconName (passed through GetCleanName) is used as the buttons ID. So its trying to add a bunch of buttons with the same ID, each one overriding the previous. Will test here shortly, I think I got my environment almost working for dev.

commented

Ok, looking into the code a bit, I think it’s because the Preset windows don’t override the IconName method, so it just returns the default name from DisplayModule.cs

commented

I guess I never implemented it. There may be more to it than overriding IconName. I doubt the button will add/remove themselves when windows are added/removed.
I can not work on it currently so if you want to try to implement it feel free to submit a PR.

commented

Yeah, I can try but idk how successful I'll be. I have literally 0 experience with C#