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

Защищенные члены

void CreditsDepartmentElement (int index, Widget parent, JsonDataCreditsDepartment department_data)
 
void LoadDataAsync (array< ref JsonDataCreditsSection > department_data)
 

Защищенные данные

TextWidget m_DepartmentTitle
 
GridSpacerWidget m_DepartmentSections
 
ref array< ref CreditsDepartmentSectionm_DepartmentSectionEntries = new array<ref CreditsDepartmentSection>
 

Закрытые члены

void CreditsGraphicalElement (int index, Widget parent)
 

Подробное описание

Методы

◆ CreditsDepartmentElement()

void CreditsDepartmentElement ( int index,
Widget parent,
JsonDataCreditsDepartment department_data )
inlineprotected
8 {
9 m_Root = GetGame().GetWorkspace().CreateWidgets( "gui/layouts/new_ui/credits/department_element/department_element.layout", parent );
10 m_DepartmentTitle = TextWidget.Cast( m_Root.FindAnyWidget( "department_title" ) );
11 m_DepartmentSections = GridSpacerWidget.Cast( m_Root.FindAnyWidget( "department_sections" ) );
12
13 if( department_data.DepartmentName != "" )
14 {
15 m_DepartmentTitle.SetText( department_data.DepartmentName );
16 }
17 else
18 {
19 m_DepartmentTitle.Show( false );
20 m_Root.FindAnyWidget( "SeparatorPanel" ).Show( false );
21 }
22
23 m_Root.SetSort( index );
25 }
Widget m_Root
Definition SizeToChild.c:91
GridSpacerWidget m_DepartmentSections
Definition CreditsDepartmentElement.c:4
TextWidget m_DepartmentTitle
Definition CreditsDepartmentElement.c:3
void LoadDataAsync(array< ref JsonDataCreditsSection > department_data)
Definition CreditsDepartmentElement.c:27
Definition EntityAI.c:95
Definition EnWidgets.c:220
proto native CGame GetGame()

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

◆ CreditsGraphicalElement()

void CreditsGraphicalElement ( int index,
Widget parent )
inlineprivate
4 {
5
6 }

◆ LoadDataAsync()

void LoadDataAsync ( array< ref JsonDataCreditsSection > department_data)
inlineprotected
28 {
29 for( int i = 1; i <= department_data.Count(); i++ )
30 {
33 }
34
35 m_DepartmentSections.Update();
36 }
void CreditsDepartmentSection(int index, Widget parent, JsonDataCreditsSection section_data)
Definition CreditsDepartmentElement.c:45
ref array< ref CreditsDepartmentSection > m_DepartmentSectionEntries
Definition CreditsDepartmentElement.c:5

Перекрестные ссылки CreditsDepartmentSection().

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

Поля

◆ m_DepartmentSectionEntries

ref array<ref CreditsDepartmentSection> m_DepartmentSectionEntries = new array<ref CreditsDepartmentSection>
protected

◆ m_DepartmentSections

GridSpacerWidget m_DepartmentSections
protected

◆ m_DepartmentTitle

TextWidget m_DepartmentTitle
protected

Объявления и описания членов классов находятся в файлах: