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);