Skip to content
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

Interface: Fractional Scale #6797

Closed
ghost opened this issue May 26, 2018 · 8 comments
Closed

Interface: Fractional Scale #6797

ghost opened this issue May 26, 2018 · 8 comments

Comments

@ghost
Copy link

@ghost ghost commented May 26, 2018

I always double the size of the interface, but it would be nice to have more options available.

Ideas:

  • more percentage options: 125%, 150%, 175%, etc.
  • a horizontal bar to increase/decrease the size instead of a list, I've seen on other games and it's a intuitive way of changing
@PeterN

This comment has been minimized.

Copy link
Member

@PeterN PeterN commented May 26, 2018

Would be nice. Currently GUI scaling works based on zoom levels which is why only powers of two are possible.

@nielsmh

This comment has been minimized.

Copy link
Contributor

@nielsmh nielsmh commented May 29, 2018

Another upvote from me, on my 22 inch 1920x1080 display the default UI scale is a bit too small, but the double scale takes up too much space.

I think one way to achieve this as-is would be to "simply" draw new UI graphics in e.g. 125% or 150% scale, and perhaps use a True Type font in somewhat larger size. None of the sprite art will scale nicely in non-integer amounts anyway.

@andythenorth

This comment has been minimized.

Copy link
Contributor

@andythenorth andythenorth commented May 29, 2018

125% would suit me right down to the ground, but I don't know if the pixel icons will upscale nicely for arbitrary multipliers.

@nielsmh

This comment has been minimized.

Copy link
Contributor

@nielsmh nielsmh commented May 29, 2018

An experiment worth trying might be to just add some interior padding on icon-buttons to make them larger targets on screen, without actually scaling the icon at all? I think that might just work for 125%, together with a larger font.

@nielsmh

This comment has been minimized.

Copy link
Contributor

@nielsmh nielsmh commented May 29, 2018

Here's a quick and dirty test of how the main toolbar looks with a bit of padding added to all the buttons. I would certainly play with this.

image

@ghost

This comment has been minimized.

Copy link
Author

@ghost ghost commented May 30, 2018

That's a good idea, some padding would be nice indeed, it looks more organized, I like it!

@J0anJosep

This comment has been minimized.

Copy link
Contributor

@J0anJosep J0anJosep commented May 30, 2018

@nielsmh I wrote the code for adding such padding, even providing the user a GUI for selecting the size for the buttons, the size for the height of elements on the lists and choosing the fonts and their sizes.
I also added an autosizing option, where the program automatically sets the scaling for GUI sprites and the sizes of the rest of the elements of the GUI.
The result is good enough: I can switch between screen resolutions at ease without worrying about font sizes and sprites. The only thing I miss is that 100%-200%-400% GUI sprites aren't enough for a smooth transition between all resolutions (from 640x400 to 4k resolution).

@stale

This comment has been minimized.

Copy link

@stale stale bot commented Jan 24, 2019

This issue has been automatically marked as stale because it has not had any activity in the last two months.
If you believe the issue is still relevant, please test on the latest nightly and report back.
It will be closed if no further activity occurs within 7 days.
Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants
You can’t perform that action at this time.