Dont set player stuff for new char

This commit is contained in:
Vortrex
2021-04-19 18:50:32 -05:00
parent d9b3a70d8c
commit c7d16ca6ab

View File

@@ -69,7 +69,6 @@ let newCharacter = {
skinDropDown: null, skinDropDown: null,
spawnAreaDropDown: null, spawnAreaDropDown: null,
createButton: null, createButton: null,
skinImage: null,
}; };
// =========================================================================== // ===========================================================================
@@ -313,7 +312,7 @@ function initGUI() {
// =========================================================================== // ===========================================================================
logToConsole(LOG_DEBUG, `[Asshat.GUI] Creating new character GUI ...`); logToConsole(LOG_DEBUG, `[Asshat.GUI] Creating new character GUI ...`);
newCharacter.window = mexui.window(game.width/2-130, game.height/2-125, 300, 250, 'Character Name', { newCharacter.window = mexui.window(game.width/2-130, game.height/2-100, 300, 200, 'Character Name', {
main: { main: {
backgroundColour: toColour(0, 0, 0, windowAlpha), backgroundColour: toColour(0, 0, 0, windowAlpha),
transitionTime: 500, transitionTime: 500,
@@ -1081,16 +1080,16 @@ let showInfo = function(infoMessage, infoTitle) {
let showNewCharacter = function() { let showNewCharacter = function() {
closeAllWindows(); closeAllWindows();
logToConsole(LOG_DEBUG, `[Asshat.GUI] Showing info dialog window`); logToConsole(LOG_DEBUG, `[Asshat.GUI] Showing new character dialog window`);
setChatWindowEnabled(false); setChatWindowEnabled(false);
mexui.setInput(true); mexui.setInput(true);
setHUDEnabled(false); setHUDEnabled(false);
gui.showCursor(true, false);
localPlayer.invincible = true;
localPlayer.setProofs(true, true, true, true, true);
localPlayer.collisionsEnabled = false;
newCharacter.window.shown = true; newCharacter.window.shown = true;
//gui.showCursor(true, false);
//localPlayer.invincible = true;
//localPlayer.setProofs(true, true, true, true, true);
//localPlayer.collisionsEnabled = false;
} }
// =========================================================================== // ===========================================================================