mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Merge pull request #1322 from acemod/SendSettingsDirectlyInsteadOfSplitting
Send directly to extension instead of splitting it
This commit is contained in:
commit
5df9bb4a60
@ -18,8 +18,6 @@
|
||||
|
||||
private ["_compiledConfig", "_name", "_typeName", "_isClientSetable", "_localizedName", "_localizedDescription", "_possibleValues", "_defaultValue", "_value", "_compiledConfigEntry"];
|
||||
|
||||
_compiledConfig = "
|
||||
";
|
||||
{
|
||||
/*_settingData = [
|
||||
_name,
|
||||
@ -55,25 +53,11 @@ class %1 {
|
||||
force = 1;
|
||||
};", _name, _value, format['"%1"', _typeName]];
|
||||
|
||||
_compiledConfig = _compiledConfig + _compiledConfigEntry;
|
||||
"ace_clipboard" callExtension _compiledConfigEntry;
|
||||
};
|
||||
} forEach EGVAR(common,settings);
|
||||
|
||||
FUNC(clipboardExport) = {
|
||||
private["_chunks"];
|
||||
_chunks = [];
|
||||
|
||||
_chunks = [_this select 0, ";"] call CBA_fnc_split;
|
||||
|
||||
{
|
||||
private["_chunk"];
|
||||
_chunk = _x + ";";
|
||||
"ace_clipboard" callExtension format["%1", _chunk];
|
||||
} forEach _chunks;
|
||||
|
||||
"ace_clipboard" callExtension "--COMPLETE--";
|
||||
};
|
||||
[_compiledConfig] call FUNC(clipboardExport);
|
||||
"ace_clipboard" callExtension "--COMPLETE--";
|
||||
|
||||
["STR_ACE_OptionsMenu_settingsExported"] call EFUNC(common,displayTextStructured);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user