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

◆ Update() [2/2]

override void Hud::Update ( float timeslice)
inlineprotected

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

1142 {
1143 super.Update( timeslice );
1144
1145 m_ActionTargetsCursor.Update();
1147 //
1148 //modifiers - tendency status (critical)
1150 {
1151 //get color & alpha
1152 if ( m_TendencyStatusCritical.Count() > 0 )
1153 {
1154 for ( int i = 0; i < m_TendencyStatusCritical.Count(); ++i )
1155 {
1156
1157 ImageWidget widget = m_TendencyStatusCritical.GetKey( i );
1158 int alpha = widget.GetAlpha() * 255;
1159 int color;
1160 int colorA = ARGB( alpha, 255, 255, 255 );
1161 int colorB = m_TendencyStatusCritical.Get( widget );
1162
1163 //set new color to different color
1164 if ( widget.GetColor() == colorA )
1165 {
1166 color = colorB;
1167 }
1168 else
1169 {
1170 color = colorA;
1171 }
1172
1173 widget.SetColor( color );
1174 }
1175 }
1176
1177 m_BlinkTime = 0; //reset
1178 }
1179 else
1180 {
1181 m_BlinkTime += timeslice;
1182 }
1183
1185 {
1186 m_TemperatureTimer += timeslice;
1188 {
1190 }
1191 }
1192
1193 if ( !m_IsStaminaVisible )
1194 {
1195 m_StaminaTimer += timeslice;
1197 {
1199 }
1200
1201 }
1202
1203 if ( m_HitDirEffectArray && m_HitDirEffectArray.Count() > 0 )
1204 {
1205 UpdateHitDirEffects(timeslice);
1207 }
1208
1209 RefreshVehicleHud(timeslice);
1210
1211 if (m_HeatBufferUI && m_HeatBufferUI.CanUpdate())
1212 m_HeatBufferUI.Update(timeslice);
1213
1214 #ifdef PLATFORM_PS4
1216 ShowPlayerTag(timeslice);
1217 #endif
1218 }
void RefreshVehicleHud(float timeslice)
Определения IngameHud.c:844
ref array< ref HitDirectionEffectBase > m_HitDirEffectArray
Определения IngameHud.c:110
float m_StaminaTimer
Определения IngameHud.c:24
void ShowPlayerTag(float timeslice)
Определения IngameHud.c:1099
ref IngameHudHeatBuffer m_HeatBufferUI
Определения IngameHud.c:112
ref map< ImageWidget, int > m_TendencyStatusCritical
Определения IngameHud.c:10
float m_BlinkTime
Определения IngameHud.c:12
void DisplayPresence()
Определения gameplay.c:645
const float TENDENCY_BLINK_TIME
Определения IngameHud.c:11
void RefreshPlayerTags()
Определения IngameHud.c:1059
float m_StaminaShowTime
Определения IngameHud.c:25
bool m_IsTemperatureVisible
Определения IngameHud.c:18
ActionTargetsCursor m_ActionTargetsCursor
Определения IngameHud.c:98
void HideTemperature()
Определения IngameHud.c:640
void SetStaminaBarVisibility(bool show)
float m_TemperatureShowTime
Определения IngameHud.c:20
void UpdateHitDirEffects(float timeslice)
Определения IngameHud.c:1236
bool m_IsStaminaVisible
Определения IngameHud.c:23
float m_TemperatureTimer
Определения IngameHud.c:19
void CleanupHitDirEffects()
Определения IngameHud.c:1244
int ARGB(int a, int r, int g, int b)
Определения proto.c:322

Перекрестные ссылки ARGB(), CleanupHitDirEffects(), DisplayPresence(), HideTemperature(), m_ActionTargetsCursor, m_BlinkTime, m_HeatBufferUI, m_HitDirEffectArray, m_IsStaminaVisible, m_IsTemperatureVisible, m_StaminaShowTime, m_StaminaTimer, m_TemperatureShowTime, m_TemperatureTimer, m_TendencyStatusCritical, RefreshPlayerTags(), RefreshVehicleHud(), SetStaminaBarVisibility(), ShowPlayerTag(), TENDENCY_BLINK_TIME и UpdateHitDirEffects().