Differential D2577 Diff 11116 ps/trunk/binaries/data/mods/public/gui/gamesetup/Pages/GameSetupPage/Panels/SoundNotification.js
Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/binaries/data/mods/public/gui/gamesetup/Pages/GameSetupPage/Panels/SoundNotification.js
class SoundNotification | class SoundNotification | ||||
{ | { | ||||
constructor(netMessages, playerAssignmentsControl) | constructor(setupWindow) | ||||
{ | { | ||||
netMessages.registerNetMessageHandler("chat", this.onClientChat.bind(this)); | setupWindow.controls.netMessages.registerNetMessageHandler("chat", this.onClientChat.bind(this)); | ||||
playerAssignmentsControl.registerClientJoinHandler(this.onClientJoin.bind(this)); | setupWindow.controls.playerAssignmentsControl.registerClientJoinHandler(this.onClientJoin.bind(this)); | ||||
} | } | ||||
onClientJoin(guid) | onClientJoin(guid) | ||||
{ | { | ||||
if (guid != Engine.GetPlayerGUID()) | if (guid != Engine.GetPlayerGUID()) | ||||
soundNotification(this.ConfigJoinNotification); | soundNotification(this.ConfigJoinNotification); | ||||
} | } | ||||
Show All 14 Lines |
Wildfire Games · Phabricator