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

◆ RefreshContent()

void ScriptedWidgetEventHandler::RefreshContent ( )
inlineprotected

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

39 {
40 Widget child = m_ContentContainer.GetChildren();
41 while( child )
42 {
43 if( m_Content.Find( child ) > -1 )
44 {
45 m_Content.Insert( child );
46 }
47 }
48
49 m_ContentContainer.Update();
50 m_Root.Update();
51
52 float x, y;
53 m_ContentContainer.GetScreenSize( x, y );
54 if( y > m_Scroller.GetContentHeight() )
55 {
56 m_Scroller.SetAlpha( 1 );
57 }
58 else
59 {
60 m_Scroller.SetAlpha( 0 );
61 }
62 }
Icon x
Icon y
Widget m_ContentContainer
Определения DropdownPrefab.c:6
Widget m_Root
Определения SizeToChild.c:9
ScrollWidget m_Scroller
Определения DropdownPrefab.c:5
WorkspaceWidget Widget
Defined in code.

Перекрестные ссылки m_Content, m_ContentContainer, m_Root, m_Scroller, x и y.

Используется в DropdownPrefab().