Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/lobby/LobbyPage/Game.js
Show First 20 Lines • Show All 149 Lines • ▼ Show 20 Lines | update(newStanza, sortKey) | ||||
if (oldStanza.mods != newStanza.mods) | if (oldStanza.mods != newStanza.mods) | ||||
{ | { | ||||
Engine.ProfileStart("mods"); | Engine.ProfileStart("mods"); | ||||
this.updateMods(newStanza); | this.updateMods(newStanza); | ||||
Engine.ProfileStop(); | Engine.ProfileStop(); | ||||
} | } | ||||
sortValues.private = newStanza.hasPassword; | sortValues.private = newStanza.hasPassword; | ||||
displayData.private = newStanza.hasPassword ? '[icon="icon_private"]' : ''; | if (newStanza.hasPassword) | ||||
displayData.private = '[icon="icon_private"]'; | |||||
else if (newStanza.hasACLs) | |||||
displayData.private = '[icon="icon_acl"]'; | |||||
else | |||||
displayData.private = ''; | |||||
this.stanza = newStanza; | this.stanza = newStanza; | ||||
this.sortValue = this.sortValues[sortKey]; | this.sortValue = this.sortValues[sortKey]; | ||||
} | } | ||||
updatePlayers(newStanza) | updatePlayers(newStanza) | ||||
{ | { | ||||
let players; | let players; | ||||
▲ Show 20 Lines • Show All 184 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator