Ticket #2179: resourceCarried.diff
File resourceCarried.diff, 1.8 KB (added by , 10 years ago) |
---|
-
binaries/data/mods/public/gui/session/selection_panels.js
808 808 data.count = ents.length; 809 809 for (var i in ents) 810 810 { 811 var state = GetE xtendedEntityState(ents[i]);811 var state = GetEntityState(ents[i]); 812 812 813 813 if (state.resourceCarrying && state.resourceCarrying.length !== 0) 814 814 { -
binaries/data/mods/public/simulation/components/GuiInterface.js
198 198 "position": null, 199 199 "production": null, 200 200 "rallyPoint": null, 201 "resourceCarrying": null, 201 202 "rotation": null, 202 203 "trader": null, 203 204 "unitAI": null, … … 345 346 }; 346 347 } 347 348 349 var cmpResourceGatherer = Engine.QueryInterface(ent, IID_ResourceGatherer); 350 if (cmpResourceGatherer) 351 { 352 ret.resourceCarrying = cmpResourceGatherer.GetCarryingStatus(); 353 } 354 348 355 var cmpGate = Engine.QueryInterface(ent, IID_Gate); 349 356 if (cmpGate) 350 357 { … … 384 391 "obstruction": null, 385 392 "turretParent":null, 386 393 "promotion": null, 387 "resourceCarrying": null,388 394 "resourceDropsite": null, 389 395 "resourceGatherRates": null, 390 396 "resourceSupply": null, … … 502 508 if (cmpResourceGatherer) 503 509 { 504 510 ret.resourceGatherRates = cmpResourceGatherer.GetGatherRates(); 505 ret.resourceCarrying = cmpResourceGatherer.GetCarryingStatus();506 511 } 507 512 508 513 var cmpResourceDropsite = Engine.QueryInterface(ent, IID_ResourceDropsite);