Yue Posted September 18, 2021 Share Posted September 18, 2021 Some way to scale the GUI according to the window size. What happens is that when I get to the smallest screen resolution, the buttons look too big and when I am at the highest screen resolution, the buttons look too small. Quote Link to comment Share on other sites More sharing options...
Yue Posted September 19, 2021 Author Share Posted September 19, 2021 Quote Link to comment Share on other sites More sharing options...
reepblue Posted September 19, 2021 Share Posted September 19, 2021 I think you would need to rebuild your GUI. This is why I don't allow users to change the window size during runtime because everything revolves around how big the framebuffer is. 1 Quote Cyclone - Ultra Game System - Component Preprocessor - Tex2TGA - Darkness Awaits Template (Leadwerks) If you like my work, consider supporting me on Patreon! Link to comment Share on other sites More sharing options...
Yue Posted September 19, 2021 Author Share Posted September 19, 2021 34 minutes ago, reepblue said: I think you would need to rebuild your GUI. This is why I don't allow users to change the window size during runtime because everything revolves around how big the framebuffer is. When changing the resolution I delete the window and rebuild the GUI again. However it does not work properly. If I do not rebuild the GUI again the drawing coordinates are in relation to the previous screen resolution in its width and height of context, window and base. I think I can use GUI:SetSCale, but I have to watch how it goes Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.