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

◆ UpdateWeatherValues()

void UpdateWeatherValues ( )
protected

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

1368 {
1369 Weather weather = g_Game.GetWeather();
1370
1371 float overcast = weather.GetOvercast().GetActual();
1372 m_OvercastValueGetSlider.SetCurrent(overcast * 100);
1373 m_OvercastValueSetText.SetText(overcast.ToString());
1374
1375 float fog = weather.GetFog().GetActual();
1376 m_FogValueGetSlider.SetCurrent(fog * 100);
1377 m_FogValueSetText.SetText(fog.ToString());
1378
1379 float rain = weather.GetRain().GetActual();
1380 m_RainValueGetSlider.SetCurrent(rain * 100);
1381 m_RainValueSetText.SetText(rain.ToString());
1382
1383 float snowfall = weather.GetSnowfall().GetActual();
1384 m_SnowfallValueGetSlider.SetCurrent(snowfall * 100);
1385 m_SnowfallValueSetText.SetText(snowfall.ToString());
1386
1387 float volFogDistanceDensity = weather.GetDynVolFogDistanceDensity();
1388 //m_VolFogDistanceDensitySlider.SetCurrent(volFogDistanceDensity * 100);
1389 m_VolFogDistanceDensitySetText.SetText(volFogDistanceDensity.ToString());
1390
1391 float volFogHeightDensity = weather.GetDynVolFogHeightDensity();
1392 //m_VolFogHeightDensitySlider.SetCurrent(volFogHeightDensity * 100);
1393 m_VolFogHeightDensitySetText.SetText(volFogHeightDensity.ToString());
1394
1395 float volFogHeightBias = weather.GetDynVolFogHeightBias();
1396 //m_VolFogHeightBiasSlider.SetCurrent(volFogHeightBias * 100);
1397 m_VolFogHeightBiasSetText.SetText(volFogHeightBias.ToString());
1398
1399 float windMagnitude = weather.GetWindMagnitude().GetActual();
1400 m_WindMValueGetSlider.SetCurrent(windMagnitude);
1401 m_WindMValueSetText.SetText(windMagnitude.ToString());
1402
1403 float windDirection = weather.GetWindDirection().GetActual();
1404 m_WindDValueGetSlider.SetCurrent(windDirection);
1405 m_WindDValueSetText.SetText(windDirection.ToString());
1406
1407 bool isActive = weather.GetSandstorm().IsActive();
1408 if (isActive)
1409 {
1410 Sandstorm sandstorm = weather.GetSandstorm();
1411 if (sandstorm)
1412 {
1415 m_SandstormSpeedValue = sandstorm.GetSpeed();
1416
1419 m_StandstormSpeedText.SetText(m_SandstormSpeedValue.ToString());
1420 }
1421 }
1422 }
DayZGame g_Game
Определения DayZGame.c:4074
SandstormController Sandstorm
Определения Sandstorm.c:135
SliderWidget m_SnowfallValueGetSlider
Определения ScriptConsoleWeatherTab.c:77
SliderWidget m_OvercastValueGetSlider
Определения ScriptConsoleWeatherTab.c:37
float m_SandstormDurationTimeValue
Определения ScriptConsoleWeatherTab.c:192
float m_SandstormSpeedValue
Определения ScriptConsoleWeatherTab.c:193
TextWidget m_VolFogHeightDensitySetText
Определения ScriptConsoleWeatherTab.c:112
TextWidget m_WindMValueSetText
Определения ScriptConsoleWeatherTab.c:143
TextWidget m_VolFogHeightBiasSetText
Определения ScriptConsoleWeatherTab.c:124
TextWidget m_VolFogDistanceDensitySetText
Определения ScriptConsoleWeatherTab.c:100
SliderWidget m_FogValueGetSlider
Определения ScriptConsoleWeatherTab.c:17
TextWidget m_StandstormMagnitudeText
Определения ScriptConsoleWeatherTab.c:180
float m_SandstormMagnitudeValue
Определения ScriptConsoleWeatherTab.c:191
TextWidget m_SnowfallValueSetText
Определения ScriptConsoleWeatherTab.c:79
SliderWidget m_RainValueGetSlider
Определения ScriptConsoleWeatherTab.c:57
TextWidget m_FogValueSetText
Определения ScriptConsoleWeatherTab.c:19
SliderWidget m_WindMValueGetSlider
Определения ScriptConsoleWeatherTab.c:141
TextWidget m_StandstormDurationText
Определения ScriptConsoleWeatherTab.c:181
TextWidget m_RainValueSetText
Определения ScriptConsoleWeatherTab.c:59
TextWidget m_OvercastValueSetText
Определения ScriptConsoleWeatherTab.c:39
TextWidget m_WindDValueSetText
Определения ScriptConsoleWeatherTab.c:163
SliderWidget m_WindDValueGetSlider
Определения ScriptConsoleWeatherTab.c:161
TextWidget m_StandstormSpeedText
Определения ScriptConsoleWeatherTab.c:182
proto native float GetRemainingMovementDuration()
Returns the remaining movement duration until the sandstorm reached its end (final) position at its c...
proto native float GetSpeed()
Returns the speed in m/s at which the sandstorm advances. The sandstorm must be active prior to this ...
proto native bool IsActive()
Returns whether sandstorm is currently active.
proto native float GetMagnitude()
Returns the magnitude of the sandstorm - the intensity independent of its position.
proto native Fog GetFog()
Returns a fog phenomenon object.
proto native float GetDynVolFogHeightBias()
Returns the current 'dynamic' volumetric fog height bias in meters.
proto native WindMagnitude GetWindMagnitude()
Returns a wind magnitude phenomenon object.
proto native Sandstorm GetSandstorm()
Returns the sandstorm phenomenon weather controller.
proto native Snowfall GetSnowfall()
Returns a snowfall phenomenon object.
proto native WindDirection GetWindDirection()
Returns a wind direction phenomenon object.
proto native Rain GetRain()
Returns a rain phenomenon object.
proto native Overcast GetOvercast()
Returns an overcast phenomenon object.
proto native float GetDynVolFogHeightDensity()
Returns the current 'dynamic' volumetric fog height density.
proto native float GetDynVolFogDistanceDensity()
Returns the current 'dynamic' volumetric fog distance density.
Определения Weather.c:168
proto native float GetActual()
proto string ToString(bool simple=true)

Перекрестные ссылки g_Game, WeatherPhenomenon::GetActual(), Weather::GetDynVolFogDistanceDensity(), Weather::GetDynVolFogHeightBias(), Weather::GetDynVolFogHeightDensity(), Weather::GetFog(), SandstormController::GetMagnitude(), Weather::GetOvercast(), Weather::GetRain(), SandstormController::GetRemainingMovementDuration(), Weather::GetSandstorm(), Weather::GetSnowfall(), SandstormController::GetSpeed(), Weather::GetWindDirection(), Weather::GetWindMagnitude(), SandstormController::IsActive(), m_FogValueGetSlider, m_FogValueSetText, m_OvercastValueGetSlider, m_OvercastValueSetText, m_RainValueGetSlider, m_RainValueSetText, m_SandstormDurationTimeValue, m_SandstormMagnitudeValue, m_SandstormSpeedValue, m_SnowfallValueGetSlider, m_SnowfallValueSetText, m_StandstormDurationText, m_StandstormMagnitudeText, m_StandstormSpeedText, m_VolFogDistanceDensitySetText, m_VolFogHeightBiasSetText, m_VolFogHeightDensitySetText, m_WindDValueGetSlider, m_WindDValueSetText, m_WindMValueGetSlider, m_WindMValueSetText и float::ToString().

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