From b24a206705205dbb5b1479b237b423bb71033478 Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Fri, 15 Jan 2021 03:42:17 -0600 Subject: [PATCH] Remove unused GUI funcs --- scripts/server/gui.js | 22 ++++------------------ 1 file changed, 4 insertions(+), 18 deletions(-) diff --git a/scripts/server/gui.js b/scripts/server/gui.js index fab862fb..2c2447a2 100644 --- a/scripts/server/gui.js +++ b/scripts/server/gui.js @@ -10,29 +10,13 @@ // --------------------------------------------------------------------------- -function showPlayerPromptGUI(client) { - -} - -// --------------------------------------------------------------------------- - -function showPlayerPhoneGUI(client) { - -} - -// --------------------------------------------------------------------------- - -function showPlayerItemInventoryGUI(client) { - -} - -// --------------------------------------------------------------------------- - function playerPromptAnswerNo(client) { if(!getEntityData(client, "ag.prompt")) { return false; } + logToConsole(LOG_DEBUG, `[Asshat.GUI] ${getPlayerDisplayForConsole(client)} answered NO to their prompt (${getEntityData(client, "ag.prompt")})`); + switch(getEntityData(client, "ag.prompt")) { case AG_PROMPT_CREATEFIRSTCHAR: showPlayerErrorGUI(client, "You don't have a character to play. Goodbye!", "No Characters") @@ -53,6 +37,8 @@ function playerPromptAnswerYes(client) { return false; } + logToConsole(LOG_DEBUG, `[Asshat.GUI] ${getPlayerDisplayForConsole(client)} answered YES to their prompt (${getEntityData(client, "ag.prompt")})`); + switch(getEntityData(client, "ag.prompt")) { case AG_PROMPT_CREATEFIRSTCHAR: showPlayerNewCharacterGUI(client);