162 {
165 else
167
169 if (!newsData)
170 return;
171
173 {
174 if (article)
175 {
178 {
180 {
182 }
183 }
184
186 {
187 if (!modInfo || (modInfo && !modInfo.
GetIsOwned()))
188 {
190 }
191 }
192
194 break;
195 }
196 }
197
199
202
204 {
205 if (articlesCount == 0)
206 {
208 }
209 else
210 {
212 if (articlesCount == 1)
213 {
214 Widget pageIndicators =
m_Root.FindAnyWidget(
"nf_pages");
215 if (pageIndicators)
216 {
217 pageIndicators.Show(false);
218 }
219
220 #ifndef PLATFORM_CONSOLE
222 #else
223 m_NextPageBtnIconConsole.Show(false);
224 #endif
225 }
226
227
229 {
231 if (!w)
232 break;
233
234 if (j > articlesCount)
235 {
236 w.Show(false);
237 }
238 }
239 }
240 }
241
243 {
246 }
247
249
250 if (articlesCount > 1)
251 {
254 }
255
258
262 }
enum AnimatedGridSpacerEasingType m_GridSpacer
void AnimatedGridSpacer(Widget gridSpacer, int maxColums, float animDuration=0.25, AnimatedGridSpacerEasingType easing=AnimatedGridSpacerEasingType.EASE_IN_OUT_CUBIC)
AnimatedGridSpacerEasingType
ImageWidget m_NextPageBtnIcon
void ShowArrowRight(bool state)
ref AnimatedGridSpacer m_AnimatedSpacer
const float ARTICLE_SWITCH_TIME
enum NewsCategory MAX_ARTICLES
void ShowArrowLeft(bool state)
ref Timer m_NewsSwitchTimer
void OnAnimationCompleted()
ref array< ref JsonDataNewsArticle > m_NewsArticles
ref array< ref JsonDataNewsArticle > News
static JsonDataNewsList GetNewsData()
static ModInfo GetDLCModInfoByName(string dlcName)
DLCs only.
Result for an object found in CGame.IsBoxCollidingGeometryProxy.