Jump to content

Moderator title: How to make a button


ZoRG172

Recommended Posts

Tell me the mod, or how to do it yourself. I play in 4k, the standard scaling of 200% is not enough. Through the config I increased it to 280%, but there is a bug: the panel with money, reputation and science completely disappears. I need to make the button on the control panel showing reputation, money, science points displayed on all screens (by default it is only on the launch pad and in space). Can you tell me how to make a simple mod with such a button for the Toolbar Continued or ToolbarController.

Link to comment
Share on other sites

13 hours ago, ZoRG172 said:

Tell me the mod, or how to do it yourself. I play in 4k, the standard scaling of 200% is not enough. Through the config I increased it to 280%, but there is a bug: the panel with money, reputation and science completely disappears. I need to make the button on the control panel showing reputation, money, science points displayed on all screens (by default it is only on the launch pad and in space). Can you tell me how to make a simple mod with such a button for the Toolbar Continued or ToolbarController.

What are you talking about?

Link to comment
Share on other sites

How to make such a button?

Spoiler

Kerbal-Space-Program-01-03-2023-18-26-19

This panel is not displayed due to high scaling values.

Spoiler

Kerbal-Space-Program-01-03-2023-18-30-23

Maybe there is some mod that displays money, reputation, science? I just found out about this game, I really liked it, installed mods on the graphics. But the panel with science, money is not displayed.

Edited by ZoRG172
Picture url
Link to comment
Share on other sites

7 minutes ago, ZoRG172 said:

How to make such a button?

  Hide contents

Kerbal-Space-Program-01-03-2023-18-26-19

This panel is not displayed due to high scaling values.

  Hide contents

Kerbal-Space-Program-01-03-2023-18-30-23

Maybe there is some mod that displays money, reputation, science? I just found out about this game, I really liked it, installed mods on the graphics. But the panel with science, money is not displayed.

 

 

Ummm, ok.  First, this has nothing to do with this mod.

Second, you are looking at different scenes, and different scenes have different things on them.

This one is the Space Center, and what you are seeing is normal, nothing to do with scaling.  Not sure what you are expecting to see where you circled in red:

Spoiler

Kerbal-Space-Program-01-03-2023-18-30-23

 

This is the Flight scene, and again, what  you are seeing is normal and correct, again, nothing to do with scaling.  I'm guessing that what you are asking is how to add the button and panel you circled:

Spoiler

Kerbal-Space-Program-01-03-2023-18-26-19

 

If that button is from an existing mod, please identify it.  A log file would also be helpful for me to help answer your questions.

Link to comment
Share on other sites

1 hour ago, linuxgurugamer said:

This one is the Space Center, and what you are seeing is normal, nothing to do with scaling.  Not sure what you are expecting to see where you circled in red:

The KSC scene usually displays credits, reputation and science points in that location:

lu6ZFFv.jpg

I only have a single 2k display, so I never had to use the zoom settings.,

Link to comment
Share on other sites

4 minutes ago, HansAcker said:

Сцена KSC обычно отображает кредиты, репутацию и очки науки в этом месте:

lu6ZFFv.jpg

У меня только один дисплей 2k, поэтому мне никогда не приходилось использовать настройки масштабирования.,

Exactly. It disappears at zoom values greater than 220%. Can you tell me if there is any mod that, among other things, displays how much money, reputation, science points. 

Or maybe somewhere in the resources of the game there is a config file that says on which screens this button will be displayed.
e1j9czJ.png

Link to comment
Share on other sites

Oh, sorry, I was looking at a sandbox game, so it wasn't showing up for me.  It was bothering me, because I knew I had seen it before :-)

So I was looking at the game, which zoom settings are you referring to?  UI Scale only goes to 200%, Apps scale goes to 150%

 

When I set both to the max (I have a 4k screen), it still showed up when I clicked the button.

so how are you setting the zoom values so high?

Edited by linuxgurugamer
Link to comment
Share on other sites

1 hour ago, linuxgurugamer said:

Oh, sorry, I was looking at a sandbox game, so it wasn't showing up for me.  It was bothering me, because I knew I had seen it before :-)

So I was looking at the game, which zoom settings are you referring to?  UI Scale only goes to 200%, Apps scale goes to 150%

 

When I set both to the max (I have a 4k screen), it still showed up when I clicked the button.

so how are you setting the zoom values so high?

I don’t have the best eyesight and 200% zoom is not enough for me, my eyes get tired quickly. So I increased the scaling even more with UI_SCALE = 2.8 in settings.cfg. The game correctly scales the UI and even correctly displays 280% scaling in the settings, but the panel disappears. Empirically, I found out that with UI_SCALE=2.3 the panel is there, but it displays the data incorrectly, and with UI_SCALE=2.4 it disappears completely.

