Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hide delta V UI when the stock delta V app/calculations are disabled. #31

Merged
merged 1 commit into from
Apr 19, 2022

Conversation

NathanKell
Copy link
Contributor

Otherwise it's just showing a bunch of "0m/s" and empty UI windows, which looks broken.

Annoyingly there's a little empty gray area where the total dV display was on the staging UI, but I'm not seeing an obvious way to remove it or shrink the background, so eh. Better than a constant display of "0m/s" there at least.

@gotmachine gotmachine changed the base branch from master to dev April 19, 2022 07:25
@gotmachine
Copy link
Contributor

Seems good.

A few remarks :

I was about to do a new release, will merge and take care of those bits. Thanks for the contribution !

@gotmachine gotmachine merged commit 2939e14 into KSPModdingLibs:dev Apr 19, 2022
@NathanKell
Copy link
Contributor Author

Ooh, thanks! Will remember. :)

@gotmachine
Copy link
Contributor

gotmachine commented Apr 19, 2022

Little note in case the become relevant in the future : the patch might break the BasicDeltaV mod by DMagic.

Doesn't really matter since that mod is abandoned and doesn't work in 1.12, but in case it ever get revived and the patch causes an issue, it should disable the patch through MM.

@yalov
Copy link
Contributor

yalov commented Apr 23, 2022

this "burn time" string could be removed for disabled stock dV

and maybe put "disable Stock dV calculation" in the KSPCF GUI options?

@gotmachine
Copy link
Contributor

this "burn time" string could be removed for disabled stock dV

Yep I noticed that too. Will try to look into it.

maybe put "disable Stock dV calculation" in the KSPCF GUI options?

Well, I prefer not to make that an user-facing setting. I remember seeing some plugins relying on those (BetterBurnTime ?). "Advanced" users can take the responsibility of editing the KSP settings.cfg file manually to disable them.

This patch is there as a convenience fix for disabling the UI for that use case or when another plugin (RO...) decides to disable the stock DV calcs. Resulting bugs or plugin incompatibilities while doing so are their responsibility.

@NathanKell
Copy link
Contributor Author

NathanKell commented Apr 23, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants