DayZ 1.24
Loading...
Searching...
No Matches
CreditsElement Class Reference
Collaboration diagram for CreditsElement:
[legend]

Protected Member Functions

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

Protected Attributes

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

Private Member Functions

void CreditsGraphicalElement (int index, Widget parent)
 

Detailed Description

Definition at line 1 of file CreditsDepartmentElement.c.

Member Function Documentation

◆ CreditsDepartmentElement()

void CreditsElement::CreditsDepartmentElement ( int index,
Widget parent,
JsonDataCreditsDepartment department_data )
inlineprotected

Definition at line 7 of file CreditsDepartmentElement.c.

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 m_DepartmentTitle.SetText(department_data.DepartmentName);
15 else
16 {
17 m_DepartmentTitle.Show(false);
18 m_Root.FindAnyWidget("SeparatorPanel").Show(false);
19 }
20
21 m_Root.SetSort(index);
23 }
Widget m_Root
Definition SizeToChild.c:85
void LoadDataAsync(array< ref JsonDataCreditsSection > department_data)
GridSpacerWidget m_DepartmentSections
proto native CGame GetGame()

References GetGame(), LoadDataAsync(), and m_Root.

◆ CreditsGraphicalElement()

void CreditsElement::CreditsGraphicalElement ( int index,
Widget parent )
inlineprivate

Definition at line 3 of file CreditsGraphicalElement.c.

4 {
5
6 }

◆ LoadDataAsync()

void CreditsElement::LoadDataAsync ( array< ref JsonDataCreditsSection > department_data)
inlineprotected

Definition at line 25 of file CreditsDepartmentElement.c.

26 {
27 for (int i = 1; i <= department_data.Count(); i++)
28 {
31 }
32
33 m_DepartmentSections.Update();
34 }
void CreditsDepartmentSection(int index, Widget parent, JsonDataCreditsSection section_data)
ref array< ref CreditsDepartmentSection > m_DepartmentSectionEntries

References CreditsDepartmentSection().

Referenced by CreditsDepartmentElement(), and CreditsDepartmentSection().

Member Data Documentation

◆ m_DepartmentSectionEntries

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

Definition at line 5 of file CreditsDepartmentElement.c.

◆ m_DepartmentSections

GridSpacerWidget CreditsElement::m_DepartmentSections
protected

Definition at line 4 of file CreditsDepartmentElement.c.

◆ m_DepartmentTitle

TextWidget CreditsElement::m_DepartmentTitle
protected

Definition at line 3 of file CreditsDepartmentElement.c.


The documentation for this class was generated from the following files: