Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Reset Loadout context menu action #518

Merged
merged 4 commits into from
Jan 19, 2021
Merged
Show file tree
Hide file tree
Changes from all 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
5 changes: 5 additions & 0 deletions addons/context_actions/CfgContext.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,11 @@ class EGVAR(context_menu,actions) {
statement = QUOTE(_hoveredEntity setUnitLoadout GVAR(loadout));
icon = QPATHTOF(ui\paste_ca.paa);
};
class Reset {
displayName = "$STR_A3_RscDisplayCampaignLobby_Reset";
statement = QUOTE(_hoveredEntity setUnitLoadout configOf _hoveredEntity);
icon = "\a3\3den\Data\Displays\Display3DEN\ToolBar\undo_ca.paa";
};
};
class Inventory {
displayName = "$STR_A3_Gear1";
Expand Down
4 changes: 2 additions & 2 deletions docs/user_guide/context_actions.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,13 @@ Heals all selected units based on the on the mode (all, players, AI).
## Inventory

Opens the inventory display for the hovered object.
Sub-actions allow for copying and pasting the hovered objects' inventory onto another.
Sub-actions allow for copying and pasting the hovered object's inventory onto another.
The main action acts as a shortcut for the "Edit" sub-action.

## Loadout

Opens the preferred arsenal type (specified in CBA settings) on the hovered unit.
Sub-actions allow for copying and pasting the hovered units' loadout onto another.
Sub-actions allow for copying and pasting the hovered unit's loadout onto another and resetting the unit's loadout to the config defined one.
The main action acts as a shortcut for the "Edit" sub-action.

## Remote Control
Expand Down