Differential D2483 Diff 10980 ps/trunk/binaries/data/mods/public/gui/gamesetup/GameSettings/PerPlayer/PlayerFrame.js
Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/binaries/data/mods/public/gui/gamesetup/GameSettings/PerPlayer/PlayerFrame.js
Property | Old Value | New Value |
---|---|---|
svn:eol-style | null | native \ No newline at end of property |
PlayerSettingControls.PlayerFrame = class extends GameSettingControl | |||||
{ | |||||
constructor(...args) | |||||
{ | |||||
super(...args); | |||||
this.playerFrame = Engine.GetGUIObjectByName("playerFrame[" + this.playerIndex + "]"); | |||||
{ | |||||
let size = this.playerFrame.size; | |||||
size.top = this.Height * this.playerIndex; | |||||
size.bottom = this.Height * (this.playerIndex + 1); | |||||
this.playerFrame.size = size; | |||||
} | |||||
} | |||||
onGameAttributesBatchChange() | |||||
{ | |||||
this.playerFrame.hidden = !this.gameSettingsControl.getPlayerData(g_GameAttributes, this.playerIndex); | |||||
} | |||||
} | |||||
PlayerSettingControls.PlayerFrame.prototype.Height = 32; |
Wildfire Games · Phabricator