Skip to content

Commit

Permalink
Add Editable Objects > Remove > Selected context menu action (#732)
Browse files Browse the repository at this point in the history
* Remove Selected from editable objects

* Add German

---------

Co-authored-by: Kex <[email protected]>
  • Loading branch information
ampersand38 and Kexanone authored Apr 25, 2023
1 parent 0dca83f commit 3cd9b67
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 6 additions & 2 deletions addons/context_actions/CfgContext.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -385,10 +385,14 @@ class EGVAR(context_menu,actions) {
class Remove {
displayName = ECSTRING(common,Remove);
icon = QPATHTOF(ui\remove_ca.paa);
class 10m {
class Selected {
displayName = CSTRING(Selected);
statement = QUOTE([ARR_3(SELECTED_OBJECTS,false,getAssignedCuratorLogic player)] call EFUNC(common,updateEditableObjects));
icon = QPATHTOF(ui\remove_ca.paa);
};
class 10m: Selected {
displayName = CSTRING(10m);
statement = QUOTE([ARR_3(false,_position,_args)] call FUNC(updateEditableObjects));
icon = QPATHTOF(ui\remove_ca.paa);
args = 10;
};
class 50m: 10m {
Expand Down
4 changes: 4 additions & 0 deletions addons/context_actions/stringtable.xml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@
<Chinese>可編輯對象</Chinese>
<Italian>Oggetti modificabili</Italian>
</Key>
<Key ID="STR_ZEN_Context_Actions_Selected">
<English>Selected</English>
<German>Auswahl</German>
</Key>
<Key ID="STR_ZEN_Context_Actions_10m">
<English>10 m</English>
<German>10 m</German>
Expand Down

0 comments on commit 3cd9b67

Please sign in to comment.