Differential D717 Diff 5589 ps/trunk/binaries/data/mods/public/simulation/components/GuiInterface.js
Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/binaries/data/mods/public/simulation/components/GuiInterface.js
Show First 20 Lines • Show All 817 Lines • ▼ Show 20 Lines | |||||
GuiInterface.prototype.SetStatusBars = function(player, cmd) | GuiInterface.prototype.SetStatusBars = function(player, cmd) | ||||
{ | { | ||||
let affectedEnts = new Set(); | let affectedEnts = new Set(); | ||||
for (let ent of cmd.entities) | for (let ent of cmd.entities) | ||||
{ | { | ||||
let cmpStatusBars = Engine.QueryInterface(ent, IID_StatusBars); | let cmpStatusBars = Engine.QueryInterface(ent, IID_StatusBars); | ||||
if (!cmpStatusBars) | if (!cmpStatusBars) | ||||
continue; | continue; | ||||
cmpStatusBars.SetEnabled(cmd.enabled); | cmpStatusBars.SetEnabled(cmd.enabled, cmd.showRank); | ||||
let cmpAuras = Engine.QueryInterface(ent, IID_Auras); | let cmpAuras = Engine.QueryInterface(ent, IID_Auras); | ||||
if (!cmpAuras) | if (!cmpAuras) | ||||
continue; | continue; | ||||
for (let name of cmpAuras.GetAuraNames()) | for (let name of cmpAuras.GetAuraNames()) | ||||
{ | { | ||||
if (!cmpAuras.GetOverlayIcon(name)) | if (!cmpAuras.GetOverlayIcon(name)) | ||||
▲ Show 20 Lines • Show All 1,112 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator