Add keypress for some GUI buttons + fix prompt text

This commit is contained in:
Vortrex
2022-04-16 21:42:44 -05:00
parent 13c6971ace
commit 11d5833c61
5 changed files with 39 additions and 20 deletions

View File

@@ -63,12 +63,14 @@ function initErrorDialogGUI() {
// ===========================================================================
function showErrorGUI(errorMessage, errorTitle) {
function showErrorGUI(errorMessage, errorTitle, buttonText) {
closeAllWindows();
logToConsole(LOG_DEBUG, `[VRR.GUI] Showing error window. Error: ${errorTitle} - ${errorMessage}`);
setChatWindowEnabled(false);
mexui.setInput(true);
errorDialog.messageLabel.text = errorMessage;
errorDialog.okayButton.text = buttonText;
errprDialog.window.title = errorTitle;
errorDialog.window.shown = true;
}