Link to comment
Share on other sites

21 minutes ago, ZoRG172 said:

I don’t have the best eyesight and 200% zoom is not enough for me, my eyes get tired quickly. So I increased the scaling even more with UI_SCALE = 2.8 in settings.cfg. The game correctly scales the UI and even correctly displays 280% scaling in the settings, but the panel disappears. Empirically, I found out that with UI_SCALE=2.3 the panel is there, but it displays the data incorrectly, and with UI_SCALE=2.4 it disappears completely.

Ok, so you are breaking the game by editing config files :D

I do understand, so what you are looking for is a mod to replace the info you are breaking by your non-standard changes

Might I suggest that instead of doing that, that you use a lower resolution on the screen to avoid breaking it?  

I'd suggest looking at the mod AnyRes, which will let you play with different resolutions to get something that you can work with

What I've found with my own monitor, is that using the monitor's full resolution _can_ make things too small, to the point that it's unusable.  Rather than then scaling the UI, I have found that just reducing the overall resolution can oftentimes do what I want

Link to comment
Share on other sites

2 hours ago, ZoRG172 said:

Exactly. It disappears at zoom values greater than 220%. Can you tell me if there is any mod that, among other things, displays how much money, reputation, science points.

There is a mod that has a little window that can be popped up in the KSC scene with the amounts of Funds, Science, and Reputation.  I think it might be VOID, but I'm not sure.  Don't have the time to dig for it at the moment, but I'll track it down in the next day or so.

 

Edited by Jacke
Link to comment
Share on other sites

1 hour ago, Jacke said:

There is a mod that has a little window that can be popped up in the KSC scene with the amounts of Funds, Science, and Reputation.  I think it might be VOID, but I'm not sure.  Don't have the time to dig for it at the moment, but I'll track it down in the next day or so.

VOID is exactly what I was looking for, thanks.
 

Spoiler

CMTVbvs.jpg


Unfortunately, the mod's windows don't scale and the text is tiny, but it's still better than going to the launcher every time.
If you suddenly know how to go to the mod resources and increase the font, let me know.

1 hour ago, linuxgurugamer said:

Ok, so you are breaking the game by editing config files :D

I do understand, so what you are looking for is a mod to replace the info you are breaking by your non-standard changes

Might I suggest that instead of doing that, that you use a lower resolution on the screen to avoid breaking it?  

I'd suggest looking at the mod AnyRes, which will let you play with different resolutions to get something that you can work with

What I've found with my own monitor, is that using the monitor's full resolution _can_ make things too small, to the point that it's unusable.  Rather than then scaling the UI, I have found that just reducing the overall resolution can oftentimes do what I want

If there is any way to increase the window of the Void mod? Or at least make the font size bigger?

Edited by ZoRG172
Adding text
Link to comment
Share on other sites

16 minutes ago, ZoRG172 said:

Unfortunately, the mod's windows don't scale and the text is tiny, but it's still better than going to the launcher every time.
If you suddenly know how to go to the mod resources and increase the font, let me know.

Not really that easy, the mod is really old, and wasn't written with scaling in mind.

That being said, which VOID window are you in need of, I might be able to whip up a small mod for you

Link to comment
Share on other sites

35 minutes ago, ZoRG172 said:

VOID is exactly what I was looking for, thanks.

Unless I missing something, VOID doesn't show Funds, Science, and Reputation

Kerbal Engineer is something else you may want to look at

 

Edit:  Oops, I did find it, was hiding amongst all the other windows

I'll see if I can cobble up a small mod with that info only, in a way to scale the font

Edited by linuxgurugamer
Link to comment
Share on other sites

16 hours ago, ZoRG172 said:

I would be very grateful to you!

Try this:

https://github.com/linuxgurugamer/FRS/releases/tag/0.0.1.1

Not yet in CKAN, it has dependencies:

  • Toolbar Controller
  • Click Through Blocker
  • Space Tux Industries

 

I'll get it into CKAN and Spacedock later

 

Edited by linuxgurugamer
Link to comment
Share on other sites

4 hours ago, linuxgurugamer said:

Try this:

Thank you! but something is not working. All dependent addons are installed, the mod is showing up in the toolbar settings, but there is no button or window. Tried to check and uncheck visibility of button, does not help. Here is a screenshot.

Spoiler

iCROSSU.png

 

Link to comment
Share on other sites

26 minutes ago, ZoRG172 said:

Thank you! but something is not working. All dependent addons are installed, the mod is showing up in the toolbar settings, but there is no button or window. Tried to check and uncheck visibility of button, does not help. Here is a screenshot.

  Reveal hidden contents

iCROSSU.png

 

the first version had a problem try installing it using CKAN (just tested that version), the first version had a problem

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

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.

×
×
  • Create New...