Differential D4240 Diff 18787 binaries/data/mods/public/gui/gamesettings/attributes/TeamPlacement.js
Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/gamesettings/attributes/TeamPlacement.js
GameSettings.prototype.Attributes.TeamPlacement = class TeamPlacement extends GameSetting | GameSettings.prototype.Attributes.TeamPlacement = class TeamPlacement extends GameSetting | ||||
{ | { | ||||
init() | init() | ||||
{ | { | ||||
this.available = undefined; | this.available = undefined; | ||||
this.value = undefined; | this.value = undefined; | ||||
this.settings.map.watch(() => this.onMapChange(), ["map"]); | this.settings.map.watch(() => this.onMapChange(), ["map"]); | ||||
} | } | ||||
toInitAttributes(attribs) | toInitAttributes(attribs) | ||||
{ | { | ||||
if (this.value) | if (this.value !== undefined) | ||||
attribs.settings.TeamPlacement = this.value; | attribs.settings.TeamPlacement = this.value; | ||||
} | } | ||||
fromInitAttributes(attribs) | fromInitAttributes(attribs) | ||||
{ | { | ||||
if (!!this.getLegacySetting(attribs, "TeamPlacement")) | if (!!this.getLegacySetting(attribs, "TeamPlacement")) | ||||
this.value = this.getLegacySetting(attribs, "TeamPlacement"); | this.value = this.getLegacySetting(attribs, "TeamPlacement"); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 55 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator