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

◆ InitValues()

void InitValues ( bool forceCurrent = false)
protected

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

549 {
550 Weather weather = g_Game.GetWeather();
551
552 // FOG
553 float fogVal = m_FogValue;
554 if (forceCurrent || m_FogValue == -1)
555 {
556 fogVal = weather.GetFog().GetActual();
557 }
558 m_FogValueEditbox.SetText(fogVal.ToString());
559
561
562 if (m_FogDurationTimeValue == -1)
565
567 m_FogDurationMaxText.SetText(DURATION_MAX.ToString());
568
569 // OVERCAST
570 float overcastVal = m_OvercastValue;
571 if (forceCurrent || m_OvercastValue == -1)
572 {
573 overcastVal = weather.GetOvercast().GetActual();
574 }
575 m_OvercastValueEditbox.SetText(overcastVal.ToString());
576
578
579
583
585 m_OvercastDurationMaxText.SetText(DURATION_MAX.ToString());
586
587 // RAIN
588 float rainVal = m_RainValue;
589 if (forceCurrent || m_RainValue == -1)
590 {
591 rainVal = weather.GetRain().GetActual();
592 }
593
594 m_RainValueEditbox.SetText(rainVal.ToString());
596
597 if (m_RainDurationTimeValue == -1)
600
602 m_RainDurationMaxText.SetText(DURATION_MAX.ToString());
603
604 // SNOWFALL
605 float snowfallVal = m_SnowfallValue;
606 if (forceCurrent || m_SnowfallValue == -1)
607 {
608 snowfallVal = weather.GetSnowfall().GetActual();
609 }
610
611 m_SnowfallValueEditbox.SetText(snowfallVal.ToString());
613
617
619 m_SnowfallDurationMaxText.SetText(DURATION_MAX.ToString());
620
621 // VOLFOG
622 float volFogDistanceDensityValue = m_VolFogDistanceDensityValue;
623 if (forceCurrent || m_VolFogDistanceDensityValue == -1)
624 {
625 volFogDistanceDensityValue = weather.GetDynVolFogDistanceDensity();
626 }
627
628 m_VolFogDistanceDensityEditbox.SetText(volFogDistanceDensityValue.ToString());
629
632
633 float volFogHeightDensityValue = m_VolFogHeightDensityValue;
634 if (forceCurrent || m_VolFogHeightDensityValue == -1)
635 {
636 volFogHeightDensityValue = weather.GetDynVolFogHeightDensity();
637 }
638
639 m_VolFogHeightDensityEditbox.SetText(volFogHeightDensityValue.ToString());
640
643
644 float volFogHeightBiasValue = m_VolFogHeightBiasValue;
645 if (forceCurrent /*|| m_VolFogHeightBiasValue == -500*/)
646 {
647 volFogHeightBiasValue = weather.GetDynVolFogHeightBias();
648 }
649
650 m_VolFogHeightBiasEditbox.SetText(volFogHeightBiasValue.ToString());
651
654
655 // Wind Magnitude
656 float windMagnitudeVal = m_WindMagnitudeValue;
657 if (forceCurrent || m_WindMagnitudeValue == -1)
658 {
659 windMagnitudeVal = weather.GetWindMagnitude().GetActual();
660 }
661
662 m_WindMValueEditbox.SetText(windMagnitudeVal.ToString());
664
665 if (m_WindMDurationTimeValue == -1)
668
670 m_WindMDurationMaxText.SetText(DURATION_MAX.ToString());
671
672 // Wind Direction
673 float windDirectionVal = m_WindDirectionValue;
674 if (forceCurrent || m_WindDirectionValue == -1)
675 {
676 windDirectionVal = weather.GetWindDirection().GetActual();
677 }
678
679 m_WindDValueEditbox.SetText(windDirectionVal.ToString());
681
682 if (m_WindDDurationTimeValue == -1)
685
687 m_WindDDurationMaxText.SetText(DURATION_MAX.ToString());
688
689 // Sandstorm
690 Sandstorm sandstorm = weather.GetSandstorm();
691 if (sandstorm)
692 {
693 bool isActive = sandstorm.IsActive();
694 float sandstromMagnitudeVal = m_SandstormMagnitudeValue;
695 if (isActive && (forceCurrent || m_SandstormMagnitudeValue == -1))
696 {
697 sandstromMagnitudeVal = sandstorm.GetMagnitude();
698 }
699
700 m_StandstormMagnitudeText.SetText(sandstromMagnitudeVal.ToString());
701
702 float sandstromDurationVal = m_SandstormDurationTimeValue;
703 if (isActive && (forceCurrent || m_SandstormDurationTimeValue == -1))
704 {
705 sandstromDurationVal = sandstorm.GetRemainingMovementDuration();
706 }
707
708 m_StandstormDurationText.SetText(sandstromDurationVal.ToString());
709
710 float sandstromSpeedVal = m_SandstormSpeedValue;
711 if (isActive && (forceCurrent || m_SandstormSpeedValue == -1))
712 {
713 sandstromSpeedVal = sandstorm.GetSpeed();
714 }
715
716 m_StandstormSpeedText.SetText(sandstromSpeedVal.ToString());
717 }
718
720 }
DayZGame g_Game
Определения DayZGame.c:4074
float m_WindMagnitudeValue
Определения DebugWeatherRPCData.c:47
float m_OvercastValue
Определения DebugWeatherRPCData.c:46
SandstormController Sandstorm
Определения Sandstorm.c:135
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
float m_SandstormDurationTimeValue
Определения ScriptConsoleWeatherTab.c:192
static float m_VolFogHeightBiasValue
Определения ScriptConsoleWeatherTab.c:136
EditBoxWidget m_SnowfallValueEditbox
Определения ScriptConsoleWeatherTab.c:87
float m_SandstormSpeedValue
Определения ScriptConsoleWeatherTab.c:193
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:940
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
TextWidget m_StandstormMagnitudeText
Определения ScriptConsoleWeatherTab.c:180
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
float m_SandstormMagnitudeValue
Определения ScriptConsoleWeatherTab.c:191
TextWidget m_RainInterpolationMaxText
Определения ScriptConsoleWeatherTab.c:64
static float m_RainValue
Определения ScriptConsoleWeatherTab.c:71
static float m_VolFogHeightDensityTimeValue
Определения ScriptConsoleWeatherTab.c:135
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
TextWidget m_StandstormDurationText
Определения ScriptConsoleWeatherTab.c:181
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_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
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)

Перекрестные ссылки DURATION_MAX, 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(), INTERPOLATION_MAX, SandstormController::IsActive(), 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_SandstormDurationTimeValue, m_SandstormMagnitudeValue, m_SandstormSpeedValue, m_SnowfallDurationEditbox, m_SnowfallDurationMaxText, m_SnowfallDurationTimeValue, m_SnowfallInterpolationEditbox, m_SnowfallInterpolationMaxText, m_SnowfallInterpolationTimeValue, m_SnowfallValue, m_SnowfallValueEditbox, m_StandstormDurationText, m_StandstormMagnitudeText, m_StandstormSpeedText, 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().