mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Added fail save for incorrect string value input
This commit is contained in:
parent
e7a607ca35
commit
25597704ed
@ -17,10 +17,12 @@ PREP(settingsMenuUpdateKeyView);
|
||||
PREP(settingsMenuUpdateList);
|
||||
PREP(serverSettingsMenuUpdateKeyView);
|
||||
PREP(serverSettingsMenuUpdateList);
|
||||
PREP(onServerCategorySelectChanged);
|
||||
PREP(updateSetting);
|
||||
PREP(exportSettings);
|
||||
PREP(toggleIncludeClientSettings);
|
||||
PREP(moduleAllowConfigExport);
|
||||
PREP(stringEscape);
|
||||
|
||||
GVAR(clientSideOptions) = [];
|
||||
GVAR(clientSideColors) = [];
|
||||
|
@ -29,7 +29,10 @@ switch (GVAR(optionMenu_openTab)) do {
|
||||
_settingName = _setting select 0;
|
||||
|
||||
_convertedValue = switch (toUpper (_setting select 1)) do {
|
||||
case "STRING": {format ['"%1"', _inputText]};
|
||||
case "STRING": {
|
||||
ctrlSetText [414, _inputText call FUNC(stringEscape)];
|
||||
format ['%1', _inputText call FUNC(stringEscape)];
|
||||
};
|
||||
case "ARRAY": {format [call compile "[%1]", _inputText]};
|
||||
case "SCALAR": {parseNumber _inputText;};
|
||||
default {throw "Error"};
|
||||
|
Loading…
Reference in New Issue
Block a user