use cameraon

This commit is contained in:
Brett 2019-08-20 20:46:50 -06:00 committed by Brett
parent 62ed33c659
commit 49c8916573
2 changed files with 4 additions and 4 deletions

View File

@ -4,7 +4,7 @@ params ["_ctrl"];
private _alt = (ctrlParent _ctrl) ctrlCreate [QGVAR(alt), -1];
private _units = (vehicle ACE_player) call FUNC(altUnits);
private _units = cameraOn call FUNC(altUnits);
_units call FUNC(altInfo) params ["_unitText", "_ratio"];
((ctrlParent _alt) displayCtrl 1005) ctrlSetText _unitText;
@ -28,7 +28,7 @@ private _settingEH = ["CBA_SettingChanged", {
};
_ctrl ctrlSetFade 1;
_ctrl ctrlCommit 0;
private _vehicle = vehicle ACE_player;
private _vehicle = cameraOn;
private _rawAlt = ((getPosATL _vehicle) select 2) + (0 min (getTerrainHeightASL getPos _vehicle));
private _altValue = _rawAlt / GVAR(altRatio);
if (_altValue < 10) then {

View File

@ -4,7 +4,7 @@ params ["_ctrl"];
private _speed = (ctrlParent _ctrl) ctrlCreate [QGVAR(speed), -1];
private _units = (vehicle ACE_player) call FUNC(speedUnits);
private _units = cameraOn call FUNC(speedUnits);
_units call FUNC(speedInfo) params ["_unitText", "_ratio"];
((ctrlParent _speed) displayCtrl 1004) ctrlSetText _unitText;
@ -28,5 +28,5 @@ private _settingEH = ["CBA_SettingChanged", {
};
_ctrl ctrlSetFade 1;
_ctrl ctrlCommit 0;
_speed ctrlSetText ((abs (speed vehicle ACE_player / GVAR(speedRatio))) toFixed 0);
_speed ctrlSetText ((abs (speed cameraOn / GVAR(speedRatio))) toFixed 0);
}, 0, [_ctrl, _speed, _settingEH]] call CBA_fnc_addPerFrameHandler;