Ticket #4480: wrongstatusbar.diff
File wrongstatusbar.diff, 1.0 KB (added by , 7 years ago) |
---|
-
binaries/data/mods/public/simulation/components/StatusBars.js
23 23 StatusBars.prototype.Sprites = 24 24 [ 25 25 "PackBar", 26 "ResourceSupplyBar",27 "CaptureBar",28 "HealthBar",29 "AuraIcons",26 //~ "ResourceSupplyBar", 27 //~ "CaptureBar", 28 //~ "HealthBar", 29 //~ "AuraIcons", 30 30 ]; 31 31 32 32 StatusBars.prototype.Init = function() … … 95 95 this.RegenerateSprites(); 96 96 }; 97 97 98 StatusBars.prototype.OnDestroy = function(msg) 99 { 100 if (this.enabled) 101 this.RegenerateSprites(); 102 }; 103 98 104 StatusBars.prototype.OnPackProgressUpdate = function(msg) 99 105 { 100 106 if (this.enabled) … … 153 159 let cmpPack = Engine.QueryInterface(this.entity, IID_Pack); 154 160 if (!cmpPack || !cmpPack.IsPacking()) 155 161 return 0; 156 157 162 return this.AddBar(cmpOverlayRenderer, yoffset, "pack", cmpPack.GetProgress()); 158 163 };