3 private static const int m_DaysInMonth[12] = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 };
117 if (
w == m_SldStartTime)
127 GetGame().GetWorld().SetDate(m_CurrYear, m_CurrMonth, m_CurrDay, m_CurrHour, m_CurrMinute);
131 else if (
w == m_SldStartDay)
137 for (
int i = 0;
i < 12;
i++)
139 int days = m_DaysInMonth[
i];
152 GetGame().GetWorld().SetDate(m_CurrYear, m_CurrMonth, m_CurrDay, m_CurrHour, m_CurrMinute);
156 else if (
w == m_SldOvercast)
160 m_CurrOvercast = m_SldOvercast.GetCurrent() * 0.01;
161 GetGame().GetWeather().GetOvercast().Set(m_CurrOvercast, 0, 1000);
165 else if (
w == m_SldRain)
169 m_CurrRain = m_SldRain.GetCurrent() * 0.01;
170 GetGame().GetWeather().GetRain().Set(m_CurrRain, 0, 1000);
174 else if (
w == m_SldFog)
178 m_CurrFog = m_SldFog.GetCurrent() * 0.01;
179 GetGame().GetWeather().GetFog().Set(m_CurrFog, 0, 1000);
183 else if (
w == m_SldWindForce)
187 m_CurrWindForce = m_SldWindForce.GetCurrent() * 0.01;
235 GetGame().GetWorld().SetDate(m_OrigYear, m_OrigMonth, m_OrigDay, m_OrigHour, m_OrigMinute);
236 weather.GetOvercast().Set(m_OrigOvercast, 0, 1000);
237 weather.GetRain().Set(m_OrigRain, 0, 1000);
238 weather.GetFog().Set(m_OrigFog, 0, 1000);