mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Integrated the ATragMX into the ace interaction menu
This commit is contained in:
parent
26186e1ea4
commit
a4e22986e0
@ -2,14 +2,15 @@ class CfgVehicles {
|
|||||||
class Man;
|
class Man;
|
||||||
class CAManBase: Man {
|
class CAManBase: Man {
|
||||||
class ACE_SelfActions {
|
class ACE_SelfActions {
|
||||||
class ACE_OpenATragMX {
|
class ACE_Equipment {
|
||||||
displayName = "$STR_ACE_ATragMX_OpenATragMXDialog";
|
class GVAR(open) {
|
||||||
condition = QUOTE('ACE_ATragMX' in items _player && {!GVAR(ATragMX)});
|
displayName = "$STR_ACE_ATragMX_OpenATragMXDialog";
|
||||||
statement = QUOTE(call FUNC(create_dialog));
|
condition = QUOTE(call FUNC(canShow));
|
||||||
showDisabled = 0;
|
statement = QUOTE(call FUNC(create_dialog));
|
||||||
priority = 2;
|
showDisabled = 0;
|
||||||
icon = PATHTOF(UI\ATRAG_Icon.paa);
|
priority = 2;
|
||||||
hotkey = "K";
|
icon = PATHTOF(UI\ATRAG_Icon.paa);
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#include "script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
#include "initKeybinds.sqf"
|
//#include "initKeybinds.sqf"
|
||||||
|
|
||||||
if (count (profileNamespace getVariable ["ACE_ATragMX_gunList", []]) > 0) then {
|
if (count (profileNamespace getVariable ["ACE_ATragMX_gunList", []]) > 0) then {
|
||||||
GVAR(ATragMX_gunList) = profileNamespace getVariable "ACE_ATragMX_gunList";
|
GVAR(ATragMX_gunList) = profileNamespace getVariable "ACE_ATragMX_gunList";
|
||||||
|
@ -9,6 +9,7 @@ PREP(calculate_solution);
|
|||||||
PREP(calculate_target_range_assist);
|
PREP(calculate_target_range_assist);
|
||||||
PREP(calculate_target_solution);
|
PREP(calculate_target_solution);
|
||||||
PREP(calculate_target_speed_assist);
|
PREP(calculate_target_speed_assist);
|
||||||
|
PREP(canShow);
|
||||||
PREP(change_gun);
|
PREP(change_gun);
|
||||||
PREP(create_dialog);
|
PREP(create_dialog);
|
||||||
PREP(cycle_range_card_columns);
|
PREP(cycle_range_card_columns);
|
||||||
|
22
addons/atragmx/functions/fnc_canShow.sqf
Normal file
22
addons/atragmx/functions/fnc_canShow.sqf
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
/*
|
||||||
|
* Authors: Ruthberg
|
||||||
|
* Tests if the ATragMX can be shown
|
||||||
|
*
|
||||||
|
* Arguments:
|
||||||
|
* Nothing
|
||||||
|
*
|
||||||
|
* Return Value:
|
||||||
|
* canShow (bool)
|
||||||
|
*
|
||||||
|
* Example:
|
||||||
|
* call ace_atragmx_fnc_canShow
|
||||||
|
*
|
||||||
|
* Public: No
|
||||||
|
*/
|
||||||
|
#include "script_component.hpp"
|
||||||
|
|
||||||
|
private ["_returnValue"];
|
||||||
|
|
||||||
|
_returnValue = ("ACE_ATragMX" in (items ACE_player)) && {[ACE_player, objNull, ["notOnMap", "isNotInside"]] call EFUNC(common,canInteractWith)} && {!(underwater ACE_player)};
|
||||||
|
|
||||||
|
_returnValue
|
Loading…
Reference in New Issue
Block a user