setting to disable the cratefiller
This commit is contained in:
parent
1775f00c5b
commit
1dfb042cf9
|
@ -18,6 +18,7 @@
|
|||
"KPLIB_param_aceResupply",
|
||||
"KPLIB_param_ammoInfluence",
|
||||
"KPLIB_param_arsenalType",
|
||||
"KPLIB_param_cratefiller",
|
||||
"KPLIB_param_clearVehicleCargo",
|
||||
"KPLIB_param_commanderZeusMode",
|
||||
"KPLIB_param_copyDistance",
|
||||
|
|
|
@ -57,7 +57,7 @@ if (isServer) then {
|
|||
[
|
||||
"Cratefiller",
|
||||
{
|
||||
if ([player, "Cratefiller"] call KPLIB_fnc_permission_getPermission) then {
|
||||
if ([player, "Cratefiller"] call KPLIB_fnc_permission_getPermission && KPLIB_param_cratefiller) then {
|
||||
closeDialog 0;
|
||||
[] call KPLIB_fnc_cratefiller_openDialog;
|
||||
} else {
|
||||
|
|
|
@ -25,7 +25,12 @@ private _ctrlStorage = _dialog displayCtrl 75802;
|
|||
lbClear _ctrlStorage;
|
||||
|
||||
// Get near objects and check for storage capacity
|
||||
private ["_type", "_config", "_number", "_index", "_picture", "_storages"];
|
||||
private _type = objNull;
|
||||
private _config = "";
|
||||
private _number= 0;
|
||||
private _index = 0;
|
||||
private _picture = "";
|
||||
private _storages = [];
|
||||
|
||||
private _nearFOB = [player] call KPLIB_fnc_common_getPlayerFob;
|
||||
{
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
File: fn_cratefiller_settings.sqf
|
||||
Author: KP Liberation Dev Team - https://github.com/KillahPotatoes
|
||||
Date: 2019-04-05
|
||||
Last Update: 2019-04-05
|
||||
Last Update: 2019-04-06
|
||||
License: GNU General Public License v3.0 - https://www.gnu.org/licenses/gpl-3.0.html
|
||||
|
||||
Description:
|
||||
|
@ -21,14 +21,14 @@
|
|||
----- CRATEFILLER SETTINGS -----
|
||||
*/
|
||||
|
||||
// KPLIB_param_example
|
||||
// This is an example setting.
|
||||
// KPLIB_param_cratefiller
|
||||
// Enables/Disables the cratefiller.
|
||||
// Default: true
|
||||
[
|
||||
"KPLIB_param_example",
|
||||
"KPLIB_param_cratefiller",
|
||||
"CHECKBOX",
|
||||
["Example Setting Name", "Example Setting Tooltip"],
|
||||
"Example Setting Category",
|
||||
[localize "STR_KPLIB_SETTINGS_CRATEFILLER_ACTIVATE", localize "STR_KPLIB_SETTINGS_CRATEFILLER_ACTIVATE_TT"],
|
||||
localize "STR_KPLIB_SETTINGS_CRATEFILLER",
|
||||
true,
|
||||
1,
|
||||
{}
|
||||
|
|
|
@ -1542,6 +1542,20 @@
|
|||
<English>Defines the price of 1000 fuel cargo for ACE refuel vehicles.</English>
|
||||
<German>Definiert die Kosten für 1000 Treibstoffvorrat für ein ACE Tank Fahrzeug.</German>
|
||||
</Key>
|
||||
|
||||
<!-- CRATEFILLER CATEGORY -->
|
||||
<Key ID="STR_KPLIB_SETTINGS_CRATEFILLER">
|
||||
<English>KPLIB - Cratefiller</English>
|
||||
<German>KPLIB - Kistenfüller</German>
|
||||
</Key>
|
||||
<Key ID="STR_KPLIB_SETTINGS_CRATEFILLER_ACTIVATE">
|
||||
<English>Enable Cratefiller</English>
|
||||
<German>Kistenfüller aktivieren</German>
|
||||
</Key>
|
||||
<Key ID="STR_KPLIB_SETTINGS_CRATEFILLER_ACTIVATE_TT">
|
||||
<English>Enables/Disables the Liberation cratefiller.</English>
|
||||
<German>Aktiviert/Deaktiviert den Liberation Kistenfüller.</German>
|
||||
</Key>
|
||||
</Package>
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue