Skip to content

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

Merged
gotmachine merged 1 commit into
KSPModdingLibs:devfrom
NathanKell:master
Apr 19, 2022
Merged

Hide delta V UI when the stock delta V app/calculations are disabled.#31
gotmachine merged 1 commit into
KSPModdingLibs:devfrom
NathanKell:master

Conversation

@NathanKell
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor Author

Ooh, thanks! Will remember. :)

@gotmachine
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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