4 protected GridSpacerWidget m_DepartmentSections;
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" ) );
13 if( department_data.DepartmentName !=
"" )
15 m_DepartmentTitle.SetText( department_data.DepartmentName );
19 m_DepartmentTitle.Show(
false );
20 m_Root.FindAnyWidget(
"SeparatorPanel" ).Show(
false );
29 for(
int i = 1; i <= department_data.Count(); i++ )
32 m_DepartmentSectionEntries.Insert( e );
35 m_DepartmentSections.Update();
47 m_Root =
GetGame().GetWorkspace().CreateWidgets(
"gui/layouts/new_ui/credits/department_element/department_section.layout", parent );
51 if( section_data.SectionName !=
"" )
58 m_Root.FindAnyWidget(
"SeparatorPanel" ).Show(
false );
67 for(
int i = 1; i <= section_data.Count(); i++ )
70 w.SetText( section_data.Get( i - 1 ) +
" \n" );