net-lisias-ksp / DistantObject

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

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

Closed Lisias closed 3 months 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).

Additionally: allows the user to select the font and size for the flyover labels.

Lisias commented 1 year ago

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

Lisias commented 1 year 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 7 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)

Lisias commented 3 months ago

Putting it back to 2.2.0.0 . I will tackle this down this week.

Lisias commented 3 months ago

Implemented on commits https://github.com/net-lisias-ksp/DistantObject/commit/a67001a8166d9fd9f1f72c0546b5ba5d9046df81 and https://github.com/net-lisias-ksp/DistantObject/commit/72d7502777354a08ab397e15cb314efcf6d81901