2015-03-09 18:53:49 +00:00
|
|
|
/*
|
|
|
|
* Author: PabstMirror
|
2015-03-11 07:06:07 +00:00
|
|
|
* Tests if the dagr can be shown in a mode
|
2015-03-09 18:53:49 +00:00
|
|
|
*
|
|
|
|
* Arguments:
|
2015-03-11 07:06:07 +00:00
|
|
|
* The display mode to test showing <NUMBER>
|
2015-03-09 18:53:49 +00:00
|
|
|
*
|
|
|
|
* Return Value:
|
2015-03-11 07:06:07 +00:00
|
|
|
* Nothing
|
2015-03-09 18:53:49 +00:00
|
|
|
*
|
|
|
|
* Example:
|
2015-03-11 07:06:07 +00:00
|
|
|
* [] call ace_microdagr_fnc_canShow
|
2015-03-09 18:53:49 +00:00
|
|
|
*
|
2015-03-11 07:06:07 +00:00
|
|
|
* Public: No
|
2015-03-09 18:53:49 +00:00
|
|
|
*/
|
|
|
|
#include "script_component.hpp"
|
|
|
|
|
2015-03-09 21:09:00 +00:00
|
|
|
PARAMS_1(_showType);
|
|
|
|
|
2015-03-11 03:11:25 +00:00
|
|
|
//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?
|
2015-03-18 18:46:39 +00:00
|
|
|
if (!([ACE_player, objNull, []] call EGVAR(common,canInteractWith))) exitWith {false};
|
2015-03-11 03:11:25 +00:00
|
|
|
|
|
|
|
//Can't have minimap up while zoomed in
|
|
|
|
if ((_showType == DISPLAY_MODE_DISPLAY) && {cameraview == "GUNNER"}) exitWith {false};
|
2015-03-09 21:09:00 +00:00
|
|
|
|
2015-03-09 18:53:49 +00:00
|
|
|
true
|