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

◆ UpdateChild()

void RadialProgressBar::UpdateChild ( Widget child,
int index )
inlineprotected

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

54 {
55 float rotation_value = ( m_Anim.GetTargetValue() * Math.RAD2DEG );
56 if( child.GetName() == m_BarHider )
57 {
58 if( stage == 0 )
59 {
60 if( rotation > 0 )
61 {
62 child.GetChildren().Show(true);
63 }
64 else
65 {
66 child.GetChildren().Show(false);
67 }
68
69 child.GetChildren().SetRotation( 0, 0, start_rotation + rotation);
70
71 if( rotation > 180 )
72 {
73 stage = 1;
74 child.GetChildren().SetRotation(0, 0, 360);
75 }
76
77 }
78 }
79 else if( child.GetName() == m_BarPart )
80 {
81 if( stage == 0 )
82 child.Show( false );
83 if( stage == 1 )
84 {
85 child.Show( true );
86 child.SetRotation( 0, 0, start_rotation + rotation );
87
88 if( rotation > 360 )
89 {
90 stage = 2;
91 child.SetRotation( 0, 0, 180 );
92 }
93 }
94 }
95 }
string m_BarPart
Определения RadialProgressBar.c:8
string m_BarHider
Определения RadialProgressBar.c:7
reference float start_rotation
Определения RadialProgressBar.c:5
ref AnimatorTimer m_Anim
Определения RadialProgressBar.c:10
float rotation
Определения RadialProgressBar.c:12
int stage
Определения RadialProgressBar.c:13

Перекрестные ссылки m_Anim, m_BarHider, m_BarPart, Math::RAD2DEG, rotation, stage и start_rotation.

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