From 853e5e6b3d690b6c94e8c7384c493fc148c2a129 Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Thu, 22 Sep 2022 05:18:01 -0500 Subject: [PATCH] New util to hide all background GUI (for dialog) --- scripts/client/gui.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/scripts/client/gui.js b/scripts/client/gui.js index 959b1f01..2093a6d6 100644 --- a/scripts/client/gui.js +++ b/scripts/client/gui.js @@ -283,4 +283,16 @@ function resetGUIStrings() { newCharacter.firstNameInput.placeholder = getLocaleString("GUINewCharacterFirstNamePlaceholder"); newCharacter.lastNameInput.placeholder = getLocaleString("GUINewCharacterLastNamePlaceholder"); newCharacter.createCharacterButton.text = toUpperCase(getLocaleString("GUINewCharacterSubmitButton")); -} \ No newline at end of file +} + +// =========================================================================== + +function dimAllGUIElementsInWindow(guiObject) { + for (let i in guiObject) { + if (i != "window") { + guiObject[i].shown = false; + } + } +} + +// =========================================================================== \ No newline at end of file