-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TGUI Keybind Menu #21681
base: master
Are you sure you want to change the base?
TGUI Keybind Menu #21681
Conversation
How does The binding mechanism work? Is it a straight character input or does it capture keyboard input? The latter would be a lot nicer, other servers have implementations we can use |
Straight character input is how both the old ui and this version works, but I agree capturing keyboard input is absolutely the way to go, adding it as a todo |
Nice |
This PR has been inactive for two weeks, and has been automatically marked as stale. This means it is at risk of being auto closed in another week. Please address any outstanding review items and ensure your PR is finished. If you are auto-staled anyway, ask developers if your PR will be merged. Once you have done any of the previous actions then you should request a developer remove the stale label on your PR, to reset the stale timer. If you feel no developer will respond in that time, you may wish to close this PR youself, while you seek developer comment, as you will then be able to reopen the PR yourself. |
X |
This looks good, will need testmerging but we have another TGUI PR testmerged right now so will have to wait. |
About the PR
Ports the Keybind Menu from CHUI to TGUI
White theme:
Draft points:
current_keymap = owner.keymap
and aunparse = changed_keys["[current_keymap.keys[key]]"] || current_keymap.unparse_keybind(key),
Why's this needed?
Besides the technology upgrade, current CHUI menu is kinda broken, opening it while spectating permanently bricks trying to use it while alive (#19151.) Bug is fixed with this version
Note: it seems like the keybinds menu was somewhat fragile too regarding binding already bound keys. New UI is somewhat as fragile regarding that, a cleanup of the keybinding code would probably be required, and I'd like to think is out of scope of this PR, either that or I'd need help :V
Old UI:
[UI][QoL][Feature]