Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/binaries/data/mods/public/gui/lobby/Lobby.js
Property | Old Value | New Value |
---|---|---|
svn:eol-style | null | native \ No newline at end of property |
/** | |||||
* 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); | |||||
} | |||||
} | |||||
} |
Wildfire Games · Phabricator