-
Notifications
You must be signed in to change notification settings - Fork 737
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Vehicle Lock - Convert to cba settings (#6133)
Switch vehicleStartingLockState from slider to list Close #6014
- Loading branch information
1 parent
2793470
commit 7e648f2
Showing
5 changed files
with
42 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,11 @@ | ||
class ACE_Settings { | ||
class GVAR(defaultLockpickStrength) { | ||
category = CSTRING(DisplayName); | ||
displayName = CSTRING(DefaultLockpickStrength_DisplayName); | ||
description = CSTRING(DefaultLockpickStrength_Description); | ||
value = 10; | ||
typeName = "SCALAR"; | ||
sliderSettings[] = {-1, 60, 5, 1}; | ||
movedToSQF = 1; | ||
}; | ||
class GVAR(lockVehicleInventory) { | ||
category = CSTRING(DisplayName); | ||
displayName = CSTRING(LockVehicleInventory_DisplayName); | ||
description = CSTRING(LockVehicleInventory_Description); | ||
value = 0; | ||
typeName = "BOOL"; | ||
movedToSQF = 1; | ||
}; | ||
class GVAR(vehicleStartingLockState) { | ||
category = CSTRING(DisplayName); | ||
displayName = CSTRING(VehicleStartingLockState_DisplayName); | ||
description = CSTRING(VehicleStartingLockState_Description); | ||
value = -1; | ||
typeName = "SCALAR"; | ||
sliderSettings[] = {-1, 2, -1, -1}; // ToDo: Make this a list? | ||
movedToSQF = 1; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,4 +6,6 @@ PREP_RECOMPILE_START; | |
#include "XEH_PREP.hpp" | ||
PREP_RECOMPILE_END; | ||
|
||
#include "initSettings.sqf" | ||
|
||
ADDON = true; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// CBA Settings [ADDON: ace_vehicleLock]: | ||
|
||
[ | ||
QGVAR(defaultLockpickStrength), "SLIDER", | ||
[LSTRING(DefaultLockpickStrength_DisplayName), LSTRING(DefaultLockpickStrength_Description)], | ||
LSTRING(DisplayName), | ||
[-1,60,10,1], // [min, max, default value, trailing decimals (-1 for whole numbers only)] | ||
true, // isGlobal | ||
{[QGVAR(defaultLockpickStrength), _this] call EFUNC(common,cbaSettings_settingChanged)} | ||
] call CBA_settings_fnc_init; | ||
|
||
[ | ||
QGVAR(lockVehicleInventory), "CHECKBOX", | ||
[LSTRING(LockVehicleInventory_DisplayName), LSTRING(LockVehicleInventory_Description)], | ||
LSTRING(DisplayName), | ||
false, // default value | ||
true, // isGlobal | ||
{[QGVAR(lockVehicleInventory), _this] call EFUNC(common,cbaSettings_settingChanged)} | ||
] call CBA_settings_fnc_init; | ||
|
||
[ | ||
QGVAR(vehicleStartingLockState), "LIST", | ||
[LSTRING(VehicleStartingLockState_DisplayName), LSTRING(VehicleStartingLockState_Description)], | ||
LSTRING(DisplayName), | ||
[[-1,0,1,2],["str_cfg_envsounds_default", LSTRING(VehicleStartingLockState_AsIs), LSTRING(VehicleStartingLockState_Locked), LSTRING(VehicleStartingLockState_Unlocked)], 0], // [values, titles, defaultIndex] | ||
true, // isGlobal | ||
{[QGVAR(vehicleStartingLockState), _this] call EFUNC(common,cbaSettings_settingChanged)} | ||
] call CBA_settings_fnc_init; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters