-
Notifications
You must be signed in to change notification settings - Fork 85
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
Read elevation keybind from vanilla settings #1454
Read elevation keybind from vanilla settings #1454
Conversation
…e keybinds page and OSD where used, Added dynamic tag replacement function
I've done some brief testing in-game and it seems to work as advertised. Will do some more testing tomorrow. |
can't we just use the CS's keybind for this? |
It does exactly that... Previously it was hardcoded to PageUp/PageDown |
No I mean instead of adding an entry to TMPE options we can just use |
Have you read the code? It's just read-only thing, not saved anywhere. |
The keybinds tab in TMPE options doubles-up as a quick reference guide for users, hence listing the elevation keybinds. |
/// <param name="e"></param> | ||
/// <returns>true once when user releases the key.</returns> | ||
public bool KeyUp() { | ||
return Key.IsKeyUp(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I should have done the same thing for the KeyDown()
method above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, KeyDown()
method above is weird, I tried to use it and after rebinding PageUp
to something else like [
or comma
(theoretically not used anywhere) it stopped working, I couldn't figure out why KeyDown()
always return false
- I even attached debugger 😂
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Just a single comment about replacement pattern (I hope github does not hide comments as usual!)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Oops - just noticed an issue with this PR: Only one of those shortcuts will go to underground view, but both are listed as switching to undergound? Maybe it should be context sensitive (using Edit: Alternatively the hint text could be |
It's a translation on the Crowdin, needs the update 😉 |
I'll add to the locale updates list :) |
Closes #1326
Keybinds
tab[[xyz]]
tag with replacement values (each match gets own replacement value) - skip {x} matches could be added in the future if necessary for complex translations text,Changes in action:
2022-03-04.01-18-03.mp4