Can Show: Hide when gun up

This commit is contained in:
PabstMirror 2015-03-10 22:11:25 -05:00
parent 13e6ae60b2
commit d6e7775cac
2 changed files with 8 additions and 4 deletions

View File

@ -19,7 +19,13 @@
PARAMS_1(_showType);
if (_show == DISPLAY_MODE_CLOSED) exitWith {true};
if (_show == DISPLAY_MODE_HIDDEN) exitWith {true};
//Can always do closed or hidden
if (_showType in [DISPLAY_MODE_CLOSED, DISPLAY_MODE_HIDDEN]) exitWith {true};
//Can't interact then hide gps: TODO: any exceptions?
if (!([] call EGVAR(common,canInteract))) exitWith {false};
//Can't have minimap up while zoomed in
if ((_showType == DISPLAY_MODE_DISPLAY) && {cameraview == "GUNNER"}) exitWith {false};
true

View File

@ -27,8 +27,6 @@ if (GVAR(currentShowMode) == DISPLAY_MODE_DIALOG) then {
};
if (isNull _display) exitWith {ERROR("No Display");};
systemChat format ["Showing %1 on %2", GVAR(currentApplicationPage), _display];
//Fade "shell" at night: TODO: find beter amibent light code
_daylight = (1 - cos (daytime * 360/24)) / 2;
(_display displayCtrl IDC_MICRODAGRSHELL) ctrlSetTextColor [_daylight, _daylight, _daylight, 1];