Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/session/session.js
Show First 20 Lines • Show All 1,279 Lines • ▼ Show 20 Lines | else | ||||
entities = Engine.GuiInterfaceCall( | entities = Engine.GuiInterfaceCall( | ||||
g_ViewedPlayer == -1 ? "GetNonGaiaEntities" : "GetPlayerEntities", { | g_ViewedPlayer == -1 ? "GetNonGaiaEntities" : "GetPlayerEntities", { | ||||
"viewedPlayer": g_ViewedPlayer | "viewedPlayer": g_ViewedPlayer | ||||
}).filter(idx => selected.indexOf(idx) == -1); | }).filter(idx => selected.indexOf(idx) == -1); | ||||
} | } | ||||
Engine.GuiInterfaceCall("SetStatusBars", { | Engine.GuiInterfaceCall("SetStatusBars", { | ||||
"entities": entities, | "entities": entities, | ||||
"enabled": g_ShowAllStatusBars && !remove | "enabled": g_ShowAllStatusBars && !remove, | ||||
"showRank": Engine.ConfigDB_GetValue("user", "gui.session.rankabovestatusbar") == "true" | |||||
bb: looks like we have to get it here, and not in guiinterface | |||||
ImarokAuthorUnsubmitted Not Done Inline ActionsWhat do you mean? Imarok: What do you mean? | |||||
bbUnsubmitted Not Done Inline ActionsI guess we shouldn't call Engine.ConfigDB_GetValue from the sim, thus doing it here is correct bb: I guess we shouldn't call `Engine.ConfigDB_GetValue` from the sim, thus doing it here is correct | |||||
}); | }); | ||||
} | } | ||||
/** | /** | ||||
* Inverts the given configuration boolean and returns the current state. | * Inverts the given configuration boolean and returns the current state. | ||||
* For example "silhouettes". | * For example "silhouettes". | ||||
*/ | */ | ||||
function toggleConfigBool(configName) | function toggleConfigBool(configName) | ||||
▲ Show 20 Lines • Show All 381 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator
looks like we have to get it here, and not in guiinterface