Yue Posted September 18, 2021 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 Murphy's Law: We don't fix bugs, we document them as features. – Murphy Games
Yue Posted September 19, 2021 Author Posted September 19, 2021 Quote Murphy's Law: We don't fix bugs, we document them as features. – Murphy Games
reepblue Posted September 19, 2021 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!
Yue Posted September 19, 2021 Author 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 Murphy's Law: We don't fix bugs, we document them as features. – Murphy Games
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.