net-lisias-ksp / DistantObject

Distant Object Enhancement (DOE) is a visual enhancement mod that makes objects realistically visible over large distances.
Other
10 stars 3 forks source link

Use the KSP's UI Multiplier Setting on the Labels! #30

Open Lisias opened 1 year ago

Lisias commented 1 year ago

As suggested by Fellow Kerbonaut Krazy1 on Forum.

My take on it:

You know, I just didn't thought about it… And the fix is shamefully easy, it's just a matter of multiplying the font size by a value published by KSP's API with the size multiplier (I forgot the name, but a quick search on the KSP's API will do the trick).

Lisias commented 10 months ago

For future reference, the name of the thing is GameSettings.UI_SCALE

Lisias commented 10 months ago

Bleh. This is a bit more convoluted than I though. I will need to read some documentation first. Postponing it to another opportunity,

Lisias commented 2 months ago

Almost fully implemented on https://github.com/net-lisias-ksp/DistantObject/commit/68c9ae97832ca50843c3fdcd9cf176d64429e007 .

O ran out of time for DOE this weekend, I will come back to it next one (or sooner, if time allows)