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

◆ FindTexts()

void CheckLocalisationPlugin::FindTexts ( WidgetSource src)
inlineprivate

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

8 {
9 if (src)
10 {
11 int idx = src.VarIndex("text");
12
13 if (idx != -1)
14 {
15 string text;
16 if (src.Get(idx, text) && !text.Contains("#"))
17 {
18 m_results.Insert("Text = \"" + text + "\" in Widget: " + src.GetName());
19 }
20 }
21
23 FindTexts(src.GetSibling());
24 }
25 }
void FindTexts(WidgetSource src)
Определения CheckLocTool.c:7
ref array< string > m_results
Определения CheckLocTool.c:4
proto native WidgetSource GetSibling()
proto bool Get(int varIndex, out void val)
proto native WidgetSource GetChildren()
proto native owned string GetName()
proto native int VarIndex(string varName)
bool Contains(string sample)
Returns true if sample is substring of string.
Определения EnString.c:286

Перекрестные ссылки string::Contains(), FindTexts(), BaseContainer::Get(), WidgetSource::GetChildren(), BaseContainer::GetName(), WidgetSource::GetSibling(), m_results и BaseContainer::VarIndex().

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