Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - tankhardrive

#1
Help requests / Re: Render frame resize issue
26 January 2014, 01:24:04
ah makes sense and easy enough. thanks for the input!
#2
Help requests / Re: Render frame resize issue
23 January 2014, 05:04:40
Played around more and looks like if i update the position of each ui component and don't set draw(true) it works correctly. Is there still an easier solution? As my game could have a lot of UI components to do this on (not terrible but would definitely prefer a more hands off solution).
#3
Help requests / Render frame resize issue
23 January 2014, 05:00:35
So I looked through the tutorials, forum, etc and didn't seem to find anything that answered this. I'm currently rendering my sfml window at 1280 x 720. When you press the fullscreen button I max out the resolution and update the render windows view, which works on everything except my tgui components.

They seem to scale and not resize, button events also no longer work for where they are currently located (mouse over works for their old locations. I was sending true into draw() so the view reset. If i do not pass that it seems to still render in the same location and work correctly. The biggest thing is then if I want the UI to re-position based on the resolution do i need to make another view just for the UI? or what is the correct way / best way to handle this?