o3de / o3de-multiplayersample

Multiplayer sample project for the Open 3D Engine
https://o3de.org
Other
83 stars 59 forks source link

Add fullscreen/windowed toggle. #379

Closed mbalfour-amzn closed 1 year ago

mbalfour-amzn commented 1 year ago

Adds a fullscreen/windowed toggle to the settings screen. Since ctrl-enter also toggles between fullscreen and windowed modes, the toggle will listen and change to reflect the current state.

This PR also introduces code changes to support a resolution toggle, but the toggle itself is hidden on the screen and the code to apply the resolution change is commented out. While it technically works, there are some UX issues with how it works (Display Setting scaling, changing it while in fullscreen mode, window size vs rendering size, and preventing resolution choices larger than the screen handles), so it's been disabled for now. I left the disabled code in though, because it's still a useful demonstration of how to do it. The resolution toggle will likely become enabled and functional in the development branch, since it will probably need some AzFramework Window Api changes to support it fully.

image