148 {
151 else
153
155 if (!newsData)
156 return;
157
158 for (
int i = 0; i < newsData.
News.Count(); i++)
159 {
161 if (article)
162 {
164 {
167 {
169 }
170 }
171
173 {
175 }
176
178 break;
179 }
180 }
181
184 {
185 if (articlesCount == 0)
186 {
188 }
189 else
190 {
192 if (articlesCount == 1)
193 {
194 Widget pageIndicators =
m_Root.FindAnyWidget(
"nf_pages");
195 if (pageIndicators)
196 {
197 pageIndicators.Show(false);
198 }
199
200 #ifndef PLATFORM_CONSOLE
202 #else
203 m_NextPageBtnIconConsole.Show(false);
204 #endif
205 }
206
207
209 {
211 if (!w)
212 break;
213
214 if (j > articlesCount)
215 {
216 w.Show(false);
217 }
218 }
219 }
220 }
221
223 {
226 }
227
229 {
230 int maxColums = (articlesCount - 1);
233 }
234
236 }
enum AnimatedGridSpacerEasingType m_GridSpacer
void AnimatedGridSpacer(Widget gridSpacer, int maxColums, float animDuration=0.25, AnimatedGridSpacerEasingType easing=AnimatedGridSpacerEasingType.EASE_IN_OUT_CUBIC)
AnimatedGridSpacerEasingType
ref array< JsonDataNewsArticle > m_NewsArticles
ImageWidget m_NextPageBtnIcon
ref AnimatedGridSpacer m_AnimatedSpacer
const float ARTICLE_SWITCH_TIME
enum NewsCategory MAX_ARTICLES
ref Timer m_NewsSwitchTimer
void OnAnimationCompleted()
ref array< ref JsonDataNewsArticle > News
static JsonDataNewsList GetNewsData()
static ModInfo GetDLCModInfoByName(string dlcName)
DLCs only.
Result for an object found in CGame.IsBoxCollidingGeometryProxy.