mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Polished server config export
This commit is contained in:
parent
f1a3d588ba
commit
bae3826bdf
@ -57,3 +57,5 @@ class %1 {
|
||||
} forEach EGVAR(common,settings);
|
||||
|
||||
copyToClipboard format["%1",_compiledConfig];
|
||||
|
||||
["STR_ACE_OptionsMenu_settingsExported"] call EFUNC(common,displayTextStructured);
|
||||
|
@ -59,3 +59,8 @@ disableSerialization;
|
||||
_menu = uiNamespace getvariable "ACE_serverSettingsMenu";
|
||||
(_menu displayCtrl 1003) ctrlEnable false;
|
||||
|
||||
if (GVAR(ClientSettingsExportIncluded)) then {
|
||||
(_settingsMenu displayCtrl 1102) ctrlSetText localize ("STR_ACE_OptionsMenu_exClientSettings");
|
||||
} else {
|
||||
(_settingsMenu displayCtrl 1102) ctrlSetText localize ("STR_ACE_OptionsMenu_inClientSettings");
|
||||
};
|
||||
|
@ -15,13 +15,4 @@
|
||||
|
||||
GVAR(ClientSettingsExportIncluded) = !(GVAR(ClientSettingsExportIncluded));
|
||||
|
||||
private "_settingsMenu";
|
||||
disableSerialization;
|
||||
_settingsMenu = uiNamespace getVariable 'ACE_serverSettingsMenu';
|
||||
if (GVAR(ClientSettingsExportIncluded)) then {
|
||||
(_settingsMenu displayCtrl 1102) ctrlSetText localize ("STR_ACE_OptionsMenu_exClientSettings");
|
||||
} else {
|
||||
(_settingsMenu displayCtrl 1102) ctrlSetText localize ("STR_ACE_OptionsMenu_inClientSettings");
|
||||
};
|
||||
|
||||
[] call FUNC(onServerSettingsMenuOpen);
|
||||
|
@ -100,5 +100,8 @@
|
||||
<Key ID="STR_ACE_OptionsMenu_exClientSettings">
|
||||
<English>Exclude Client Settings</English>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_OptionsMenu_settingsExported">
|
||||
<English>Settings exported to clipboard</English>
|
||||
</Key>
|
||||
</Package>
|
||||
</Project>
|
Loading…
Reference in New Issue
Block a user