Removed view distance changing.

This commit is contained in:
voiper 2015-07-03 12:14:41 -07:00
parent ff4fce3950
commit 56aa87ce8b
2 changed files with 0 additions and 57 deletions

View File

@ -55,7 +55,6 @@ switch _mode do {
_cam camCommit 0;
showCinemaBorder false;
cameraEffectEnableHUD true;
setViewDistance 3000;
//variables
GVAR(cam) = _cam;
@ -615,15 +614,6 @@ switch _mode do {
_layer cutText ["", "PLAIN"];
};
};
case (DIK_G): {
_vd = uiNamespace getVariable [QGVAR(vd), findDisplay 12201];
if (isNull _vd) then {
createDialog QGVAR(vd);
} else {
closeDialog 0;
}
};
case (DIK_H): {
_layer = [QGVAR(help)] call BIS_fnc_rscLayer;

View File

@ -1,47 +0,0 @@
/*
Author:
voiper
Description:
View distance dialog.
Arguments:
0: Mode <String>
1: Arguemnts <Array>
Example:
["Init", [dialog]] call ace_spectator_fnc_viewDistance;
Return Value:
None
Public:
No
*/
#include "script_component.hpp"
_mode = _this select 0;
_this = _this select 1;
switch _mode do {
case "Init": {
_dialog = _this select 0;
_dist = -1;
_text = _dialog displayCtrl 1;
_slider = _dialog displayCtrl 2;
_slider slidersetRange [1000,20000];
_slider sliderSetSpeed [1000,1000,1000];
_slider sliderSetPosition viewDistance;
_text ctrlSetText str viewDistance;
};
case "Slider": {
_dialog = ctrlParent (_this select 0);
_dist = _this select 1;
_text = _dialog displayCtrl 1;
setViewDistance _dist;
_text ctrlSetText str viewDistance;
};
};