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

◆ InitValues()

void InitValues ( bool forceCurrent = false)
protected

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

511 {
512 // FOG
513 float fogVal = m_FogValue;
514 if (forceCurrent || m_FogValue == -1)
515 {
516 fogVal = GetGame().GetWeather().GetFog().GetActual();
517 }
518 m_FogValueEditbox.SetText(fogVal.ToString());
519
521
522 if (m_FogDurationTimeValue == -1)
525
527 m_FogDurationMaxText.SetText(DURATION_MAX.ToString());
528
529 // OVERCAST
530 float overcastVal = m_OvercastValue;
531 if (forceCurrent || m_OvercastValue == -1)
532 {
533 overcastVal = GetGame().GetWeather().GetOvercast().GetActual();
534 }
535 m_OvercastValueEditbox.SetText(overcastVal.ToString());
536
538
539
543
545 m_OvercastDurationMaxText.SetText(DURATION_MAX.ToString());
546
547 // RAIN
548 float rainVal = m_RainValue;
549 if (forceCurrent || m_RainValue == -1)
550 {
551 rainVal = GetGame().GetWeather().GetRain().GetActual();
552 }
553
554 m_RainValueEditbox.SetText(rainVal.ToString());
556
557 if (m_RainDurationTimeValue == -1)
560
562 m_RainDurationMaxText.SetText(DURATION_MAX.ToString());
563
564 // SNOWFALL
565 float snowfallVal = m_SnowfallValue;
566 if (forceCurrent || m_SnowfallValue == -1)
567 {
568 snowfallVal = GetGame().GetWeather().GetSnowfall().GetActual();
569 }
570
571 m_SnowfallValueEditbox.SetText(snowfallVal.ToString());
573
577
579 m_SnowfallDurationMaxText.SetText(DURATION_MAX.ToString());
580
581 // VOLFOG
582 float volFogDistanceDensityValue = m_VolFogDistanceDensityValue;
583 if (forceCurrent || m_VolFogDistanceDensityValue == -1)
584 {
585 volFogDistanceDensityValue = GetGame().GetWeather().GetDynVolFogDistanceDensity();
586 }
587
588 m_VolFogDistanceDensityEditbox.SetText(volFogDistanceDensityValue.ToString());
589
592
593 float volFogHeightDensityValue = m_VolFogHeightDensityValue;
594 if (forceCurrent || m_VolFogHeightDensityValue == -1)
595 {
596 volFogHeightDensityValue = GetGame().GetWeather().GetDynVolFogHeightDensity();
597 }
598
599 m_VolFogHeightDensityEditbox.SetText(volFogHeightDensityValue.ToString());
600
603
604 float volFogHeightBiasValue = m_VolFogHeightBiasValue;
605 if (forceCurrent /*|| m_VolFogHeightBiasValue == -500*/)
606 {
607 volFogHeightBiasValue = GetGame().GetWeather().GetDynVolFogHeightBias();
608 }
609
610 m_VolFogHeightBiasEditbox.SetText(volFogHeightBiasValue.ToString());
611
614
615 // Wind Magnitude
616 float windMagnitudeVal = m_WindMagnitudeValue;
617 if (forceCurrent || m_WindMagnitudeValue == -1)
618 {
619 windMagnitudeVal = GetGame().GetWeather().GetWindMagnitude().GetActual();
620 }
621
622 m_WindMValueEditbox.SetText(windMagnitudeVal.ToString());
624
625 if (m_WindMDurationTimeValue == -1)
628
630 m_WindMDurationMaxText.SetText(DURATION_MAX.ToString());
631
632 // Wind Direction
633 float windDirectionVal = m_WindDirectionValue;
634 if (forceCurrent || m_WindDirectionValue == -1)
635 {
636 windDirectionVal = GetGame().GetWeather().GetWindDirection().GetActual();
637 }
638
639 m_WindDValueEditbox.SetText(windDirectionVal.ToString());
641
642 if (m_WindDDurationTimeValue == -1)
645
647 m_WindDDurationMaxText.SetText(DURATION_MAX.ToString());
648
650 }
static float m_OvercastInterpolationTimeValue
Определения ScriptConsoleWeatherTab.c:52
TextWidget m_WindMDurationMaxText
Определения ScriptConsoleWeatherTab.c:149
EditBoxWidget m_FogDurationEditbox
Определения ScriptConsoleWeatherTab.c:29
static float m_RainInterpolationTimeValue
Определения ScriptConsoleWeatherTab.c:72
static float m_VolFogHeightBiasValue
Определения ScriptConsoleWeatherTab.c:136
EditBoxWidget m_SnowfallValueEditbox
Определения ScriptConsoleWeatherTab.c:87
EditBoxWidget m_VolFogHeightBiasTimeEditbox
Определения ScriptConsoleWeatherTab.c:126
EditBoxWidget m_VolFogHeightBiasEditbox
Определения ScriptConsoleWeatherTab.c:120
EditBoxWidget m_VolFogDistanceDensityTimeEditbox
Определения ScriptConsoleWeatherTab.c:102
static float m_VolFogDistanceDensityValue
Определения ScriptConsoleWeatherTab.c:132
void UpdateSliderValues()
Определения ScriptConsoleWeatherTab.c:870
static float m_WindMInterpolationTimeValue
Определения ScriptConsoleWeatherTab.c:156
static float m_WindDInterpolationTimeValue
Определения ScriptConsoleWeatherTab.c:176
static float m_RainDurationTimeValue
Определения ScriptConsoleWeatherTab.c:73
TextWidget m_WindDDurationMaxText
Определения ScriptConsoleWeatherTab.c:169
TextWidget m_SnowfallInterpolationMaxText
Определения ScriptConsoleWeatherTab.c:84
static float m_SnowfallDurationTimeValue
Определения ScriptConsoleWeatherTab.c:93
EditBoxWidget m_FogValueEditbox
Определения ScriptConsoleWeatherTab.c:27
EditBoxWidget m_SnowfallInterpolationEditbox
Определения ScriptConsoleWeatherTab.c:88
EditBoxWidget m_OvercastDurationEditbox
Определения ScriptConsoleWeatherTab.c:49
static float m_VolFogHeightDensityValue
Определения ScriptConsoleWeatherTab.c:134
EditBoxWidget m_FogInterpolationEditbox
Определения ScriptConsoleWeatherTab.c:28
EditBoxWidget m_VolFogHeightDensityTimeEditbox
Определения ScriptConsoleWeatherTab.c:114
static float m_FogValue
Определения ScriptConsoleWeatherTab.c:31
TextWidget m_RainInterpolationMaxText
Определения ScriptConsoleWeatherTab.c:64
static float m_RainValue
Определения ScriptConsoleWeatherTab.c:71
static float m_VolFogHeightDensityTimeValue
Определения ScriptConsoleWeatherTab.c:135
static float m_WindMagnitudeValue
Определения ScriptConsoleWeatherTab.c:155
EditBoxWidget m_WindMInterpolationEditbox
Определения ScriptConsoleWeatherTab.c:152
static float m_OvercastDurationTimeValue
Определения ScriptConsoleWeatherTab.c:53
static float m_WindDirectionValue
Определения ScriptConsoleWeatherTab.c:175
EditBoxWidget m_VolFogHeightDensityEditbox
Определения ScriptConsoleWeatherTab.c:108
TextWidget m_SnowfallDurationMaxText
Определения ScriptConsoleWeatherTab.c:85
EditBoxWidget m_WindDValueEditbox
Определения ScriptConsoleWeatherTab.c:171
EditBoxWidget m_WindMDurationEditbox
Определения ScriptConsoleWeatherTab.c:153
TextWidget m_OvercastInterpolationMaxText
Определения ScriptConsoleWeatherTab.c:44
TextWidget m_WindDInterpolationMaxText
Определения ScriptConsoleWeatherTab.c:168
static float m_SnowfallInterpolationTimeValue
Определения ScriptConsoleWeatherTab.c:92
TextWidget m_FogInterpolationMaxText
Определения ScriptConsoleWeatherTab.c:24
static float m_WindDDurationTimeValue
Определения ScriptConsoleWeatherTab.c:177
static float m_VolFogHeightBiasTimeValue
Определения ScriptConsoleWeatherTab.c:137
static float m_WindMDurationTimeValue
Определения ScriptConsoleWeatherTab.c:157
EditBoxWidget m_WindMValueEditbox
Определения ScriptConsoleWeatherTab.c:151
static float m_FogInterpolationTimeValue
Определения ScriptConsoleWeatherTab.c:32
TextWidget m_RainDurationMaxText
Определения ScriptConsoleWeatherTab.c:65
EditBoxWidget m_RainInterpolationEditbox
Определения ScriptConsoleWeatherTab.c:68
TextWidget m_OvercastDurationMaxText
Определения ScriptConsoleWeatherTab.c:45
static float m_SnowfallValue
Определения ScriptConsoleWeatherTab.c:91
EditBoxWidget m_VolFogDistanceDensityEditbox
Определения ScriptConsoleWeatherTab.c:96
const int DURATION_MAX
Определения ScriptConsoleWeatherTab.c:13
EditBoxWidget m_OvercastValueEditbox
Определения ScriptConsoleWeatherTab.c:47
EditBoxWidget m_SnowfallDurationEditbox
Определения ScriptConsoleWeatherTab.c:89
TextWidget m_WindMInterpolationMaxText
Определения ScriptConsoleWeatherTab.c:148
static float m_OvercastValue
Определения ScriptConsoleWeatherTab.c:51
static float m_VolFogDistanceDensityTimeValue
Определения ScriptConsoleWeatherTab.c:133
EditBoxWidget m_RainDurationEditbox
Определения ScriptConsoleWeatherTab.c:69
const int INTERPOLATION_MAX
Определения ScriptConsoleWeatherTab.c:12
EditBoxWidget m_RainValueEditbox
Определения ScriptConsoleWeatherTab.c:67
static float m_FogDurationTimeValue
Определения ScriptConsoleWeatherTab.c:33
EditBoxWidget m_OvercastInterpolationEditbox
Определения ScriptConsoleWeatherTab.c:48
EditBoxWidget m_WindDDurationEditbox
Определения ScriptConsoleWeatherTab.c:173
TextWidget m_FogDurationMaxText
Определения ScriptConsoleWeatherTab.c:25
EditBoxWidget m_WindDInterpolationEditbox
Определения ScriptConsoleWeatherTab.c:172
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()

Перекрестные ссылки DURATION_MAX, WeatherPhenomenon::GetActual(), Weather::GetDynVolFogDistanceDensity(), Weather::GetDynVolFogHeightBias(), Weather::GetDynVolFogHeightDensity(), Weather::GetFog(), GetGame(), Weather::GetOvercast(), Weather::GetRain(), Weather::GetSnowfall(), CGame::GetWeather(), Weather::GetWindDirection(), Weather::GetWindMagnitude(), INTERPOLATION_MAX, m_FogDurationEditbox, m_FogDurationMaxText, m_FogDurationTimeValue, m_FogInterpolationEditbox, m_FogInterpolationMaxText, m_FogInterpolationTimeValue, m_FogValue, m_FogValueEditbox, m_OvercastDurationEditbox, m_OvercastDurationMaxText, m_OvercastDurationTimeValue, m_OvercastInterpolationEditbox, m_OvercastInterpolationMaxText, m_OvercastInterpolationTimeValue, m_OvercastValue, m_OvercastValueEditbox, m_RainDurationEditbox, m_RainDurationMaxText, m_RainDurationTimeValue, m_RainInterpolationEditbox, m_RainInterpolationMaxText, m_RainInterpolationTimeValue, m_RainValue, m_RainValueEditbox, m_SnowfallDurationEditbox, m_SnowfallDurationMaxText, m_SnowfallDurationTimeValue, m_SnowfallInterpolationEditbox, m_SnowfallInterpolationMaxText, m_SnowfallInterpolationTimeValue, m_SnowfallValue, m_SnowfallValueEditbox, m_VolFogDistanceDensityEditbox, m_VolFogDistanceDensityTimeEditbox, m_VolFogDistanceDensityTimeValue, m_VolFogDistanceDensityValue, m_VolFogHeightBiasEditbox, m_VolFogHeightBiasTimeEditbox, m_VolFogHeightBiasTimeValue, m_VolFogHeightBiasValue, m_VolFogHeightDensityEditbox, m_VolFogHeightDensityTimeEditbox, m_VolFogHeightDensityTimeValue, m_VolFogHeightDensityValue, m_WindDDurationEditbox, m_WindDDurationMaxText, m_WindDDurationTimeValue, m_WindDInterpolationEditbox, m_WindDInterpolationMaxText, m_WindDInterpolationTimeValue, m_WindDirectionValue, m_WindDValueEditbox, m_WindMagnitudeValue, m_WindMDurationEditbox, m_WindMDurationMaxText, m_WindMDurationTimeValue, m_WindMInterpolationEditbox, m_WindMInterpolationMaxText, m_WindMInterpolationTimeValue, m_WindMValueEditbox, float::ToString() и UpdateSliderValues().