From a526497f48862a38ff8adafa8e72f2a1ecd761cb Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Sun, 9 Jan 2022 05:22:49 -0600 Subject: [PATCH] Start working on list GUI --- scripts/client/gui/list.js | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/scripts/client/gui/list.js b/scripts/client/gui/list.js index e45fd39c..6aaec8a9 100644 --- a/scripts/client/gui/list.js +++ b/scripts/client/gui/list.js @@ -73,4 +73,35 @@ function initListGUI() { logToConsole(LOG_DEBUG, `[VRR.GUI] Created list dialog GUI`); } +// =========================================================================== + +function showListGUI() { + closeAllWindows(); + logToConsole(LOG_DEBUG, `[VRR.GUI] Showing login window`); + setChatWindowEnabled(false); + mexui.setInput(true); + listDialog.window.shown = true; + guiSubmitKey = checkListDialogSelection; + guiUpKey = selectPreviousListItem; + guiDownKey = selectNextListItem; +} + +// =========================================================================== + +function checkListDialogSelection() { + +} + +// =========================================================================== + +function selectPreviousListItem() { + +} + +// =========================================================================== + +function selectNextListItem() { + +} + // =========================================================================== \ No newline at end of file