]> git.smokeofanarchy.ru Git - space-station-14.git/commit
Add EscapeContext keybind (#15301)
authorShadowCommander <10494922+ShadowCommander@users.noreply.github.com>
Fri, 14 Apr 2023 01:10:44 +0000 (18:10 -0700)
committerGitHub <noreply@github.com>
Fri, 14 Apr 2023 01:10:44 +0000 (18:10 -0700)
commit3b21421ef18c1e747b7ab4eba60d57846224c108
treed4e6b45b63894232a8f075f1a5146072028c9d91
parent47262a69988197d0cc7dc0666a3482a97e2620c9
Add EscapeContext keybind (#15301)

* Add EscapeContext

Escape context input closes windows if there are any open. If there are not any windows it opens the game menu.

* Add fluent for Escape Context

* Move EngineContext keybind to content

* Readd WindowCloseAll

* Fix EscapeContext not opening the game menu after using WindowCloseAll

WindowCloseAll does not clear the CloseRecentWindowUIController.recentlyInteractedWindows, which caused HasClosableWindow to return true because the list still had items.

Changed HasClosableWindow to check if windows in the list are still open and clear them if they aren't.

* Clean up EscapeContextUIController
Content.Client/Input/ContentContexts.cs
Content.Client/Options/UI/Tabs/KeyRebindTab.xaml.cs
Content.Client/UserInterface/Systems/CloseWindow/CloseRecentWindowUIController.cs
Content.Client/UserInterface/Systems/EscapeMenu/EscapeContextUIController.cs [new file with mode: 0644]
Content.Client/UserInterface/Systems/EscapeMenu/EscapeUIController.cs
Content.Shared/Input/ContentKeyFunctions.cs
Resources/Locale/en-US/escape-menu/ui/options-menu.ftl
Resources/keybinds.yml