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

◆ UpdateWeatherValues()

void UpdateWeatherValues ( )
protected

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

1256 {
1257 float overcast = GetGame().GetWeather().GetOvercast().GetActual();
1258 m_OvercastValueGetSlider.SetCurrent(overcast * 100);
1259 m_OvercastValueSetText.SetText(overcast.ToString());
1260
1261 float fog = GetGame().GetWeather().GetFog().GetActual();
1262 m_FogValueGetSlider.SetCurrent(fog * 100);
1263 m_FogValueSetText.SetText(fog.ToString());
1264
1265 float rain = GetGame().GetWeather().GetRain().GetActual();
1266 m_RainValueGetSlider.SetCurrent(rain * 100);
1267 m_RainValueSetText.SetText(rain.ToString());
1268
1269 float snowfall = GetGame().GetWeather().GetSnowfall().GetActual();
1270 m_SnowfallValueGetSlider.SetCurrent(snowfall * 100);
1271 m_SnowfallValueSetText.SetText(snowfall.ToString());
1272
1273 float volFogDistanceDensity = GetGame().GetWeather().GetDynVolFogDistanceDensity();
1274 //m_VolFogDistanceDensitySlider.SetCurrent(volFogDistanceDensity * 100);
1275 m_VolFogDistanceDensitySetText.SetText(volFogDistanceDensity.ToString());
1276
1277 float volFogHeightDensity = GetGame().GetWeather().GetDynVolFogHeightDensity();
1278 //m_VolFogHeightDensitySlider.SetCurrent(volFogHeightDensity * 100);
1279 m_VolFogHeightDensitySetText.SetText(volFogHeightDensity.ToString());
1280
1281 float volFogHeightBias = GetGame().GetWeather().GetDynVolFogHeightBias();
1282 //m_VolFogHeightBiasSlider.SetCurrent(volFogHeightBias * 100);
1283 m_VolFogHeightBiasSetText.SetText(volFogHeightBias.ToString());
1284
1285 float windMagnitude = GetGame().GetWeather().GetWindMagnitude().GetActual();
1286 m_WindMValueGetSlider.SetCurrent(windMagnitude);
1287 m_WindMValueSetText.SetText(windMagnitude.ToString());
1288
1289 float windDirection = GetGame().GetWeather().GetWindDirection().GetActual();
1290 m_WindDValueGetSlider.SetCurrent(windDirection);
1291 m_WindDValueSetText.SetText(windDirection.ToString());
1292 }
SliderWidget m_SnowfallValueGetSlider
Определения ScriptConsoleWeatherTab.c:77
SliderWidget m_OvercastValueGetSlider
Определения ScriptConsoleWeatherTab.c:37
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_SnowfallValueSetText
Определения ScriptConsoleWeatherTab.c:79
SliderWidget m_RainValueGetSlider
Определения ScriptConsoleWeatherTab.c:57
TextWidget m_FogValueSetText
Определения ScriptConsoleWeatherTab.c:19
SliderWidget m_WindMValueGetSlider
Определения ScriptConsoleWeatherTab.c:141
TextWidget m_RainValueSetText
Определения ScriptConsoleWeatherTab.c:59
TextWidget m_OvercastValueSetText
Определения ScriptConsoleWeatherTab.c:39
TextWidget m_WindDValueSetText
Определения ScriptConsoleWeatherTab.c:163
SliderWidget m_WindDValueGetSlider
Определения ScriptConsoleWeatherTab.c:161
proto native Weather GetWeather()
Returns weather controller object.
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 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.
proto native float GetActual()
proto string ToString(bool simple=true)
proto native CGame GetGame()

Перекрестные ссылки WeatherPhenomenon::GetActual(), Weather::GetDynVolFogDistanceDensity(), Weather::GetDynVolFogHeightBias(), Weather::GetDynVolFogHeightDensity(), Weather::GetFog(), GetGame(), Weather::GetOvercast(), Weather::GetRain(), Weather::GetSnowfall(), CGame::GetWeather(), Weather::GetWindDirection(), Weather::GetWindMagnitude(), m_FogValueGetSlider, m_FogValueSetText, m_OvercastValueGetSlider, m_OvercastValueSetText, m_RainValueGetSlider, m_RainValueSetText, m_SnowfallValueGetSlider, m_SnowfallValueSetText, m_VolFogDistanceDensitySetText, m_VolFogHeightBiasSetText, m_VolFogHeightDensitySetText, m_WindDValueGetSlider, m_WindDValueSetText, m_WindMValueGetSlider, m_WindMValueSetText и float::ToString().

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