DayZ 1.30
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ LimitTextBoxCharacterCount()

bool ScriptedWidgetEventHandler::LimitTextBoxCharacterCount ( out string text,
int max_length )
inlineprotected

Limits the given text to 'max_length' character count. Returns true if any change was done to the input.

См. определение в файле ServerBrowserFilterContainer.c строка 274

275 {
276 int length = text.Length();
277 bool was_text_changed = false;
278
279 if (length > max_length)
280 {
281 text = text.Substring(0, max_length);
282 was_text_changed = true;
283 }
284
285 return was_text_changed;
286 }

Используется в GenerateValidFilter() и ProcessIntoIPAddress().