Removes old remaining refs to PauseMenu

Updates and moves the escape keybind to be an actionMap that is activated/deactivated in the UI module when a client connection is processed to keep it within the module's functionality
This commit is contained in:
Areloch 2024-06-28 20:47:42 -05:00
parent 83cbf6c66e
commit c9a1955b47
4 changed files with 11 additions and 24 deletions

View file

@ -81,11 +81,20 @@ function UI::initClient(%this)
if(isToolBuild())
%this.queueExec("./tools/creator.tscript");
//GameMenu actionmap
%this.queueExec("./scripts/defaultKeybinds.tscript");
}
function UI::onCreateClientConnection(%this){}
function UI::onCreateClientConnection(%this)
{
GameMenuActionMap.push();
}
function UI::onDestroyClientConnection(%this){}
function UI::onDestroyClientConnection(%this)
{
GameMenuActionMap.pop();
}
function UI::registerGameMenus(%this, %menusArrayObj)
{