Skip to content

Commit

Permalink
Merge pull request #122 from gruppe-adler/zeus-disable-player-freqs
Browse files Browse the repository at this point in the history
zeus: disable player freqs option in monitoring module
  • Loading branch information
McDiod authored Mar 13, 2019
2 parents 3c88a24 + 3b13b01 commit 71cce50
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
8 changes: 4 additions & 4 deletions addons/zeus/functions/fnc_moduleDiagnosticsGetPlayerFreqs.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ if (!isNil "_activeSWRadio") then {
private _altFreq = [_activeSWRadio,(_activeSWRadio call TFAR_fnc_getAdditionalSwChannel) + 1] call TFAR_fnc_getChannelFrequency;

if (_altFreq == "") then {
_freqs pushBack format ["SR %1 Hz",_mainFreq];
_freqs pushBack format ["SR %1 MHz",_mainFreq];
} else {
_freqs pushBack format ["SR %1 Hz / %2 Hz",_mainFreq,_altFreq];
_freqs pushBack format ["SR %1 MHz / %2 MHz",_mainFreq,_altFreq];
};
};

Expand All @@ -22,9 +22,9 @@ if (!isNil "_activeLRRadio") then {
private _altFreq = [_activeLRRadio,(_activeLRRadio call TFAR_fnc_getAdditionalLrChannel) + 1] call TFAR_fnc_getChannelFrequency;

if (_altFreq == "") then {
_freqs pushBack format ["LR %1 Hz",_mainFreq];
_freqs pushBack format ["LR %1 MHz",_mainFreq];
} else {
_freqs pushBack format ["LR %1 Hz / %2 Hz",_mainFreq,_altFreq];
_freqs pushBack format ["LR %1 MHz / %2 MHz",_mainFreq,_altFreq];
};
};

Expand Down
3 changes: 3 additions & 0 deletions addons/zeus/functions/fnc_ui_moduleDiagnostics.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ _control ctrlRemoveAllEventHandlers "setFocus";
(_display displayCtrl 27005) cbSetChecked (GVAR(DiagnosticsSettings) select 4);
(_display displayCtrl 27006) cbSetChecked (GVAR(DiagnosticsSettings) select 5);

// DISABLE PLAYER FREQS UNTIL ISSUE IS FIXED (SEE GITHUB)
(_display displayCtrl 27003) ctrlEnable false;

private _fnc_onUnload = {
private _logic = GETMVAR(BIS_fnc_initCuratorAttributes_target,objnull);
if (isNull _logic) exitWith {};
Expand Down

0 comments on commit 71cce50

Please sign in to comment.