Jump to content

Change resolution Screen Scale GUI?


Yue
 Share

Recommended Posts

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. 

  • Like 1

Cyclone - Ultra Game System - Component PreprocessorTex2TGA - Darkness Awaits Template (Leadwerks)

If you like my work, consider supporting me on Patreon!

Link to comment
Share on other sites

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

Mars.jpg.89ab63a64eebc1f5ada0ab82b66a1f8c.jpg

 

 

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...