File tree Expand file tree Collapse file tree 7 files changed +60
-1
lines changed
Expand file tree Collapse file tree 7 files changed +60
-1
lines changed Original file line number Diff line number Diff line change 1+ class EGVAR (context_menu,actions) {
2+ class AceMedicalMenu {
3+ displayName = CSTRING(OpenMedicalMenu);
4+ icon = QPATHTOEF(context_actions,ui\medical_cross_ca.paa);
5+ condition = QUOTE(_hoveredEntity call FUNC (canOpenMedicalMenu));
6+ statement = QUOTE(_hoveredEntity call FUNC (openMedicalMenu));
7+ priority = 51 ;
8+ };
9+ };
Original file line number Diff line number Diff line change 11PREP (canFastrope);
2+ PREP (canOpenMedicalMenu);
23PREP (canRemoteControl);
4+ PREP (openMedicalMenu);
35PREP (remoteControl);
Original file line number Diff line number Diff line change @@ -26,3 +26,4 @@ PRELOAD_ADDONS;
2626#include " CfgVehicles.hpp"
2727#include " CfgWaypointTypes.hpp"
2828#include " ACE_ZeusActions.hpp"
29+ #include " CfgContext.hpp"
Original file line number Diff line number Diff line change 1+ #include " script_component.hpp"
2+ /*
3+ * Author: OverlordZorn
4+ * Checks if the ace medical menu can be opened for an unit.
5+ *
6+ * Arguments:
7+ * 0: Entity <ANY>
8+ *
9+ * Return Value:
10+ * Can Open ACE Medical Menu <BOOL>
11+ *
12+ * Example:
13+ * [_entity] call zen_compat_ace_fnc_canOpenMedicalMenu
14+ *
15+ * Public: No
16+ */
17+
18+ params [" _entity" ];
19+
20+ _entity isEqualType objNull
21+ && {! isNull _entity }
22+ && {_entity isKindOf " CAManBase" }
23+ && {[" ace_medical_gui" ] call ACEFUNC(common,isModLoaded)}
24+ && {[objNull , _entity ] call ACEFUNC(medical_gui,canOpenMenu)}
Original file line number Diff line number Diff line change 1+ #include " script_component.hpp"
2+ /*
3+ * Author: OverlordZorn
4+ * Opens ace medical menu for an unit.
5+ *
6+ * Arguments:
7+ * 0: Entity <ANY>
8+ *
9+ * Return Value:
10+ * None
11+ *
12+ * Example:
13+ * [_entity] call zen_compat_ace_fnc_openMedicalMenu
14+ *
15+ * Public: No
16+ */
17+
18+ params [" _entity" ];
19+
20+ [_entity ] call ACEFUNC(medical_gui,openMenu);
Original file line number Diff line number Diff line change 1515 <French >Cacher les modules ACE</French >
1616 <Chinesesimp >隐藏ACE模块</Chinesesimp >
1717 </Key >
18+ <Key ID =" STR_ZEN_Compat_ACE_OpenMedicalMenu" >
19+ <English >Open Medical Menu</English >
20+ </Key >
1821 <Key ID =" STR_ZEN_Compat_ACE_HideModules_Description" >
1922 <English >Hides duplicate modules added by ACE Zeus. Requires display reload.</English >
2023 <Korean >ACE 제우스에 의해 추가된 모듈을 숨깁니다. 디스플레이 재시작이 필요합니다.</Korean >
Original file line number Diff line number Diff line change @@ -187,7 +187,7 @@ class EGVAR(context_menu,actions) {
187187 class HealUnits {
188188 displayName = " $STR_State_Heal" ;
189189 icon = QPATHTOF(ui\medical_cross_ca.paa);
190- priority = 50 ;
190+ priority = 52 ;
191191 class All {
192192 displayName = ECSTRING(common,All);
193193 condition = QUOTE([ARR_2(_objects,_args)] call FUNC (canHealUnits));
You can’t perform that action at this time.
0 commit comments