-
Notifications
You must be signed in to change notification settings - Fork 20
Labels
Bug ReportBug Reports made through the "Report Issue" interface in GitHub.Bug Reports made through the "Report Issue" interface in GitHub.UI/HUDRelates to the HUD, NeoUI, menus, etcRelates to the HUD, NeoUI, menus, etc
Milestone
Description
Build Info
Description
The Neo UI elements are only bound once inside CNeoRoot::OnRelayedKeyCodeTyped, on the case where m_ns.keys.bcConsole is not bound:
neo/src/game/client/neo/ui/neo_root.cpp
Lines 457 to 466 in 0658b63
| void CNeoRoot::OnRelayedKeyCodeTyped(vgui::KeyCode code) | |
| { | |
| if (m_ns.keys.bcConsole <= KEY_NONE) | |
| { | |
| m_ns.keys.bcConsole = gameuifuncs->GetButtonCodeForBind("neo_toggleconsole"); | |
| m_ns.keys.bcMP3Player = gameuifuncs->GetButtonCodeForBind("neo_mp3"); | |
| m_ns.keys.bcTeamMenu = gameuifuncs->GetButtonCodeForBind("teammenu"); | |
| m_ns.keys.bcClassMenu = gameuifuncs->GetButtonCodeForBind("classmenu"); | |
| m_ns.keys.bcLoadoutMenu = gameuifuncs->GetButtonCodeForBind("loadoutmenu"); | |
| } |
This means that users cannot rebind or unbind UI elements in the main menu correctly.
To Reproduce
- Enter the main menu
- Open the console
- Bind the MP3 player to a new key:
bind <key> mp3_playersuch that they key is different from what it used to be- Alternatively,
unbindsuch a key from what it used to be
- Alternatively,
Expected behavior
- When
mp3_playerbind is changed, the new bind should work correctly. - When
mp3_playerbind is un-bound withunbind, the old bind should no longer activate.
Actual behavior
- When
mp3_playerbind is changed, the new different bind does not work. - When
mp3_playerbind is un-bound withunbind, the old bind incorrectly still keeps activating.
Operating System
- Windows
- Linux
Version/Distro
11
Machine's CPU
No response
Machine's GPU
No response
GPU's driver
No response
Build's compiler
No response
Additional context and Screenshots
No response
Metadata
Metadata
Assignees
Labels
Bug ReportBug Reports made through the "Report Issue" interface in GitHub.Bug Reports made through the "Report Issue" interface in GitHub.UI/HUDRelates to the HUD, NeoUI, menus, etcRelates to the HUD, NeoUI, menus, etc
Type
Projects
Status
No status