tom300z

[1.7.x] 4kSP - Scaled map icons and text

Recommended Posts

4kSP 0.1

While most UI elements are scalable by default, the Map icons and ther labels (the orbit apoapsis for example) are not, that makes the game almost unplayable at high resolutions. This Mod scales those things using the stock UI Scale setting.

Comparison Image (at 4k resolution):
rf7YPdg.jpg

This add on is still in early development so some things might appear offset or incorrectly scaled. It’s also my first add on for KSP, so please feel free to leave feedback so i can improve it.

Downloads

CKAN
Spacedock
Gitlab

FAQ

Q: How do i activate this mod?
A: 4kSP scales the map elements corresponding to the stock UI scale setting. The UI scale slider can be found under Settings > General > UI-Scale.

License & Source

This add on is available under the MIT License and the source code is available on Gitlab.
Edited by tom300z

Share this post


Link to post
Share on other sites

Hello @tom300zand welcome to the KSP Forum!

I just wanted to let you know that when posting an add-on release on the forum, there are a few requirements which are spelled out here: Add-On Posting Rules

The basic upshot is:

    Your post above needs to specify which license applies.
    It also needs to provide a link to the mod's source code.
    The download file needs to contain the full text of the license.

Please make the necessary changes to both the post and the download file.


Thanks,
KSP Moderation Team

Share this post


Link to post
Share on other sites

Thanks a bunch, I’ll check this out when I have time to play again! Even at 1440p the scaling irks me at times. 

Hope the licensing bit works out ;) 

Share this post


Link to post
Share on other sites

Hey @Starhawk,

thanks for taking the time to help me out.

I've updated my post and specified the license, i also noticed that my Gitlab link was broken so i fixed that too.
The download file should also contain the license now.

Greetings Tom

Share this post


Link to post
Share on other sites
4 hours ago, tom300z said:

thanks for taking the time to help me out.

Helping folks out is my favourite part of being a moderator.

Good luck with your mod.


Happy landings!

Share this post


Link to post
Share on other sites

I noticed in the screenshot that the text over the Ap and Pe nodes is really far down, almost covering the point on the orbit line.

I recommend increasing the lineHeight variable here:

 

                caption.GetComponent<TMPro.TextMeshProUGUI>().fontSize = 12 * GameSettings.UI_SCALE;
                caption.GetComponent<TMPro.TextMeshProUGUI>().lineHeight = 12 * GameSettings.UI_SCALE;

I haven't tried this, but it may help.

I've downloaded your Gitlabs source code and I wanted to build this, but I get errors:

Error	CS0246	The type or namespace name 'UnityEngine' could not be found
Error	CS0246	The type or namespace name 'KSP' could not be found

So, obviously I'm missing something. Can you point me in the right direction to setting up my VS to create mods? Thanks!

Share this post


Link to post
Share on other sites

A very useful little mod! I'm using it in KSP 1.8.1 and have had no issues with it so far, haven't tried it in 1.9 yet but I'd be surprised if it didn't work there too.

Share this post


Link to post
Share on other sites

Very useful indeed ! I like to play KSP in 4K and it was a pain to have to squint my eyes on the map screen. It works well in 1.9.1 btw.

Share this post


Link to post
Share on other sites
Posted (edited)

Heck, works in 1.10 for me.  My 4K display is very thankful.

Edited by R-T-B

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.