Merge pull request #985 from RZSenfo/patch-1

EnableDebugConsole can be an array
This commit is contained in:
vbawol 2018-06-23 05:20:46 -05:00 committed by GitHub
commit b1f875fdb2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,7 +20,13 @@ private ["_cfg","_color","_configs","_ctrl","_ctrlPos","_getIDC","_group","_grou
params [["_display",displayNull,[displayNull] ] ];
_offset = if (isServer) then {40 * GUI_GRID_W + GUI_GRID_X;} else {
if (getNumber (getMissionConfig "enableDebugConsole") > 0) then {
private _dbgC = getMissionConfigValue ["enableDebugConsole",0];
private _dbgCOpen = if (_dbgC isEqualType []) then {
getPlayerUID player in _dbgC
} else {
(serverCommandAvailable "#lock" && _dbgC == 1) || _dbgC == 2 };
if (_dbgCOpen) then {
40 * GUI_GRID_W + GUI_GRID_X;
} else {
17 * GUI_GRID_W + GUI_GRID_X;