Added UiMode enum to support P | Cast's twin UI.

Sorry about line endings - I set Git to respect line endings of repository, but it doesn't look like it worked correctly. Will investigate :-)