Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/simulation/components/GuiInterface.js
Show First 20 Lines • Show All 922 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); | ||||
bb: potentially all things could become option settings, so perhaps make it an object? | |||||
Not Done Inline ActionsWhat should also become an option setting? Imarok: What should also become an option setting?
you mean like only showing aura icons or healthbars? | |||||
Not Done Inline Actionsyup, but that is out of scope ofc bb: yup, but that is out of scope ofc | |||||
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,106 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator
potentially all things could become option settings, so perhaps make it an object?