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

◆ AddElement()

int ScriptedWidgetEventHandler::AddElement ( string text,
Widget content = null )
inlineprotected

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

65 {
66 ButtonWidget element = ButtonWidget.Cast( GetGame().GetWorkspace().CreateWidgets( "gui/layouts/new_ui/dropdown_prefab/dropdown_element.layout", m_ContentContainer ) );
67 RichTextWidget textWidget = RichTextWidget.Cast(element.FindAnyWidget("dropdown_element_text"));
68 textWidget.SetText( text );
69
70 if( content )
71 {
72 element.AddChild( content, false );
73 }
74 m_ContentContainer.Update();
75 textWidget.Update();
76 m_Root.Update();
77 element.Update();
78
79 m_Content.Insert( element );
80 return m_Content.Count() - 1;
81 }
Widget m_ContentContainer
Определения DropdownPrefab.c:6
Widget m_Root
Определения SizeToChild.c:9
proto native CGame GetGame()

Перекрестные ссылки GetGame(), m_Content, m_ContentContainer и m_Root.

Используется в array< string >::AddSubgroup().