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

◆ Update() [2/2]

override void Hud::Update ( float timeslice)
inlineprotected

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

1139 {
1140 super.Update( timeslice );
1141
1142 m_ActionTargetsCursor.Update();
1144 //
1145 //modifiers - tendency status (critical)
1147 {
1148 //get color & alpha
1149 if ( m_TendencyStatusCritical.Count() > 0 )
1150 {
1151 for ( int i = 0; i < m_TendencyStatusCritical.Count(); ++i )
1152 {
1153
1154 ImageWidget widget = m_TendencyStatusCritical.GetKey( i );
1155 int alpha = widget.GetAlpha() * 255;
1156 int color;
1157 int colorA = ARGB( alpha, 255, 255, 255 );
1158 int colorB = m_TendencyStatusCritical.Get( widget );
1159
1160 //set new color to different color
1161 if ( widget.GetColor() == colorA )
1162 {
1163 color = colorB;
1164 }
1165 else
1166 {
1167 color = colorA;
1168 }
1169
1170 widget.SetColor( color );
1171 }
1172 }
1173
1174 m_BlinkTime = 0; //reset
1175 }
1176 else
1177 {
1178 m_BlinkTime += timeslice;
1179 }
1180
1182 {
1183 m_TemperatureTimer += timeslice;
1185 {
1187 }
1188 }
1189
1190 if ( !m_IsStaminaVisible )
1191 {
1192 m_StaminaTimer += timeslice;
1194 {
1196 }
1197
1198 }
1199
1200 if ( m_HitDirEffectArray && m_HitDirEffectArray.Count() > 0 )
1201 {
1202 UpdateHitDirEffects(timeslice);
1204 }
1205
1206 RefreshVehicleHud(timeslice);
1207
1208 if (!m_HudVisibility.IsContextFlagActive(IngameHudVisibility.HUD_HIDE_FLAGS) && m_HeatBufferUI && m_HeatBufferUI.CanUpdate())
1209 m_HeatBufferUI.Update(timeslice);
1210
1211 #ifdef PLATFORM_PS4
1213 ShowPlayerTag(timeslice);
1214 #endif
1215 }
void RefreshVehicleHud(float timeslice)
Определения IngameHud.c:841
ref array< ref HitDirectionEffectBase > m_HitDirEffectArray
Определения IngameHud.c:110
float m_StaminaTimer
Определения IngameHud.c:24
void ShowPlayerTag(float timeslice)
Определения IngameHud.c:1096
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:646
const float TENDENCY_BLINK_TIME
Определения IngameHud.c:11
void RefreshPlayerTags()
Определения IngameHud.c:1056
float m_StaminaShowTime
Определения IngameHud.c:25
bool m_IsTemperatureVisible
Определения IngameHud.c:18
ActionTargetsCursor m_ActionTargetsCursor
Определения IngameHud.c:98
ref IngameHudVisibility m_HudVisibility
Определения IngameHud.c:113
void HideTemperature()
Определения IngameHud.c:637
void SetStaminaBarVisibility(bool show)
float m_TemperatureShowTime
Определения IngameHud.c:20
void UpdateHitDirEffects(float timeslice)
Определения IngameHud.c:1233
bool m_IsStaminaVisible
Определения IngameHud.c:23
float m_TemperatureTimer
Определения IngameHud.c:19
void CleanupHitDirEffects()
Определения IngameHud.c:1241
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_HudVisibility, m_IsStaminaVisible, m_IsTemperatureVisible, m_StaminaShowTime, m_StaminaTimer, m_TemperatureShowTime, m_TemperatureTimer, m_TendencyStatusCritical, RefreshPlayerTags(), RefreshVehicleHud(), SetStaminaBarVisibility(), ShowPlayerTag(), TENDENCY_BLINK_TIME и UpdateHitDirEffects().