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

◆ UpdateWeatherValues()

void UpdateWeatherValues ( )
protected

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

1259 {
1260 float overcast = GetGame().GetWeather().GetOvercast().GetActual();
1261 m_OvercastValueGetSlider.SetCurrent(overcast * 100);
1262 m_OvercastValueSetText.SetText(overcast.ToString());
1263
1264 float fog = GetGame().GetWeather().GetFog().GetActual();
1265 m_FogValueGetSlider.SetCurrent(fog * 100);
1266 m_FogValueSetText.SetText(fog.ToString());
1267
1268 float rain = GetGame().GetWeather().GetRain().GetActual();
1269 m_RainValueGetSlider.SetCurrent(rain * 100);
1270 m_RainValueSetText.SetText(rain.ToString());
1271
1272 float snowfall = GetGame().GetWeather().GetSnowfall().GetActual();
1273 m_SnowfallValueGetSlider.SetCurrent(snowfall * 100);
1274 m_SnowfallValueSetText.SetText(snowfall.ToString());
1275
1276 float volFogDistanceDensity = GetGame().GetWeather().GetDynVolFogDistanceDensity();
1277 //m_VolFogDistanceDensitySlider.SetCurrent(volFogDistanceDensity * 100);
1278 m_VolFogDistanceDensitySetText.SetText(volFogDistanceDensity.ToString());
1279
1280 float volFogHeightDensity = GetGame().GetWeather().GetDynVolFogHeightDensity();
1281 //m_VolFogHeightDensitySlider.SetCurrent(volFogHeightDensity * 100);
1282 m_VolFogHeightDensitySetText.SetText(volFogHeightDensity.ToString());
1283
1284 float volFogHeightBias = GetGame().GetWeather().GetDynVolFogHeightBias();
1285 //m_VolFogHeightBiasSlider.SetCurrent(volFogHeightBias * 100);
1286 m_VolFogHeightBiasSetText.SetText(volFogHeightBias.ToString());
1287
1288 float windMagnitude = GetGame().GetWeather().GetWindMagnitude().GetActual();
1289 m_WindMValueGetSlider.SetCurrent(windMagnitude);
1290 m_WindMValueSetText.SetText(windMagnitude.ToString());
1291
1292 float windDirection = GetGame().GetWeather().GetWindDirection().GetActual();
1293 m_WindDValueGetSlider.SetCurrent(windDirection);
1294 m_WindDValueSetText.SetText(windDirection.ToString());
1295 }
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().