Adds an Alt+F fullscreen toggle#347
Conversation
|
I haven't scanned the code here yet, but I would prefer this becomes Alt-Enter to match the existing (at least on Windows) Unity hotkey for toggling fullscreen. I've recently run into an instance in D3 where there are rather "helpful" program-reserved Alt combinations preventing me from changing weapons while sliding down or trichording using down, or the existing OL problem of being unable to check the scoreboard while doing the same otherwise getting alt-tabbed out. I'd like to avoid more easily-hittable accidental hotkeys if possible. |
|
I wanted to do Alt+Enter but unity standalone reserves that key combination. |
|
Couple of Ideas to resolve this:
|
|
I like the configurable hotkeys idea, that's probably the way to go. I feel like I'm missing something on the Unity side here. It reserves the key combo for fullscreen toggle, but it doesn't actually work on linux? |
|
The default unity toggle fullscreen on alt+enter doesnt seem to do anything on d.cents and my system. Adding new Hotkeys is now abstracted away to require just one line to register a function and define the key combination that should trigger it similar to uConsole usage. Will be useful for quick testing or hidden modes for for example menu rearrangement, reading out coordinates, moving buttons etc. Configuration of the triggering key combination happens either through uConsole commands or through editing the .extendedconfig of the selected pilot.
Hotkeys get updated through GameManager.Update -> can be triggered both during and outside of matches (- not while chatting or having the console open) |
Adds a Hotkey class to define new key combinations in.
The background of the Alt+F fullscreen toggle is that on some linux systems overload doesnt get the screen dimensions leading to it starting with an incorrect size and window type every time even when attempting to overrule it with unitys screenwidth and screenheight arguments