From da02873636aa286e67118c08f8435a3b7b1a82bd Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Sat, 11 Dec 2021 20:12:07 -0600 Subject: [PATCH] Add help msg to disable GUI on login/reg/char sel --- scripts/client/gui/charselect.js | 2 ++ scripts/client/gui/login.js | 2 ++ scripts/client/gui/register.js | 2 ++ scripts/client/gui/resetpass.js | 2 ++ 4 files changed, 8 insertions(+) diff --git a/scripts/client/gui/charselect.js b/scripts/client/gui/charselect.js index dd436ba8..f7b7ea1d 100644 --- a/scripts/client/gui/charselect.js +++ b/scripts/client/gui/charselect.js @@ -172,6 +172,8 @@ function showNewCharacter() { mexui.setInput(true); setHUDEnabled(false); newCharacter.window.shown = true; + + showSmallGameMessage(`If you don't have a mouse cursor, press ${toUpperCase(getKeyNameFromId(disableGUIKey))} to disable GUI`, COLOUR_WHITE, 7500); } // =========================================================================== diff --git a/scripts/client/gui/login.js b/scripts/client/gui/login.js index 7f18c8fb..9b72ee14 100644 --- a/scripts/client/gui/login.js +++ b/scripts/client/gui/login.js @@ -134,6 +134,8 @@ function showLoginGUI() { setChatWindowEnabled(false); mexui.setInput(true); login.window.shown = true; + + showSmallGameMessage(`If you don't have a mouse cursor, press ${toUpperCase(getKeyNameFromId(disableGUIKey))} to disable GUI`, COLOUR_WHITE, 7500); } // =========================================================================== diff --git a/scripts/client/gui/register.js b/scripts/client/gui/register.js index 0bff9021..62900123 100644 --- a/scripts/client/gui/register.js +++ b/scripts/client/gui/register.js @@ -158,6 +158,8 @@ function showRegistrationGUI() { setChatWindowEnabled(false); mexui.setInput(true); register.window.shown = true; + + showSmallGameMessage(`If you don't have a mouse cursor, press ${toUpperCase(getKeyNameFromId(disableGUIKey))} to disable GUI`, COLOUR_WHITE, 7500); } // =========================================================================== diff --git a/scripts/client/gui/resetpass.js b/scripts/client/gui/resetpass.js index 00fd2df1..16767578 100644 --- a/scripts/client/gui/resetpass.js +++ b/scripts/client/gui/resetpass.js @@ -131,6 +131,8 @@ function showResetPasswordGUI() { setChatWindowEnabled(false); mexui.setInput(true); resetPassword.window.shown = true; + + showSmallGameMessage(`If you don't have a mouse cursor, press ${toUpperCase(getKeyNameFromId(disableGUIKey))} to disable GUI`, COLOUR_WHITE, 7500); } // ===========================================================================