CurryKitten / CurryKitten-Sim

FPV quad simulator
70 stars 7 forks source link

Revamp main sim UI #34

Closed CurryKitten closed 4 years ago

CurryKitten commented 4 years ago

The UI elements of the main sim screen use the outdated OnGui() function which is a very simple way of writing text directly to the screen without any of the new UI faffing.

The downside is that the text size is set and doesn't scale with the screen size of resolution. This wasn't a problem before I moved to a 5k screen, but then even running it in a window in 2k and above, the text becomes too small.

Screenshot 2020-03-02 at 10 41 13

I've used the modern UI components in all the menu screens (canvas, panels and TextMeshPro objects) which do scale and look nicer, so want to revamp the main sim screen to use these.

However, the font used is a little more "in-your-face" so I'm thinking it shouldn't be there all the time - so I want to be able to fade the relevant information in when someone presses one of the keys to alter something, and then leave it on screen for a certain time before fading it back out again.

CurryKitten commented 4 years ago

This is now implemented, complete with the fade ins/outs. I've also added another tag for the flight mode.

Screenshot 2020-03-02 at 23 57 05

I may also amend this to say it's in LOS/FPV mode as well as the flight mode, although if you can see an external view of your quad it does seem pretty obvious.