Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/session/objectives/ObjectivesDialog.js
class ObjectivesDialog | class ObjectivesDialog | ||||
{ | { | ||||
constructor(playerViewControl, mapCache) | constructor(playerViewControl, mapCache) | ||||
{ | { | ||||
this.gameDescription = Engine.GetGUIObjectByName("gameDescription"); | this.gameDescription = Engine.GetGUIObjectByName("gameDescription"); | ||||
this.objectivesPlayerstate = Engine.GetGUIObjectByName("objectivesPlayerstate"); | this.objectivesPlayerstate = Engine.GetGUIObjectByName("objectivesPlayerstate"); | ||||
this.objectivesPanel = Engine.GetGUIObjectByName("objectivesPanel"); | this.objectivesPanel = Engine.GetGUIObjectByName("objectivesPanel"); | ||||
this.objectivesTitle = Engine.GetGUIObjectByName("objectivesTitle"); | this.objectivesTitle = Engine.GetGUIObjectByName("objectivesTitle"); | ||||
// TODO: atlas should support this | // TODO: atlas should support this | ||||
if (!Engine.IsAtlasRunning()) | if (!Engine.IsAtlasRunning()) | ||||
Engine.GetGUIObjectByName("gameDescriptionText").caption = getGameDescription(g_GameAttributes, mapCache); | Engine.GetGUIObjectByName("gameDescriptionText").caption = getGameDescription(g_InitAttributes, mapCache); | ||||
Engine.GetGUIObjectByName("closeObjectives").onPress = this.close.bind(this); | Engine.GetGUIObjectByName("closeObjectives").onPress = this.close.bind(this); | ||||
registerPlayersInitHandler(this.rebuild.bind(this)); | registerPlayersInitHandler(this.rebuild.bind(this)); | ||||
registerPlayersFinishedHandler(this.rebuild.bind(this)); | registerPlayersFinishedHandler(this.rebuild.bind(this)); | ||||
playerViewControl.registerPlayerIDChangeHandler(this.rebuild.bind(this)); | playerViewControl.registerPlayerIDChangeHandler(this.rebuild.bind(this)); | ||||
} | } | ||||
Show All 39 Lines |
Wildfire Games · Phabricator