DayZ 1.26
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
Файл CreditsDepartmentElement.c

См. исходные тексты.

Структуры данных

class  CreditsElement
 

Функции

void CreditsDepartmentSection (int index, Widget parent, JsonDataCreditsSection section_data)
 
void LoadDataAsync (array< string > section_data)
 

Переменные

class CreditsDepartmentElement extends CreditsElement m_SectionTitle
 
WrapSpacerWidget m_SectionSections
 
ref array< Widgetm_SectionEntries = new array<Widget>
 

Функции

◆ CreditsDepartmentSection()

void CreditsDepartmentSection ( int index,
Widget parent,
JsonDataCreditsSection section_data )
protected
46 {
47 m_Root = GetGame().GetWorkspace().CreateWidgets( "gui/layouts/new_ui/credits/department_element/department_section.layout", parent );
48 m_SectionTitle = TextWidget.Cast( m_Root.FindAnyWidget( "section_title" ) );
49 m_SectionSections = WrapSpacerWidget.Cast( m_Root.FindAnyWidget( "section_elements" ) );
50
51 if( section_data.SectionName != "" )
52 {
53 m_SectionTitle.SetText( section_data.SectionName );
54 }
55 else
56 {
57 m_SectionTitle.Show( false );
58 m_Root.FindAnyWidget( "SeparatorPanel" ).Show( false );
59 }
60
61 LoadDataAsync( section_data.SectionLines );
62 m_Root.SetSort( index );
63 }
WrapSpacerWidget m_SectionSections
Definition CreditsDepartmentElement.c:42
class CreditsDepartmentElement extends CreditsElement m_SectionTitle
void LoadDataAsync(array< string > section_data)
Definition CreditsDepartmentElement.c:65
Widget m_Root
Definition SizeToChild.c:91
Definition EntityAI.c:95
Definition EnWidgets.c:220
proto native CGame GetGame()

Перекрестные ссылки GetGame(), CreditsElement::LoadDataAsync(), m_Root, m_SectionSections и m_SectionTitle.

Используется в CreditsElement::LoadDataAsync().

◆ LoadDataAsync()

void LoadDataAsync ( array< string > section_data)
protected
66 {
67 for( int i = 1; i <= section_data.Count(); i++ )
68 {
69 TextWidget w = TextWidget.Cast( GetGame().GetWorkspace().CreateWidgets( "gui/layouts/new_ui/credits/department_element/department_section_element.layout", m_SectionSections ) );
70 w.SetText( section_data.Get( i - 1 ) + " \n" );
71 w.Update();
72 m_Root.SetSort( i );
73 m_SectionEntries.Insert( w );
74 }
75
76 m_SectionSections.Update();
77 }
ref array< Widget > m_SectionEntries
Definition CreditsDepartmentElement.c:43

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

Переменные

◆ m_SectionEntries

ref array<Widget> m_SectionEntries = new array<Widget>
protected

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

◆ m_SectionSections

WrapSpacerWidget m_SectionSections
protected

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

◆ m_SectionTitle

class CreditsDepartmentElement extends CreditsElement m_SectionTitle

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