Jump to content

Recommended Posts

Posted

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.
 

 

 

 

Astrocuco.thumb.png.c76e0fb3de2d6e437e7dca099625e11e.png

Posted
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

 

 

Astrocuco.thumb.png.c76e0fb3de2d6e437e7dca099625e11e.png

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.

×
×
  • Create New...