foundryvtt-gmScreen
foundryvtt-gmScreen copied to clipboard
Keybinding to show/hide GM Screen
For GMs used to keyboard bindings, to quickly show, check something and close GM Screen For example, Q. But should be configurable, so left-handed people ca use P or O.
One of my original ideas was: "Bind GM screen to spacebar, rebind pause" have two modes: Toggle and Hold.
You could press space to pull the screen up, look at something, click some stuff, and then unpress and the whole thing would just effortlessly glide up and down.
Definely am going to make it configurable whatever ends up happening.
The hold mode is an awesome idea! I am really looking forward to see it :)
This would be pretty easy to do if you use Library: DF Hotkeys
Something like this would work:
// Show only while key is held down
hotkeys.registerShortcut({
name: 'foundryvtt-gmScreen.toggle-screen',
label: 'Show GM Screen',
default: { key: hotkeys.keys.KeyQ, alt: false, ctrl: false, shift: false },
onKeyDown: self => { /* Show GM Screen*/ },
onKeyUp: self => { /* Hide GM Screen */ },
});
// Toggle open/closed whenever the key pressed
hotkeys.registerShortcut({
name: 'foundryvtt-gmScreen.toggle-screen',
label: 'Show/Hide GM Screen',
default: { key: hotkeys.keys.KeyQ, alt: false, ctrl: false, shift: false },
onKeyDown: self => { /* Toggle display of GM Screen*/ },
});
With core keybindings in v9, we should be able to knock this out easily
this would be just incredible