mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
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.
This commit is contained in:
15
SQF/dayz_code/compile/player_toggleStreamerMode.sqf
Normal file
15
SQF/dayz_code/compile/player_toggleStreamerMode.sqf
Normal file
@@ -0,0 +1,15 @@
|
||||
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;
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user