Differential D2577 Diff 11116 ps/trunk/binaries/data/mods/public/gui/gamesetup/Pages/GameSetupPage/Panels/Buttons/ResetTeamsButton.js
Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/binaries/data/mods/public/gui/gamesetup/Pages/GameSetupPage/Panels/Buttons/ResetTeamsButton.js
class ResetTeamsButton | class ResetTeamsButton | ||||
{ | { | ||||
constructor(gameSettingsControl) | constructor(setupWindow) | ||||
{ | { | ||||
this.gameSettingsControl = gameSettingsControl; | this.gameSettingsControl = setupWindow.controls.gameSettingsControl; | ||||
this.gameSettingsControl.registerGameAttributesBatchChangeHandler(this.onGameAttributesBatchChange.bind(this)); | this.gameSettingsControl.registerGameAttributesBatchChangeHandler(this.onGameAttributesBatchChange.bind(this)); | ||||
this.teamResetButton = Engine.GetGUIObjectByName("teamResetButton"); | this.teamResetButton = Engine.GetGUIObjectByName("teamResetButton"); | ||||
this.teamResetButton.tooltip = this.Tooltip; | this.teamResetButton.tooltip = this.Tooltip; | ||||
this.teamResetButton.onPress = this.onPress.bind(this); | this.teamResetButton.onPress = this.onPress.bind(this); | ||||
} | } | ||||
onGameAttributesBatchChange() | onGameAttributesBatchChange() | ||||
Show All 22 Lines |
Wildfire Games · Phabricator