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

◆ CreditsDepartmentSection()

void CreditsDepartmentSection ( int index,
Widget parent,
JsonDataCreditsSection section_data )
protected

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

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
Определения CreditsDepartmentElement.c:42
class CreditsDepartmentElement extends CreditsElement m_SectionTitle
void LoadDataAsync(array< string > section_data)
Определения CreditsDepartmentElement.c:65
Widget m_Root
Определения SizeToChild.c:91
proto native WorkspaceWidget GetWorkspace()
string SectionName
Определения JsonDataCreditsSection.c:3
ref array< string > SectionLines
Определения JsonDataCreditsSection.c:4
Определения EnWidgets.c:220
proto native CGame GetGame()
proto native external Widget CreateWidgets(string layout, Widget parentWidget=NULL, bool immedUpdate=true)
Create widgets from *.layout file.

Перекрестные ссылки WorkspaceWidget::CreateWidgets(), GetGame(), CGame::GetWorkspace(), CreditsElement::LoadDataAsync(), m_Root, m_SectionSections, m_SectionTitle, JsonDataCreditsSection::SectionLines и JsonDataCreditsSection::SectionName.

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