MovingBlocks / DestinationSol

Official continuation of Destination Sol, the great fun little arcade space shooter from http://sourceforge.net/projects/destinationsol/ Modules live at https://github.com/DestinationSol/
Apache License 2.0
325 stars 122 forks source link

Adapted Main Menu screens to use NUI #631

Closed BenjaminAmos closed 2 years ago

BenjaminAmos commented 2 years ago

Description

This pull request replaces the pre-existing menu screens with NUI equivalents. All of the screens comprising the main menu, except for InputMapScreen have been ported. Whilst doing this, I found that some changes to NUIManager were needed to correctly maintain screen state. I also took the opportunity to improve UI asset loading slightly, as I found that it was duplicating quite a bit of that code previously. The UIFont class has been removed, which is a good thing since it was only ever intended to be a temporary fix for font scaling. Font scaling was implemented in a better way with the NUI Main Game Screen changes, so I have moved the rest of the code to use the scaled font producer instead.

I have not managed to replace InputMapScreen yet, as it is a more complex layout and my grasp of NUI UI layouts is still fairly immature. I am working on it though. InputMapScreen has now been implemented.

API Changes

Testing

Notes