Posted January 13, 2021 by BigHandInSky
Hey folks - development of Maintenance Day "Full" is going along fine, got plenty of secrets to tease over the coming months I reckon.
Whilst I crack on, I wanted to share some useful scripts I'd made as I've been doing the main menu for the game. This has been my first real effort into making a menu that supports gamepad AND mouse, so it's been a learning experience for sure:
This all revolves around these 3 scripts and then a load of snazzy reactor scripts, here's one of my button reactors as an example.
Those scripts should be straightforward enough to parse how they work, here's how I've got my UI setup:
You'll probably need to cleanup the Input system being used (either the old one, or Rewired, or whatever), but otherwise those 3 have been instrumental - and surprisingly simple once you get down to it.
Hope this helps anyone else!