This commit is contained in:
Vortrex
2021-06-05 17:31:17 -05:00
parent 75c264eace
commit 7b44801a20
61 changed files with 1075 additions and 1078 deletions

View File

@@ -144,16 +144,16 @@ let creatingCharacter = false;
// ===========================================================================
function initGUIScript() {
logToConsole(LOG_DEBUG, "[Asshat.GUI]: Initializing GUI script ...");
logToConsole(LOG_DEBUG, "[Asshat.GUI]: GUI script initialized!");
logToConsole(LOG_DEBUG, "[VRR.GUI]: Initializing GUI script ...");
logToConsole(LOG_DEBUG, "[VRR.GUI]: GUI script initialized!");
}
// ===========================================================================
function initGUI() {
logToConsole(LOG_DEBUG, `[Asshat.GUI] Initializing GUI ...`);
logToConsole(LOG_DEBUG, `[VRR.GUI] Initializing GUI ...`);
logToConsole(LOG_DEBUG, `[Asshat.GUI] Creating login GUI ...`);
logToConsole(LOG_DEBUG, `[VRR.GUI] Creating login GUI ...`);
login.window = mexui.window(game.width/2-150, game.height/2-129, 300, 258, 'LOGIN', {
main: {
backgroundColour: toColour(0, 0, 0, windowAlpha),
@@ -228,11 +228,11 @@ function initGUI() {
},
}, checkLogin);
logToConsole(LOG_DEBUG, `[Asshat.GUI] Created login GUI`);
logToConsole(LOG_DEBUG, `[VRR.GUI] Created login GUI`);
// ===========================================================================
logToConsole(LOG_DEBUG, `[Asshat.GUI] Creating two factor auth GUI ...`);
logToConsole(LOG_DEBUG, `[VRR.GUI] Creating two factor auth GUI ...`);
twoFactorAuth.window = mexui.window(game.width/2-150, game.height/2-129, 300, 258, 'LOGIN', {
main: {
backgroundColour: toColour(0, 0, 0, windowAlpha),
@@ -306,11 +306,11 @@ function initGUI() {
},
}, checkTwoFactorAuth);
logToConsole(LOG_DEBUG, `[Asshat.GUI] Created two factor auth GUI`);
logToConsole(LOG_DEBUG, `[VRR.GUI] Created two factor auth GUI`);
// ===========================================================================
logToConsole(LOG_DEBUG, `[Asshat.GUI] Creating new character GUI ...`);
logToConsole(LOG_DEBUG, `[VRR.GUI] Creating new character GUI ...`);
newCharacter.window = mexui.window(game.width/2-130, game.height/2-100, 300, 200, 'Character Name', {
main: {
backgroundColour: toColour(0, 0, 0, windowAlpha),
@@ -398,11 +398,11 @@ function initGUI() {
borderColour: toColour(primaryColour[0], primaryColour[1], primaryColour[2], buttonAlpha),
},
}, checkNewCharacter);
logToConsole(LOG_DEBUG, `[Asshat.GUI] Created new character GUI`);
logToConsole(LOG_DEBUG, `[VRR.GUI] Created new character GUI`);
// ===========================================================================
logToConsole(LOG_DEBUG, `[Asshat.GUI] Creating register GUI ...`);
logToConsole(LOG_DEBUG, `[VRR.GUI] Creating register GUI ...`);
register.window = mexui.window(game.width/2-130, game.height/2-125, 300, 250, 'Register', {
main: {
backgroundColour: toColour(0, 0, 0, windowAlpha),
@@ -511,11 +511,11 @@ function initGUI() {
borderColour: toColour(primaryColour[0], primaryColour[1], primaryColour[2], buttonAlpha),
},
}, checkRegistration);
logToConsole(LOG_DEBUG, `[Asshat.GUI] Created register GUI`);
logToConsole(LOG_DEBUG, `[VRR.GUI] Created register GUI`);
// ===========================================================================
logToConsole(LOG_DEBUG, `[Asshat.GUI] Creating error GUI ...`);
logToConsole(LOG_DEBUG, `[VRR.GUI] Creating error GUI ...`);
errorDialog.window = mexui.window(game.width/2-200, game.height/2-70, 500, 140, 'ERROR', {
main: {
backgroundColour: toColour(0, 0, 0, windowAlpha),
@@ -557,11 +557,11 @@ function initGUI() {
borderColour: toColour(primaryColour[0], primaryColour[1], primaryColour[2], 255),
},
}, closeErrorDialog);
logToConsole(LOG_DEBUG, `[Asshat.GUI] Created error GUI ...`);
logToConsole(LOG_DEBUG, `[VRR.GUI] Created error GUI ...`);
// ===========================================================================
logToConsole(LOG_DEBUG, `[Asshat.GUI] Created prompt GUI ...`);
logToConsole(LOG_DEBUG, `[VRR.GUI] Created prompt GUI ...`);
yesNoDialog.window = mexui.window(game.width/2-200, game.height/2-70, 400, 140, 'Question', {
main: {
backgroundColour: toColour(0, 0, 0, windowAlpha),
@@ -616,11 +616,11 @@ function initGUI() {
borderColour: toColour(primaryColour[0], primaryColour[1], primaryColour[2], 255),
},
}, yesNoDialogAnswerNo);
logToConsole(LOG_DEBUG, `[Asshat.GUI] Created prompt GUI`);
logToConsole(LOG_DEBUG, `[VRR.GUI] Created prompt GUI`);
// ===========================================================================
logToConsole(LOG_DEBUG, `[Asshat.GUI] Creating info dialog GUI ...`);
logToConsole(LOG_DEBUG, `[VRR.GUI] Creating info dialog GUI ...`);
infoDialog.window = mexui.window(game.width/2-200, game.height/2-70, 400, 140, 'Information', {
main: {
backgroundColour: toColour(0, 0, 0, windowAlpha),
@@ -661,11 +661,11 @@ function initGUI() {
borderColour: toColour(primaryColour[0], primaryColour[1], primaryColour[2], 255),
},
}, closeInfoDialog);
logToConsole(LOG_DEBUG, `[Asshat.GUI] Created info dialog GUI`);
logToConsole(LOG_DEBUG, `[VRR.GUI] Created info dialog GUI`);
// ===========================================================================
logToConsole(LOG_DEBUG, `[Asshat.GUI] Creating list dialog GUI ...`);
logToConsole(LOG_DEBUG, `[VRR.GUI] Creating list dialog GUI ...`);
listDialog.window = mexui.window(game.width/2-200, game.height/2-70, 400, 500, 'List', {
main: {
backgroundColour: toColour(0, 0, 0, windowAlpha),
@@ -719,11 +719,11 @@ function initGUI() {
}
}
});
logToConsole(LOG_DEBUG, `[Asshat.GUI] Created list dialog GUI`);
logToConsole(LOG_DEBUG, `[VRR.GUI] Created list dialog GUI`);
// ===========================================================================
logToConsole(LOG_DEBUG, `[Asshat.GUI] Creating character select GUI ...`);
logToConsole(LOG_DEBUG, `[VRR.GUI] Creating character select GUI ...`);
characterSelect.window = mexui.window(game.width/2-215, game.height/2-83, 430, 190, 'Select Character', {
main: {
backgroundColour: toColour(0, 0, 0, windowAlpha),
@@ -845,25 +845,25 @@ function initGUI() {
borderColour: toColour(0, 0, 0, 0),
}
});
logToConsole(LOG_DEBUG, `[Asshat.GUI] Created character select GUI`);
logToConsole(LOG_DEBUG, `[VRR.GUI] Created character select GUI`);
// ===========================================================================
logToConsole(LOG_DEBUG, `[Asshat.GUI] All GUI created successfully!`);
logToConsole(LOG_DEBUG, `[VRR.GUI] All GUI created successfully!`);
closeAllWindows();
};
// ===========================================================================
let checkLogin = function() {
logToConsole(LOG_DEBUG, `[Asshat.GUI] Checking login with server ...`);
logToConsole(LOG_DEBUG, `[VRR.GUI] Checking login with server ...`);
triggerNetworkEvent("ag.checkLogin", login.passwordInput.lines[0]);
}
// ===========================================================================
let loginFailed = function(errorMessage) {
logToConsole(LOG_DEBUG, `[Asshat.GUI] Server reports login failed`);
logToConsole(LOG_DEBUG, `[VRR.GUI] Server reports login failed`);
login.messageLabel.text = errorMessage;
login.messageLabel.styles.main.textColour = toColour(180, 32, 32, 255);
login.passwordInput.text = "";
@@ -872,21 +872,21 @@ let loginFailed = function(errorMessage) {
// ===========================================================================
let loginSuccess = function() {
logToConsole(LOG_DEBUG, `[Asshat.GUI] Server reports login was successful`);
logToConsole(LOG_DEBUG, `[VRR.GUI] Server reports login was successful`);
closeAllWindows();
}
// ===========================================================================
let checkRegistration = function() {
logToConsole(LOG_DEBUG, `[Asshat.GUI] Checking registration with server ...`);
logToConsole(LOG_DEBUG, `[VRR.GUI] Checking registration with server ...`);
triggerNetworkEvent("ag.checkRegistration", register.passwordInput.lines[0], register.confirmPasswordInput.lines[0], register.emailInput.lines[0]);
}
// ===========================================================================
let checkNewCharacter = function() {
logToConsole(LOG_DEBUG, `[Asshat.GUI] Checking new character with server ...`);
logToConsole(LOG_DEBUG, `[VRR.GUI] Checking new character with server ...`);
let skinId = false;
if(newCharacter.firstNameInput.lines[0].length < 2) {
@@ -906,7 +906,7 @@ let checkNewCharacter = function() {
// ===========================================================================
let registrationFailed = function(errorMessage) {
logToConsole(LOG_DEBUG, `[Asshat.GUI] Server reports registration failed. Reason: ${errorMessage}`);
logToConsole(LOG_DEBUG, `[VRR.GUI] Server reports registration failed. Reason: ${errorMessage}`);
register.messageLabel.text = errorMessage;
register.messageLabel.styles.main.textColour = toColour(180, 32, 32, 255);
register.passwordInput.text = "";
@@ -917,7 +917,7 @@ let registrationFailed = function(errorMessage) {
// ===========================================================================
let newCharacterFailed = function(errorMessage) {
logToConsole(LOG_DEBUG, `[Asshat.GUI] Server reports new character creation failed. Reason: ${errorMessage}`);
logToConsole(LOG_DEBUG, `[VRR.GUI] Server reports new character creation failed. Reason: ${errorMessage}`);
newCharacter.messageLabel.text = errorMessage;
newCharacter.messageLabel.styles.main.textColour = toColour(180, 32, 32, 255);
newCharacter.firstNameInput.text = "";
@@ -927,14 +927,14 @@ let newCharacterFailed = function(errorMessage) {
// ===========================================================================
let registrationSuccess = function() {
logToConsole(LOG_DEBUG, `[Asshat.GUI] Server reports registration was successful`);
logToConsole(LOG_DEBUG, `[VRR.GUI] Server reports registration was successful`);
closeAllWindows();
}
// ===========================================================================
let twoFactorAuthFailed = function(errorMessage) {
logToConsole(LOG_DEBUG, `[Asshat.GUI] Server reports two-factor authentication failed. Reason: ${errorMessage}`);
logToConsole(LOG_DEBUG, `[VRR.GUI] Server reports two-factor authentication failed. Reason: ${errorMessage}`);
login.messageLabel.text = errorMessage;
login.messageLabel.styles.main.textColour = toColour(180, 32, 32, 255);
login.passwordInput.text = "";
@@ -943,28 +943,28 @@ let twoFactorAuthFailed = function(errorMessage) {
// ===========================================================================
let twoFactorAuthSuccess = function() {
logToConsole(LOG_DEBUG, `[Asshat.GUI] Server reports two-factor authentication was successful`);
logToConsole(LOG_DEBUG, `[VRR.GUI] Server reports two-factor authentication was successful`);
closeAllWindows();
}
// ===========================================================================
let checkTwoFactorAuth = function() {
logToConsole(LOG_DEBUG, `[Asshat.GUI] Checking two-factor authentication with server ...`);
logToConsole(LOG_DEBUG, `[VRR.GUI] Checking two-factor authentication with server ...`);
triggerNetworkEvent("ag.checkTwoFactorAuth", twoFactorAuth.codeInput.lines[0]);
}
// ===========================================================================
let characterSelectSuccess = function() {
logToConsole(LOG_DEBUG, `[Asshat.GUI] Server reports character selection was successful`);
logToConsole(LOG_DEBUG, `[VRR.GUI] Server reports character selection was successful`);
closeAllWindows();
}
// ===========================================================================
let closeErrorDialog = function() {
logToConsole(LOG_DEBUG, `[Asshat.GUI] Closing error dialog`);
logToConsole(LOG_DEBUG, `[VRR.GUI] Closing error dialog`);
errorDialog.window.shown = false;
mexui.setInput(false);
}
@@ -972,7 +972,7 @@ let closeErrorDialog = function() {
// ===========================================================================
let closeInfoDialog = function() {
logToConsole(LOG_DEBUG, `[Asshat.GUI] Closing info dialog`);
logToConsole(LOG_DEBUG, `[VRR.GUI] Closing info dialog`);
infoDialog.window.shown = false;
mexui.setInput(false);
}
@@ -980,7 +980,7 @@ let closeInfoDialog = function() {
// ===========================================================================
let closeAllWindows = function() {
logToConsole(LOG_DEBUG, `[Asshat.GUI] Closing all GUI windows`);
logToConsole(LOG_DEBUG, `[VRR.GUI] Closing all GUI windows`);
infoDialog.window.shown = false;
yesNoDialog.window.shown = false;
errorDialog.window.shown = false;
@@ -996,7 +996,7 @@ let closeAllWindows = function() {
// ===========================================================================
let yesNoDialogAnswerNo = function() {
logToConsole(LOG_DEBUG, `[Asshat.GUI] Responding with answer NO to server prompt`);
logToConsole(LOG_DEBUG, `[VRR.GUI] Responding with answer NO to server prompt`);
triggerNetworkEvent("ag.promptAnswerNo");
closeAllWindows();
}
@@ -1004,7 +1004,7 @@ let yesNoDialogAnswerNo = function() {
// ===========================================================================
let yesNoDialogAnswerYes = function() {
logToConsole(LOG_DEBUG, `[Asshat.GUI] Responding with answer YES to server prompt`);
logToConsole(LOG_DEBUG, `[VRR.GUI] Responding with answer YES to server prompt`);
triggerNetworkEvent("ag.promptAnswerYes");
closeAllWindows();
}
@@ -1012,7 +1012,7 @@ let yesNoDialogAnswerYes = function() {
// ===========================================================================
let showRegistration = function() {
logToConsole(LOG_DEBUG, `[Asshat.GUI] Showing registration window`);
logToConsole(LOG_DEBUG, `[VRR.GUI] Showing registration window`);
closeAllWindows();
setChatWindowEnabled(false);
mexui.setInput(true);
@@ -1023,7 +1023,7 @@ let showRegistration = function() {
let showLogin = function() {
closeAllWindows();
logToConsole(LOG_DEBUG, `[Asshat.GUI] Showing login window`);
logToConsole(LOG_DEBUG, `[VRR.GUI] Showing login window`);
setChatWindowEnabled(false);
mexui.setInput(true);
login.window.shown = true;
@@ -1033,7 +1033,7 @@ let showLogin = function() {
let showTwoFactorAuth = function() {
closeAllWindows();
logToConsole(LOG_DEBUG, `[Asshat.GUI] Showing two-factor authentication window`);
logToConsole(LOG_DEBUG, `[VRR.GUI] Showing two-factor authentication window`);
setChatWindowEnabled(false);
mexui.setInput(true);
twoFactorAuth.window.shown = true;
@@ -1043,7 +1043,7 @@ let showTwoFactorAuth = function() {
let showCharacterSelect = function(firstName, lastName, cash, clan, lastPlayed, skinId) {
closeAllWindows();
logToConsole(LOG_DEBUG, `[Asshat.GUI] Showing character selection window`);
logToConsole(LOG_DEBUG, `[VRR.GUI] Showing character selection window`);
setChatWindowEnabled(false);
mexui.setInput(true);
characterSelect.nameText.text = `${firstName} ${lastName}`;
@@ -1058,7 +1058,7 @@ let showCharacterSelect = function(firstName, lastName, cash, clan, lastPlayed,
let showError = function(errorMessage, errorTitle) {
closeAllWindows();
logToConsole(LOG_DEBUG, `[Asshat.GUI] Showing error window. Error: ${errorTitle} - ${errorMessage}`);
logToConsole(LOG_DEBUG, `[VRR.GUI] Showing error window. Error: ${errorTitle} - ${errorMessage}`);
setChatWindowEnabled(false);
mexui.setInput(true);
errorDialog.messageLabel.text = errorMessage;
@@ -1069,7 +1069,7 @@ let showError = function(errorMessage, errorTitle) {
let showYesNo = function(promptMessage, promptTitle) {
closeAllWindows();
logToConsole(LOG_DEBUG, `[Asshat.GUI] Showing prompt window. Prompt: ${promptTitle} - ${promptMessage}`);
logToConsole(LOG_DEBUG, `[VRR.GUI] Showing prompt window. Prompt: ${promptTitle} - ${promptMessage}`);
mexui.setInput(true);
yesNoDialog.messageLabel.text = promptMessage;
yesNoDialog.window.shown = true;
@@ -1079,7 +1079,7 @@ let showYesNo = function(promptMessage, promptTitle) {
let showInfo = function(infoMessage, infoTitle) {
closeAllWindows();
logToConsole(LOG_DEBUG, `[Asshat.GUI] Showing info dialog window. Info: ${infoTitle} - ${infoMessage}`);
logToConsole(LOG_DEBUG, `[VRR.GUI] Showing info dialog window. Info: ${infoTitle} - ${infoMessage}`);
mexui.setInput(true);
infoDialog.messageLabel.text = infoMessage;
infoDialog.window.shown = true;
@@ -1089,7 +1089,7 @@ let showInfo = function(infoMessage, infoTitle) {
let showNewCharacter = function() {
closeAllWindows();
logToConsole(LOG_DEBUG, `[Asshat.GUI] Showing new character dialog window`);
logToConsole(LOG_DEBUG, `[VRR.GUI] Showing new character dialog window`);
setChatWindowEnabled(false);
mexui.setInput(true);
setHUDEnabled(false);
@@ -1104,28 +1104,28 @@ let showNewCharacter = function() {
// ===========================================================================
let selectNextCharacter = function() {
logToConsole(LOG_DEBUG, `[Asshat.GUI] Requesting next character info from server for character select window`);
logToConsole(LOG_DEBUG, `[VRR.GUI] Requesting next character info from server for character select window`);
triggerNetworkEvent("ag.nextCharacter");
}
// ===========================================================================
let selectPreviousCharacter = function() {
logToConsole(LOG_DEBUG, `[Asshat.GUI] Requesting previous character info from server for character select window`);
logToConsole(LOG_DEBUG, `[VRR.GUI] Requesting previous character info from server for character select window`);
triggerNetworkEvent("ag.previousCharacter");
}
// ===========================================================================
let selectThisCharacter = function() {
logToConsole(LOG_DEBUG, `[Asshat.GUI] Tell server the current shown character was selected in character select window`);
logToConsole(LOG_DEBUG, `[VRR.GUI] Tell server the current shown character was selected in character select window`);
triggerNetworkEvent("ag.selectCharacter");
}
// ===========================================================================
let switchCharacterSelect = function(firstName, lastName, cash, clan, lastPlayed, skinId) {
logToConsole(LOG_DEBUG, `[Asshat.GUI] Updating character info with data from server`);
logToConsole(LOG_DEBUG, `[VRR.GUI] Updating character info with data from server`);
setChatWindowEnabled(false);
characterSelect.window.shown = false;
characterSelect.nameText.text = `${firstName} ${lastName}`;
@@ -1139,70 +1139,70 @@ let switchCharacterSelect = function(firstName, lastName, cash, clan, lastPlayed
// ===========================================================================
addNetworkHandler("ag.showLogin", function() {
logToConsole(LOG_DEBUG, `[Asshat.GUI] Received request from server to show login window`);
logToConsole(LOG_DEBUG, `[VRR.GUI] Received request from server to show login window`);
showLogin();
});
// ===========================================================================
addNetworkHandler("ag.showRegistration", function() {
logToConsole(LOG_DEBUG, `[Asshat.GUI] Received request from server to show registration window`);
logToConsole(LOG_DEBUG, `[VRR.GUI] Received request from server to show registration window`);
showRegistration();
});
// ===========================================================================
addNetworkHandler("ag.showNewCharacter", function() {
logToConsole(LOG_DEBUG, `[Asshat.GUI] Received request from server to show new character window`);
logToConsole(LOG_DEBUG, `[VRR.GUI] Received request from server to show new character window`);
showNewCharacter();
});
// ===========================================================================
addNetworkHandler("ag.showCharacterSelect", function(firstName, lastName, cash, clan, lastPlayed, skinId) {
logToConsole(LOG_DEBUG, `[Asshat.GUI] Received request from server to show character selection window`);
logToConsole(LOG_DEBUG, `[VRR.GUI] Received request from server to show character selection window`);
showCharacterSelect(firstName, lastName, cash, clan, lastPlayed, skinId);
});
// ===========================================================================
addNetworkHandler("ag.switchCharacterSelect", function(firstName, lastName, cash, clan, lastPlayed, skinId) {
logToConsole(LOG_DEBUG, `[Asshat.GUI] Received request from server to update character selection window with new info`);
logToConsole(LOG_DEBUG, `[VRR.GUI] Received request from server to update character selection window with new info`);
switchCharacterSelect(firstName, lastName, cash, clan, lastPlayed, skinId);
});
// ===========================================================================
addNetworkHandler("ag.showError", function(errorMessage, errorTitle) {
logToConsole(LOG_DEBUG, `[Asshat.GUI] Received request from server to show error window`);
logToConsole(LOG_DEBUG, `[VRR.GUI] Received request from server to show error window`);
showError(errorMessage, errorTitle);
});
// ===========================================================================
addNetworkHandler("ag.showPrompt", function(promptMessage, promptTitle) {
logToConsole(LOG_DEBUG, `[Asshat.GUI] Received request from server to show prompt window`);
logToConsole(LOG_DEBUG, `[VRR.GUI] Received request from server to show prompt window`);
showYesNo(promptMessage, promptTitle);
});
// ===========================================================================
addNetworkHandler("ag.showInfo", function(infoMessage) {
logToConsole(LOG_DEBUG, `[Asshat.GUI] Received request from server to show info dialog`);
logToConsole(LOG_DEBUG, `[VRR.GUI] Received request from server to show info dialog`);
showInfo(infoMessage);
});
// ===========================================================================
addNetworkHandler("ag.loginSuccess", function() {
logToConsole(LOG_DEBUG, `[Asshat.GUI] Received signal of successful login from server`);
logToConsole(LOG_DEBUG, `[VRR.GUI] Received signal of successful login from server`);
loginSuccess();
});
// ===========================================================================
addNetworkHandler("ag.characterSelectSuccess", function() {
logToConsole(LOG_DEBUG, `[Asshat.GUI] Received signal of successful character selection from server`);
logToConsole(LOG_DEBUG, `[VRR.GUI] Received signal of successful character selection from server`);
characterSelectSuccess();
setChatWindowEnabled(true);
});
@@ -1210,35 +1210,35 @@ addNetworkHandler("ag.characterSelectSuccess", function() {
// ===========================================================================
addNetworkHandler("ag.loginFailed", function(remainingAttempts) {
logToConsole(LOG_DEBUG, `[Asshat.GUI] Received signal of failed login from server`);
logToConsole(LOG_DEBUG, `[VRR.GUI] Received signal of failed login from server`);
loginFailed(remainingAttempts);
});
// ===========================================================================
addNetworkHandler("ag.registrationSuccess", function() {
logToConsole(LOG_DEBUG, `[Asshat.GUI] Received signal of successful registration from server`);
logToConsole(LOG_DEBUG, `[VRR.GUI] Received signal of successful registration from server`);
registrationSuccess();
});
// ===========================================================================
addNetworkHandler("ag.registrationFailed", function(errorMessage) {
logToConsole(LOG_DEBUG, `[Asshat.GUI] Received signal of failed registration from server`);
logToConsole(LOG_DEBUG, `[VRR.GUI] Received signal of failed registration from server`);
registrationFailed(errorMessage);
});
// ===========================================================================
addNetworkHandler("ag.newCharacterFailed", function(errorMessage) {
logToConsole(LOG_DEBUG, `[Asshat.GUI] Received signal of failed registration from server`);
logToConsole(LOG_DEBUG, `[VRR.GUI] Received signal of failed registration from server`);
newCharacterFailed(errorMessage);
});
// ===========================================================================
addNetworkHandler("ag.guiColour", function(red, green, blue) {
logToConsole(LOG_DEBUG, `[Asshat.GUI] Received new GUI colours from server`);
logToConsole(LOG_DEBUG, `[VRR.GUI] Received new GUI colours from server`);
primaryColour = [red, green, blue];
focusedColour = [red+focusedColourOffset, green+focusedColourOffset, blue+focusedColourOffset];
});
@@ -1246,7 +1246,7 @@ addNetworkHandler("ag.guiColour", function(red, green, blue) {
// ===========================================================================
addNetworkHandler("ag.guiInit", function() {
logToConsole(LOG_DEBUG, `[Asshat.GUI] Initializing MexUI app`);
logToConsole(LOG_DEBUG, `[VRR.GUI] Initializing MexUI app`);
initGUI();
triggerNetworkEvent("ag.guiReady", true);
});