Files
DayZ-Epoch/SQF/dayz_code/compile/player_toggleStreamerMode.sqf
ebaydayz d13aafcd0c Add streamer mode game options setting
The chat list does not appear to be toggleable on the fly because it is
a display with no accessible controls. Giving it an idd and using
closeDisplay did not work. So it needs to be manually set off screen in
its config or covered up.
2016-10-19 15:49:30 -04:00

15 lines
398 B
Plaintext

private "_display";
disableSerialization;
_display = uiNamespace getVariable ["wm_disp",displayNull];
if (!isNull _display) then {
if (profileNamespace getVariable ["streamerMode",0] == 1) then {
_display displayCtrl 1 ctrlShow false;
if (!isNil "dayz_rulesHandle") then {
terminate dayz_rulesHandle;
dayz_rulesHandle = nil;
};
} else {
_display displayCtrl 1 ctrlShow true;
};
};