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

PyGame_GUI theme text size being adjusted #128

Open
Tracked by #122
Toma400 opened this issue Oct 4, 2024 · 0 comments
Open
Tracked by #122

PyGame_GUI theme text size being adjusted #128

Toma400 opened this issue Oct 4, 2024 · 0 comments
Labels
feature request Feature being officially approved to be added high priority Label for requests being highly prioritised
Milestone

Comments

@Toma400
Copy link
Owner

Toma400 commented Oct 4, 2024

As in title. There's huge issue of text of PyGame_GUI elements not respecting settings scale, which means that themes used through PyGame_GUI .json files have preset sizes that feel too small in big window sizes, but too big in small window sizes - yet they need to somehow be only one value.
This pushes developer (me! haha) to search for middle-ground, but it almost never feels right, and limits a lot. Not to say, now with three managers/theme files, it is a lot of chaos.

What I would suggest is taking advantage of PyGame_GUI flexibility - it can update game's contents on the fly. So, what I'd see as good solution is introducing custom theme.toml file that would handle all categories at once, and it would be modder way to generate PyGame_GUI's .json files.
So you write all of this info in .toml file, the file is read by the game and settings adjust values where needed, then .json files are generated by that data.
When you resize the game, the .json file values are recalculated and regenerated.

@Toma400 Toma400 added feature request Feature being officially approved to be added high priority Label for requests being highly prioritised labels Oct 4, 2024
@Toma400 Toma400 added this to the Pre-Alpha 7 milestone Oct 4, 2024
@Toma400 Toma400 mentioned this issue Oct 4, 2024
36 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Feature being officially approved to be added high priority Label for requests being highly prioritised
Projects
None yet
Development

No branches or pull requests

1 participant