Add dividers to GUI script

This commit is contained in:
Vortrex
2021-03-30 21:45:29 -05:00
parent 92dc2a7487
commit 97e06cd32a

View File

@@ -25,6 +25,8 @@ let windowTitleAlpha = 200;
let buttonAlpha = 200; let buttonAlpha = 200;
let textInputAlpha = 200; let textInputAlpha = 200;
// ===========================================================================
let login = { let login = {
window: null, window: null,
logoImage: null, logoImage: null,
@@ -34,6 +36,8 @@ let login = {
loginButton: null, loginButton: null,
}; };
// ===========================================================================
let twoFactorAuth = { let twoFactorAuth = {
window: null, window: null,
logoImage: null, logoImage: null,
@@ -44,6 +48,8 @@ let twoFactorAuth = {
submitButton: null, submitButton: null,
}; };
// ===========================================================================
let register = { let register = {
window: null, window: null,
logoImage: null, logoImage: null,
@@ -54,6 +60,8 @@ let register = {
registerButton: null, registerButton: null,
}; };
// ===========================================================================
let newCharacter = { let newCharacter = {
window: null, window: null,
firstNameInput: null, firstNameInput: null,
@@ -64,24 +72,32 @@ let newCharacter = {
skinImage: null, skinImage: null,
}; };
// ===========================================================================
let errorDialog = { let errorDialog = {
window: null, window: null,
messageLabel: null, messageLabel: null,
okayButton: null, okayButton: null,
}; };
// ===========================================================================
let infoDialog = { let infoDialog = {
window: null, window: null,
messageLabel: null, messageLabel: null,
okayButton: null, okayButton: null,
}; };
// ===========================================================================
let listDialog = { let listDialog = {
window: null, window: null,
messageLabel: null, messageLabel: null,
listGrid: null, listGrid: null,
}; };
// ===========================================================================
let yesNoDialog = { let yesNoDialog = {
window: null, window: null,
messageLabel: null, messageLabel: null,
@@ -89,6 +105,8 @@ let yesNoDialog = {
noButton: null, noButton: null,
}; };
// ===========================================================================
let characterSelect = { let characterSelect = {
window: null, window: null,
skinImage: null, skinImage: null,
@@ -102,6 +120,8 @@ let characterSelect = {
newCharacterButton: null, newCharacterButton: null,
}; };
// ===========================================================================
let placesOfOrigin = [ let placesOfOrigin = [
"Liberty City", "Liberty City",
"Vice City", "Vice City",
@@ -115,30 +135,24 @@ let placesOfOrigin = [
"Other", "Other",
]; ];
// ===========================================================================
let characterData = []; let characterData = [];
let currentCharacter = 0; let currentCharacter = 0;
let inCharacterSelectScreen = false; let inCharacterSelectScreen = false;
let creatingCharacter = false; let creatingCharacter = false;
let newCharacterSkinSelectPedPosition = [ // ===========================================================================
[],
[139.54, -903.00, 26.16],
[-379.16, -535.27, 17.28],
[2495.03, -1685.66, 13.51],
[904.27, -498.00, 14.522],
];
let newCharacterSkinSelectPedHeading = [ function initGUIScript() {
[], logToConsole(LOG_DEBUG, "[Asshat.GUI]: Initializing GUI script ...");
[15.0], logToConsole(LOG_DEBUG, "[Asshat.GUI]: GUI script initialized!");
[0.0], }
[0.01],
[3.127],
];
app.init = function() // ===========================================================================
{
function initGUI() {
logToConsole(LOG_DEBUG, `[Asshat.GUI] Initializing GUI ...`); logToConsole(LOG_DEBUG, `[Asshat.GUI] Initializing GUI ...`);
logToConsole(LOG_DEBUG, `[Asshat.GUI] Creating login GUI ...`); logToConsole(LOG_DEBUG, `[Asshat.GUI] Creating login GUI ...`);
@@ -1225,7 +1239,7 @@ addNetworkHandler("ag.guiColour", function(red, green, blue) {
addNetworkHandler("ag.guiInit", function() { addNetworkHandler("ag.guiInit", function() {
logToConsole(LOG_DEBUG, `[Asshat.GUI] Initializing MexUI app`); logToConsole(LOG_DEBUG, `[Asshat.GUI] Initializing MexUI app`);
app.init(); initGUI();
triggerNetworkEvent("ag.guiReady", true); triggerNetworkEvent("ag.guiReady", true);
}); });