• Hello Guest!

    We have recently updated our Site Policies regarding the use of Non Commercial content within Paid Content posts. Please read the new policy here.

    An offical announcement about this new policy can be read on our Discord.

    ~The VaMHub Moderation Team
  • Hello Guest!

    We posted an announcment regarding upcoming changes to Paid Content submissions.

    Please see this thread for more information.

SallyUIscale4K

Plugins SallyUIscale4K 7

Sally Whitemane

Well-known member
Featured Contributor
Messages
263
Reactions
944
Points
93
Patreon
sallyw
Sally Whitemane submitted a new resource:

SallyUIscale4K - Fix UI scale on 4K monitors and allow 8K UI scaling

For high resolution monitors only! 4K (3840x2160) or higher!

A quickly 'hacked' together Plugin to mainly fix the not scaling bottom left bar in VAM.
It also makes VAM assume 4K is the default for UI scale 1.0 and allows UI scaling up to 8K.
There may or may not be other UI elements affected by the scaling - this is provided 'as is' - working and tested only in 3840x2160 desktop mode!

Comparison:
View attachment 101671

I got annoyed about having to run VAM in 1080p all the time due to the bad UI scaling - so I made this and maybe others find it useful.
Disclaimer: I have no clue how the internals of VAM actually work - it is complicated - this is just a quick and dirty workaround I made for myself and decided to share.

Read more about this resource...
 
Last edited:
Sally Whitemane updated SallyUIscale4K with a new update entry:

Version 2

  • added option to set the screen resolution
  • added checks to prevent unreachable UI with a resolution height lower than 2160 in case:
    • VAM was started with a low resolution > load Plugin in deactivated state​
    • User tries to activate Plugin with a low resolution > refuse​
    • User lowers resolution > deactivate​

Read the rest of this update entry...
 
If the UI clips into 3D objects enable 'Draw UI On Top' in VAM under [User Preferences] > [Misc]-tab.
By default this is enabled. Example image with it disabled:
Enable Draw UI On Top to avoid UI clipping.jpg
 
Sally Whitemane updated SallyUIscale4K with a new update entry:

Version 4

Convenience Update that adds keyboard shortcuts:

Control + Home -> Toggle active
Control + left/right -> change UI scale
Control + up/down -> change FoV (Field of View)
Control + page up -> set 3840x2160 resolution
Control + page down -> set 1920x1080 resolution

Users of older Versions - remember to update your session Plugin defaults to V4.

5K or higher resolution monitor?
The page up 3840x2160 resolution is hardcoded, but can be modified easily.
Use 7zip to extract the source code, edit...

Read the rest of this update entry...
 
Is there a way to make this work for ultra widescreen resolutions?
What is the native resolution of your ultra widescreen monitor?

I already expected this question to come from users with the now very popular ultrawide monitors.
Looking into it - but I'm not yet sure I can test it if it's above my 3840x2160 resolution.
 
What is the native resolution of your ultra widescreen monitor?

I already expected this question to come from users with the now very popular ultrawide monitors.
Looking into it - but I'm not yet sure I can test it if it's above my 3840x2160 resolution.
Mine is 3440 x 1440

Thanks in advance!
 
Sally Whitemane updated SallyUIscale4K with a new update entry:

Version 5

This update mainly adds support for new resolutions and is more experimental.
The popular 2560x1440 and 3440x1440 resolutions now work.
  • Minimum resolution height to activate is now 1440 (was 2160).
  • All resolutions below 1440p are not supported. Use the build-in VAM UI Scale slider for them!
  • 21:9 resolutions supported: 3440x1440, 3840x1600
  • 16:9 resolutions supported: 2560x1440, 3200x1800, 3840x2160
  • 16:10 resolutions...

Read the rest of this update entry...
 
Sally Whitemane updated SallyUIscale4K with a new update entry:

Version 6

  • replaced bottom left toolbar text with field of view and frames per second
  • increased the original VAM UI scale slider maximum from 2x to 4x to allow 8K UI with original VAM scaling, Plugin must be in enabled/loaded, but deactivated state for this, removing the Plugin will reset this to the default 2x
  • activated hidden "Toggle Monitor"-mode button on toolbar, the button will stay visible when removing the Plugin will
View attachment 130439...

Read the rest of this update entry...
 
Sally Whitemane updated SallyUIscale4K with a new update entry:

Version 7

TLDR: Now lets you save and auto reload your UI scale.

long version:
Once this button has been clicked once, every time the plugin activates (like a in a new VAM session) it should now reload your UI scale. The blue message log will show SallyUIscale4K successfully loaded user default to confirm. If you never use it, it behaves like the previous version and no plugin-data will be saved.

Don't forget to update session plugin defaults.
[ATTACH type="full"...

Read the rest of this update entry...
 
@sickskywalker
I cannot attach files via private message - so I'll post this new version here.
Tested only briefly. In case I messed up, I will delete the attached file and fix it later.

It can now save the UI offset and bar position.
Re-save your desired settings once in the new version.
If it finds only the UI scale saved from version 7, but not the new data, it will restore only that with a different message in the blue log.
 

Attachments

  • Sally.SallyUIscale4K.8.var
    6 KB · Views: 0
This is a must have plugin for anyone with a monitor that has a big resolution!

Wondering though if it's possible to "change" the default FoV of 40 into a custom value automatically when VaM launches.
I find myself using a FoV of 52 allot and would love this tiny process (pressing ctrl+arrowkeys) to be automated, since I almost always use the same value.
 
Wondering though if it's possible to "change" the default FoV of 40 into a custom value automatically when VaM launches.
That's very simple to do. Maybe I will add it as option to override it at some time.
I am bit careful with making another FOV the default because scenes expect it to be 40.
Some scenes or other plugin take control of the FOV too.

Meanwhile you can add it yourself:
1. Use a packing tool like WinRar or 7Zip and open <your VaM path>\AddonPackages\Sally.SallyUIscale4K.8.var > navigate to Custom\Scripts\Sally\SallyUIscale4k\ and extract UIscale4K.cs, keep the pack tool open
2. Open UIscale4K.cs in a text editor and paste this line in the Start() function:
C#:
void Start()
{
    try
    {
        SuperController.singleton.monitorCameraFOV = 52.0f; // paste this line
        stopWatch.Start();
3. Save and copy it back into the .var-file so the original file will be overwritten
When loading into the main menu it will still show 40. It does not update there. Opening any scene will show FOV 52 then.

I find myself using a FoV of 52 allot
As desktop only user I know what you mean. That's usually what I end up using too.
 
That's very simple to do. Maybe I will add it as option to override it at some time.
I am bit careful with making another FOV the default because scenes expect it to be 40.
Some scenes or other plugin take control of the FOV too.

Meanwhile you can add it yourself:
1. Use a packing tool like WinRar or 7Zip and open <your VaM path>\AddonPackages\Sally.SallyUIscale4K.8.var > navigate to Custom\Scripts\Sally\SallyUIscale4k\ and extract UIscale4K.cs, keep the pack tool open
2. Open UIscale4K.cs in a text editor and paste this line in the Start() function:
C#:
void Start()
{
    try
    {
        SuperController.singleton.monitorCameraFOV = 52.0f; // paste this line
        stopWatch.Start();
3. Save and copy it back into the .var-file so the original file will be overwritten
When loading into the main menu it will still show 40. It does not update there. Opening any scene will show FOV 52 then.


As desktop only user I know what you mean. That's usually what I end up using too.
Many many thanks!
 
Back
Top Bottom