Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/session/selection.js
Show All 9 Lines | |||||
{ | { | ||||
if (ents.length) | if (ents.length) | ||||
Engine.GuiInterfaceCall("SetSelectionHighlight", { "entities":ents, "alpha":alpha, "selected":selected }); | Engine.GuiInterfaceCall("SetSelectionHighlight", { "entities":ents, "alpha":alpha, "selected":selected }); | ||||
} | } | ||||
function _setStatusBars(ents, enabled) | function _setStatusBars(ents, enabled) | ||||
{ | { | ||||
if (ents.length) | if (ents.length) | ||||
Engine.GuiInterfaceCall("SetStatusBars", { "entities":ents, "enabled":enabled }); | Engine.GuiInterfaceCall("SetStatusBars", { | ||||
"entities": ents, | |||||
"enabled": enabled, | |||||
"showRank": Engine.ConfigDB_GetValue("user", "gui.session.rank-above-statusbar") == "true" | |||||
}); | |||||
} | } | ||||
bb: ```
if (foo)
doFoo()
```
as it is done in the context too | |||||
Not Done Inline ActionsDid this originally, but @elexis wanted an early return and I don't care. Imarok: Did this originally, but @elexis wanted an early return and I don't care.
So please come to an… | |||||
function _setMotionOverlay(ents, enabled) | function _setMotionOverlay(ents, enabled) | ||||
{ | { | ||||
if (ents.length) | if (ents.length) | ||||
Engine.GuiInterfaceCall("SetMotionDebugOverlay", { "entities":ents, "enabled":enabled }); | Engine.GuiInterfaceCall("SetMotionDebugOverlay", { "entities":ents, "enabled":enabled }); | ||||
} | } | ||||
function _playSound(ent) | function _playSound(ent) | ||||
▲ Show 20 Lines • Show All 481 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator
as it is done in the context too