mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Can Show: Hide when gun up
This commit is contained in:
parent
13e6ae60b2
commit
d6e7775cac
@ -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
|
||||
|
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user