Index: ps/trunk/binaries/data/mods/public/gui/lobby/Lobby.js =================================================================== --- ps/trunk/binaries/data/mods/public/gui/lobby/Lobby.js (revision 23172) +++ ps/trunk/binaries/data/mods/public/gui/lobby/Lobby.js (nonexistent) @@ -1,25 +0,0 @@ -/** - * This class owns the page handlers. - */ -class Lobby -{ - constructor(dialog) - { - this.xmppMessages = new XmppMessages(); - - this.profilePage = new ProfilePage(this.xmppMessages); - this.leaderboardPage = new LeaderboardPage(this.xmppMessages); - this.lobbyPage = new LobbyPage(dialog, this.xmppMessages, this.leaderboardPage, this.profilePage); - - this.xmppMessages.processHistoricMessages(); - - if (Engine.LobbyGetPlayerPresence(g_Nickname) != "available") - Engine.LobbySetPlayerPresence("available"); - - if (!dialog) - { - initMusic(); - global.music.setState(global.music.states.MENU); - } - } -} Property changes on: ps/trunk/binaries/data/mods/public/gui/lobby/Lobby.js ___________________________________________________________________ Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Index: ps/trunk/binaries/data/mods/public/gui/lobby/LobbyHandler.js =================================================================== --- ps/trunk/binaries/data/mods/public/gui/lobby/LobbyHandler.js (nonexistent) +++ ps/trunk/binaries/data/mods/public/gui/lobby/LobbyHandler.js (revision 23173) @@ -0,0 +1,25 @@ +/** + * This class owns the page handlers. + */ +class LobbyHandler +{ + constructor(dialog) + { + this.xmppMessages = new XmppMessages(); + + this.profilePage = new ProfilePage(this.xmppMessages); + this.leaderboardPage = new LeaderboardPage(this.xmppMessages); + this.lobbyPage = new LobbyPage(dialog, this.xmppMessages, this.leaderboardPage, this.profilePage); + + this.xmppMessages.processHistoricMessages(); + + if (Engine.LobbyGetPlayerPresence(g_Nickname) != "available") + Engine.LobbySetPlayerPresence("available"); + + if (!dialog) + { + initMusic(); + global.music.setState(global.music.states.MENU); + } + } +} Property changes on: ps/trunk/binaries/data/mods/public/gui/lobby/LobbyHandler.js ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Index: ps/trunk/binaries/data/mods/public/gui/lobby/lobby.js =================================================================== --- ps/trunk/binaries/data/mods/public/gui/lobby/lobby.js (revision 23172) +++ ps/trunk/binaries/data/mods/public/gui/lobby/lobby.js (revision 23173) @@ -1,40 +1,40 @@ /** * Used for gameselection details. */ const g_VictoryConditions = g_Settings && g_Settings.VictoryConditions; /** * Used for the gamelist-filtering. */ const g_MapSizes = prepareForDropdown(g_Settings && g_Settings.MapSizes); /** * Used for the gamelist-filtering. */ const g_MapTypes = prepareForDropdown(g_Settings && g_Settings.MapTypes); /** * Used for civ settings display of the selected game. */ const g_CivData = loadCivData(false, false); /** * Current nickname. */ var g_Nickname = Engine.LobbyGetNick(); /** * This class organizes all components of this GUI page. */ -var g_Lobby; +var g_LobbyHandler; /** * Called after the XmppConnection succeeded and when returning from a game. */ function init(attribs) { if (g_Settings) - g_Lobby = new Lobby(attribs && attribs.dialog); + g_LobbyHandler = new LobbyHandler(attribs && attribs.dialog); else error("Could not load settings"); }