Skip to content
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 20 additions & 3 deletions addons/context_actions/CfgContext.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -245,12 +245,29 @@ class EGVAR(context_menu,actions) {
icon = "\a3\3den\Data\Displays\Display3DEN\ToolBar\undo_ca.paa";
};
};
class VehicleLoadout {
displayName = "$STR_A3_VR_Stamina_01_Loadout";
icon = QPATHTOF(ui\ammo_ca.paa);
priority = 39;
class Magazines {
displayName = "$STR_GEAR_MAGAZINES";
condition = QUOTE(_hoveredEntity call FUNC(canEditMagazines));
statement = QUOTE(_hoveredEntity call EFUNC(loadout,configure));
icon = "\a3\ui_f\data\igui\cfg\weaponicons\mg_ca.paa";
};
class Pylons {
displayName = ECSTRING(pylons,DisplayName);
condition = QUOTE(_hoveredEntity call FUNC(canEditPylons));
statement = QUOTE(_hoveredEntity call EFUNC(pylons,configure));
icon = "\a3\ui_f\data\igui\cfg\weaponicons\aa_ca.paa";
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think use the jets icon for pylons.

};
};
class Inventory {
displayName = "$STR_A3_Gear1";
condition = QUOTE(_hoveredEntity call FUNC(canEditInventory));
statement = QUOTE(_hoveredEntity call EFUNC(inventory,configure));
icon = "\a3\Ui_F_Curator\Data\RscCommon\RscAttributeInventory\filter_0_ca.paa";
priority = 39;
priority = 38;
class Edit {
displayName = "$STR_3DEN_Display3DEN_MenUBar_Edit_text";
condition = QUOTE(_hoveredEntity call FUNC(canEditInventory));
Expand All @@ -274,7 +291,7 @@ class EGVAR(context_menu,actions) {
condition = QUOTE(_hoveredEntity call FUNC(canEditVehicleAppearance));
statement = QUOTE(_hoveredEntity call EFUNC(garage,openGarage));
icon = "\a3\3den\data\displays\display3den\entitymenu\garage_ca.paa";
priority = 38;
priority = 37;
class Edit {
displayName = "$STR_3DEN_Display3DEN_MenUBar_Edit_text";
condition = QUOTE(_hoveredEntity call FUNC(canEditVehicleAppearance));
Expand All @@ -296,7 +313,7 @@ class EGVAR(context_menu,actions) {
class VehicleLogistics {
displayName = CSTRING(VehicleLogistics);
icon = "\a3\ui_f\data\igui\cfg\simpleTasks\types\truck_ca.paa";
priority = 37;
priority = 36;
class Repair {
displayName = "$STR_Repair";
condition = QUOTE(_objects call FUNC(canRepairVehicles));
Expand Down
2 changes: 2 additions & 0 deletions addons/context_actions/XEH_PREP.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
PREP(canEditInventory);
PREP(canEditLoadout);
PREP(canEditMagazines);
PREP(canEditPylons);
PREP(canEditVehicleAppearance);
PREP(canHealUnits);
PREP(canPasteVehicleAppearance);
Expand Down
20 changes: 20 additions & 0 deletions addons/context_actions/functions/fnc_canEditMagazines.sqf
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#include "script_component.hpp"
/*
* Author: mharis001
Comment thread
neilzar marked this conversation as resolved.
Outdated
* Checks if the loadout of the given entity can be edited.
Comment thread
neilzar marked this conversation as resolved.
Outdated
*
* Arguments:
* 0: Entity <ANY>
*
* Return Value:
* Can Edit Loadout <BOOL>
Comment thread
neilzar marked this conversation as resolved.
Outdated
*
* Example:
* [_entity] call zen_context_actions_fnc_canEditLoadout
Comment thread
neilzar marked this conversation as resolved.
Outdated
*
* Public: No
*/

params ["_entity"];

_entity isEqualType objNull && {alive _entity} && {!(_entity call EFUNC(loadout,getWeaponList) isEqualTo [])}
Comment thread
neilzar marked this conversation as resolved.
Outdated
20 changes: 20 additions & 0 deletions addons/context_actions/functions/fnc_canEditPylons.sqf
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#include "script_component.hpp"
/*
* Author: mharis001
Comment thread
neilzar marked this conversation as resolved.
Outdated
* Checks if the loadout of the given entity can be edited.
Comment thread
neilzar marked this conversation as resolved.
Outdated
*
* Arguments:
* 0: Entity <ANY>
*
* Return Value:
* Can Edit Loadout <BOOL>
Comment thread
neilzar marked this conversation as resolved.
Outdated
*
* Example:
* [_entity] call zen_context_actions_fnc_canEditLoadout
Comment thread
neilzar marked this conversation as resolved.
Outdated
*
* Public: No
*/

params ["_entity"];

_entity isEqualType objNull && {alive _entity} && {_entity call EFUNC(common,hasPylons)}