NeotokyoRebuild / neo

NEOTOKYO Rebuild - Source SDK 2013 mod of NEOTOKYO
https://neotokyorebuild.github.io/
Other
23 stars 12 forks source link

Backing out of an options menu and closing the main menu can't be done by clicking escape if the console is open #581

Closed blaberry closed 1 month ago

blaberry commented 1 month ago

Build Info

20240914_b2291c5

Description

While on the main menu, with the console open, you can't use the esc key to go back into the game.

To Reproduce

  1. Open console
  2. Press esc a couple of times
  3. Still be in the main menu

Expected behavior

Any open menus such as the option menu closes, the console stays open, and when there are no more menus to close, you go back into the game

Actual behavior

Nothing happens when pressing esc, given that the console window is open. If the console window is closed, everything is WAI.

Operating System

Version/Distro

Win 10

Machine's CPU

Ryzen 9 7950X

Machine's GPU

RTX 3080 FE

GPU's driver

Nvidia 556.12

Build's compiler

MSVC 19.41.34120.0

Additional context and Screenshots

No response

AdamTadeusz commented 1 month ago

Machine's CPU

Ryzen 9 7950X Machine's GPU

RTX 3080 FE

damn ok

nullsystem commented 1 month ago

The thing about ESC, console, and in-game main menu combind works like crap/had workarounds due to how vgui panel behaves. Might end up implementing a custom console and just ignoring dealing with old console instead.

nullsystem commented 1 month ago

Actually, just allowing ESC to close the console will work out making the ESC behavior better.