Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/simulation/components/StatusBars.js
Show All 37 Lines | StatusBars.prototype.Init = function() | ||||
this.showExperience = false; | this.showExperience = false; | ||||
// Whether the status bars used the player colors anywhere (e.g. in the capture bar) | // Whether the status bars used the player colors anywhere (e.g. in the capture bar) | ||||
this.usedPlayerColors = false; | this.usedPlayerColors = false; | ||||
this.auraSources = new Map(); | this.auraSources = new Map(); | ||||
}; | }; | ||||
StatusBars.prototype.Update = function(newTemplate) { | |||||
this.template = newTemplate; | |||||
if (this.enabled) | |||||
this.RegenerateSprites(); | |||||
}; | |||||
/** | /** | ||||
* Don't serialise this.enabled since it's modified by the GUI. | * Don't serialise this.enabled since it's modified by the GUI. | ||||
*/ | */ | ||||
StatusBars.prototype.Serialize = function() | StatusBars.prototype.Serialize = function() | ||||
{ | { | ||||
return { "auraSources": this.auraSources }; | return { "auraSources": this.auraSources }; | ||||
}; | }; | ||||
▲ Show 20 Lines • Show All 300 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator