mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
add setting to hide Eject action from action menu
This commit is contained in:
parent
9d5b936d7c
commit
2dbc4993d8
7
addons/vehicles/CfgActions.hpp
Normal file
7
addons/vehicles/CfgActions.hpp
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
class CfgActions {
|
||||||
|
class None;
|
||||||
|
class Eject: None {
|
||||||
|
show = QUOTE(call compile getText (configFile >> 'CfgActions' >> 'Eject' >> 'GVAR(setting)'));
|
||||||
|
GVAR(setting) = QUOTE(profileNamespace getVariable [ARR_2('GVAR(showEjectAction)',1)]);
|
||||||
|
};
|
||||||
|
};
|
@ -6,4 +6,16 @@ PREP_RECOMPILE_START;
|
|||||||
#include "XEH_PREP.hpp"
|
#include "XEH_PREP.hpp"
|
||||||
PREP_RECOMPILE_END;
|
PREP_RECOMPILE_END;
|
||||||
|
|
||||||
|
[
|
||||||
|
QGVAR(hideEjectAction),
|
||||||
|
"CHECKBOX",
|
||||||
|
[LSTRING(HideEjectAction), LSTRING(HideEjectActionTooltip)],
|
||||||
|
ELSTRING(common,ACEKeybindCategoryVehicles),
|
||||||
|
false,
|
||||||
|
2, {
|
||||||
|
profileNamespace setVariable [QGVAR(showEjectAction), parseNumber !_this];
|
||||||
|
saveProfileNamespace;
|
||||||
|
}
|
||||||
|
] call cba_settings_fnc_init;
|
||||||
|
|
||||||
ADDON = true;
|
ADDON = true;
|
||||||
|
@ -21,3 +21,4 @@ class CfgPatches {
|
|||||||
#include "CfgAmmo.hpp"
|
#include "CfgAmmo.hpp"
|
||||||
#include "CfgVehicles.hpp"
|
#include "CfgVehicles.hpp"
|
||||||
#include "CfgWeapons.hpp"
|
#include "CfgWeapons.hpp"
|
||||||
|
#include "CfgActions.hpp"
|
||||||
|
@ -67,5 +67,13 @@
|
|||||||
<Japanese>速度制限を減らす</Japanese>
|
<Japanese>速度制限を減らす</Japanese>
|
||||||
<Polish>Zmniejsz ograniczenie prędkości</Polish>
|
<Polish>Zmniejsz ograniczenie prędkości</Polish>
|
||||||
</Key>
|
</Key>
|
||||||
|
<Key ID="STR_ACE_Vehicles_HideEjectAction">
|
||||||
|
<English>Hide Eject Action</English>
|
||||||
|
<German>Abspringen-Aktion verstecken</German>
|
||||||
|
</Key>
|
||||||
|
<Key ID="STR_ACE_Vehicles_HideEjectActionTooltip">
|
||||||
|
<English>Hides the Eject entry from the action menu. Requires a game restart.</English>
|
||||||
|
<German>Versteckt den Abspringen-Eintrag aus dem Aktionsmenü. Benötigt Neustart des Spiels.</German>
|
||||||
|
</Key>
|
||||||
</Package>
|
</Package>
|
||||||
</Project>
|
</Project>
|
||||||
|
Loading…
Reference in New Issue
Block a user