DayZ 1.27
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 строка 278

279 {
280 int length = text.Length();
281 bool was_text_changed = false;
282
283 if (length > max_length)
284 {
285 text = text.Substring(0, max_length);
286 was_text_changed = true;
287 }
288
289 return was_text_changed;
290 }

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