Added UiMode enum and support. Renamed "Mode" to PlayMode for disambiguation with new UiMode.