-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom GUI Style / GUI scaling #23
Comments
You have to compile your own build with a custom gui skin, or make a plugin that hooks config manager and change the gui skin from there. Something like this https://github.com/ManlyMarco/RuntimeUnityEditor/blob/master/RuntimeUnityEditor/UI/InterfaceMaker.cs#L43 |
Isn't there a easier way? |
At the moment the game's own skin is used, there's no built in way to change this. The only way would be to change the code to use a custom skin like in runtime editor. |
I'm interested in this too, every UI is very small on my QHD panel. |
You would have to recalculate sizes of at least fonts for all the different gui styles based on resolution. Create a copy of GUI.skin, make your changes, and then set your copy as the skin to use on every ongui call. |
I would also have to do it for all plugins additional UI calls? It does not seem manageable. Maybe going with dnSpy and changing some values ? |
Yes, this would have to be done in every plugin separately. Some plugins would work fine with just a copy of the code, but others would require major rewrites if they use GUI instead of GUILayout and autoscaling windows. A custom skin like this could be exposed from some API library to make it easier to add it to plugins, like what RuntimeUnityEditor does with its own custom skin. |
Yes please? |
The link is 404 now :( |
I found a good solution for this problem: 1- Find the exe file of your game, and RMB click it. |
I can add, that if i run Valheim with Vulkan from Steam - i get whitewashed GUI from Config Menu. If i run it from exe or without Vulkan - GUI looks normal colored. |
@JoewAlabel @Stroichik Can you check if the latest version of RuntimeUnityEditor also has this GUI issue? |
@ManlyMarco If i run with Vulkan - it looks same whitewashed And this is how it both looks without Vulkan Its not something very critical, but a fix would be appreciated |
The second screenshot is how it should always look like, I have no idea how Vulkan can affect this outside of it being an Unity bug. I guess it could be partially resolved by having a darker version of the skin but there's no way to fix it automatically. |
Well, as i said, its not really that critical. |
I have wrote the https://github.com/y0soro/Unity.IMGUI.HiDPI.Patcher to adrress the scaling issue. Also it's possible to apply method described in https://github.com/y0soro/Unity.IMGUI.HiDPI.Patcher#implement-hidpi-scaling-for-your-imgui-application so BepInEx.ConfigurationManager or any other IMGUI application can have native scaling support. |
How can i change font size, color and background color?
BCM appears in white on grey in small font size.
The text was updated successfully, but these errors were encountered: