-
Notifications
You must be signed in to change notification settings - Fork 162
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
Feature request: some way to scale GUIs #1656
Comments
In AGS 4 branch the cursor interaction (hit tests) are already taking transformations into account, because of rotation support. So adding visual scaling to GUIs alone is trivial, and is mostly a matter of API. I'm not completely sure if that's the kind of effect you're refering to though; so this got to be clarified. OTOH may be related, esp. in regards to the text resolution, there's one draft idea: #980 |
Yes, the scaling I am referring is the same there, a transformation. For pixel art aesthetic that is fine and works great! I just have concerns that someone will ask a feature similar to "Render character in screen resolution", but for texts, once the GUI can be scaled and not "be in screen resolution" - again, thinking of this parallel with scaled characters. Maybe I am overthinking. #980 looks like more concerned on how to accomplish, and here I am more worried at the what (API and design). |
A PR for this issue is in #2426. |
#2426 is now merged, and its effect corresponds to the following paragraph from this ticket:
if that covers current ticket, then it should be closed as resolved. If not, then some clarification should be added. |
It does! Thanks! |
Describe the problem
Rooms now have the concept of Camera and Viewport which allows it to adapt in different ways to a different Screen Size - as in the AGS in-game resolution. It would be useful if GUIs had some way to adapt too.
One feature that would help, would be some way to modify the GUI size in a way it scales, along with all controls in it - if the GUI width and height were it's camera width and height, you can think of the scaling as the target viewport.
For my right away use, it would be to scale GUIs when I am scaling the screen so they can match, and I can have the rooms in a higher resolution - which allows me to implement a smoother game camera.
Suggested change
Either a game wide GUI scaling parameter or some per GUI scaling setting. Alternatively some projection width/height.
Considerations
additional context
The text was updated successfully, but these errors were encountered: