Setting minimum and maximum window size #3631
Replies: 5 comments
-
This basically exists today via events. Set up an event that checks for screen width and if it is below a certain amount, set the width to the minimum. Same for height. |
Beta Was this translation helpful? Give feedback.
-
I tried it right now, but I wasn't able to get it working, it might be my mistake Also, I remember the but, I think it could be done via events, but I wasn't able to get it working |
Beta Was this translation helpful? Give feedback.
-
Just did a quick test, this works for me. |
Beta Was this translation helpful? Give feedback.
-
Tried it and it works. But a issue I found is that it doesn't stop the user from resizing to a value below the minimum value. I change the window size ones the user stops resizing |
Beta Was this translation helpful? Give feedback.
-
While I don't think that's a huge issue (it forces it resized if the user keeps trying to resize smaller) you could always disable resizing as part of the action, then re-enable it after a timer. |
Beta Was this translation helpful? Give feedback.
-
Description
It's really weird that there is no option to set minimum and maximum window size. Because of that, you can do things like this
And, according to the geame implementation, it could break the game, spoling everything.
And making the UI responisive and make the game work in all these sizes is also hard.
A bonus would be, there could be a
keep size ratio
, which will keep the size ratio of the window when scalingSolution suggested
Describe the solution
An option in the game properties and action to change them during the venet is executed would be great
Alternatives considered
Set the miniumum window size in the engine itself
Beta Was this translation helpful? Give feedback.
All reactions