Add settings menu to control audio and return to main menu
This commit is contained in:
parent
c88d3fc625
commit
0b7bc936ef
13 changed files with 697 additions and 22 deletions
|
|
@ -229,9 +229,10 @@ namespace TD.Gameplay
|
|||
|
||||
// Keyboard: arrow keys only. WASD is reserved for tower-build hotkeys (the command
|
||||
// grid) — camera panning is arrow keys plus the mouse edge-pan below. Suppressed
|
||||
// entirely while the player is typing so arrow keys in chat navigate text instead of
|
||||
// panning. (Edge-pan below stays active since it's mouse-driven.)
|
||||
var kb = HUDController.IsTextInputActive ? null : Keyboard.current;
|
||||
// entirely while the player is typing (so arrow keys in chat navigate text instead
|
||||
// of panning) or while the gear menu is open. Edge-pan below is mouse-driven and
|
||||
// gated separately by the pointer-over-HUD check, which the menu overlay satisfies.
|
||||
var kb = HUDController.IsUiCapturingInput ? null : Keyboard.current;
|
||||
if (kb != null)
|
||||
{
|
||||
if (kb.leftArrowKey.isPressed) dir.x -= 1f;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue