class NewsCarouselSource
NewsCarousel › ScriptedWidgetEventHandler › Managed
All members, including inherited
Constructors 2
void NewsCarousel(Widget parent, UIScriptedMenu mainMenu)References Class.Cast(), Class.Cast(), Class.Cast()
Show 32 more
, Class.Cast(), Class.Cast(), Class.Cast(), Class.Cast(), WorkspaceWidget.CreateWidgets(), Widget.FindAnyWidget(), GetButtonLabel(), Input.GetCurrentInputDevice(), CGame.GetInput(), CGame.GetMission(), Mission.GetOnInputDeviceChanged(), CGame.GetWorkspace(), ScriptInvoker.Insert(), ImageWidget.LoadImageFile(), ImageWidget.LoadImageFile(), OnInputDeviceChanged(), Widget.SetHandler(), TextWidget.SetText(), Widget.Show(), UpdateCarouselInfo(), m_GridSpacer, m_HotlinkButton, m_HotlinkButtonLabel, m_MainMenu, m_NextPageBtn, m_NextPageBtnIcon, m_NextPageBtnIconConsole, m_PrevPageBtn, m_PrevPageBtnIcon, m_PrevPageBtnIconConsole, m_Root, and m_TitleTextReferenced by MainMenu.CheckWidth(), MainMenu.Init(), MainMenuConsole.CheckWidth()
Show 3 more
, MainMenuConsole.Init(), MainMenuConsole.OnDLCChange(), and MainMenuConsole.OnShow()void ~NewsCarousel()References CGame.GetMission(), Mission.GetOnInputDeviceChanged(), ScriptInvoker.Remove()
Show 2 more
, Timer.Stop(), and m_NewsSwitchTimerConstants 2
protected const int MAX_ARTICLES = 3protected const float ARTICLE_SWITCH_TIME = 3.0Referenced by UpdateCarouselInfo()
Members 22
protected Widget m_RootReferenced by Destroy(), NewsCarousel(), ShowNewsCarousel()
Show 2 more
, ShowPost(), and UpdateCarouselInfo()protected ButtonWidget m_HotlinkButtonReferenced by NewsCarousel(), OnAnimationCompleted(), OnClick()
Show 2 more
, OnMouseEnter(), and OnMouseLeave()protected RichTextWidget m_HotlinkButtonLabelReferenced by NewsCarousel(), OnAnimationCompleted(), OnInputDeviceChanged()
Show 2 more
, OnMouseEnter(), and OnMouseLeave()protected ImageWidget m_Imageprotected TextWidget m_TitleTextprotected ButtonWidget m_NextPageBtnprotected ButtonWidget m_PrevPageBtnprotected ImageWidget m_NextPageBtnIconReferenced by NewsCarousel(), OnInputDeviceChanged(), OnMouseEnter()
Show 3 more
, OnMouseLeave(), ShowArrowRight(), and UpdateCarouselInfo()protected ImageWidget m_PrevPageBtnIconReferenced by NewsCarousel(), OnInputDeviceChanged(), OnMouseEnter()
Show 2 more
, OnMouseLeave(), and ShowArrowLeft()protected ImageWidget m_NextPageBtnIconConsolePLATFORM_CONSOLEReferenced by NewsCarousel(), OnInputDeviceChanged(), ShowArrowRight()
Show 1 more
, UpdateCarouselInfo()protected ImageWidget m_PrevPageBtnIconConsolePLATFORM_CONSOLEprotected ref array<JsonDataNewsArticle> m_NewsArticlesReferenced by NextArticle(), OnInputDeviceChanged(), PreviousArticle()
Show 4 more
, ShowPost(), ShowPromotion(), SwitchNews(), and UpdateCarouselInfo()protected JsonDataNewsArticle m_CurrentArticleprotected ModInfo m_CurrentModInfoprotected int m_ArticleIndexReferenced by NextArticle(), OnInputDeviceChanged(), PreviousArticle()
Show 3 more
, ShowPost(), ShowPromotion(), and SwitchNews()protected ref Timer m_NewsSwitchTimerReferenced by ~NewsCarousel(), OnClickNextArticle(), OnClickPreviousArticle()
Show 1 more
, UpdateCarouselInfo()protected bool m_SwitchToNext = trueReferenced by SwitchNews()
protected MainMenuConsole m_MainMenuPLATFORM_CONSOLEReferenced by NewsCarousel()
protected MainMenu m_MainMenu!PLATFORM_CONSOLEReferenced by NewsCarousel()
protected GridSpacerWidget m_GridSpacerprotected ref AnimatedGridSpacer m_AnimatedSpacerprotected EInputDeviceType m_CurrentInputDeviceReferenced by GetButtonLabel(), OnInputDeviceChanged(), ShowArrowLeft()
Show 1 more
, ShowArrowRight()Methods 21
void Destroy()Referenced by MainMenu.CheckWidth(), MainMenuConsole.CheckWidth(), MainMenuConsole.OnDLCChange()
Show 1 more
, MainMenuConsole.OnShow()protected void SwitchNews()References array.Count(), NextArticle(), PreviousArticle()
Show 3 more
, m_ArticleIndex, m_NewsArticles, and m_SwitchToNextvoid ShowNewsCarousel(bool show)protected void UpdateCarouselInfo()References new AnimatedGridSpacer(), array.Clear(), array.Count()
Show 28 more
, array.Count(), Widget.FindAnyWidget(), MainMenuData.GetDLCModInfoByName(), ModInfo.GetIsOwned(), MainMenuData.GetNewsData(), ScriptInvoker.Insert(), array.Insert(), Timer.Run(), Widget.Show(), Widget.Show(), Widget.Show(), Widget.Show(), Widget.Show(), ShowPost(), new Timer(), ARTICLE_SWITCH_TIME, JsonDataNewsArticle.categoryID, JsonDataNewsArticle.dlcName, m_AnimatedSpacer, m_GridSpacer, m_NewsArticles, m_NewsSwitchTimer, m_NextPageBtnIcon, m_NextPageBtnIconConsole, AnimatedGridSpacer.m_OnAnimationComplete, m_Root, MAX_ARTICLES, and JsonDataNewsList.Newsprotected void ShowPost(int index)References Class.Cast(), ColorHighlight(), ColorNormal()
Show 18 more
, array.Count(), ErrorEx(), Widget.FindAnyWidget(), string.Format(), MainMenuData.GetDLCModInfoByName(), ImageWidget.LoadImageFile(), ImageWidget.SetImage(), TextWidget.SetText(), JsonDataNewsArticle.coverImage, JsonDataNewsArticle.dlcName, m_ArticleIndex, m_CurrentArticle, m_CurrentModInfo, m_NewsArticles, m_Root, m_TitleText, MAX_ARTICLES, and JsonDataNewsArticle.titlevoid OnAnimationCompleted()References GetButtonLabel(), GetWidgetUnderCursor(), TextWidget.SetText()
Show 2 more
, m_HotlinkButton, and m_HotlinkButtonLabelprotected void ColorHighlight(Widget w)Referenced by ShowPost()
protected void ColorNormal(Widget w)Referenced by ShowPost()
void OnClickNextArticle()protected void NextArticle()References array.Count(), AnimatedGridSpacer.IsAnimating(), AnimatedGridSpacer.MoveRight()
Show 6 more
, ShowArrowLeft(), ShowArrowRight(), ShowPost(), m_AnimatedSpacer, m_ArticleIndex, and m_NewsArticlesvoid OnClickPreviousArticle()protected void PreviousArticle()References array.Count(), AnimatedGridSpacer.IsAnimating(), AnimatedGridSpacer.MoveLeft()
Show 6 more
, ShowArrowLeft(), ShowArrowRight(), ShowPost(), m_AnimatedSpacer, m_ArticleIndex, and m_NewsArticlesprotected void ShowArrowRight(bool state)References CGame.GetInput(), Input.IsEnabledMouseAndKeyboard(), Widget.Show()
Show 4 more
, Widget.Show(), m_CurrentInputDevice, m_NextPageBtnIcon, and m_NextPageBtnIconConsoleprotected void ShowArrowLeft(bool state)References CGame.GetInput(), Input.IsEnabledMouseAndKeyboard(), Widget.Show()
Show 4 more
, Widget.Show(), m_CurrentInputDevice, m_PrevPageBtnIcon, and m_PrevPageBtnIconConsolevoid ShowPromotion()References ErrorEx(), string.Format(), ModInfo.GoToStore()
Show 5 more
, CGame.OpenURL(), JsonDataNewsArticle.fullUrl, m_ArticleIndex, m_CurrentModInfo, and m_NewsArticlesReferences OnClickNextArticle(), OnClickPreviousArticle(), ShowPromotion()
Show 3 more
, m_HotlinkButton, m_NextPageBtn, and m_PrevPageBtnprotected void OnInputDeviceChanged(EInputDeviceType pInputDeviceType)References array.Count(), GetButtonLabel(), CGame.GetInput()
Show 15 more
, Input.IsActiveGamepadSelected(), Input.IsEnabledMouseAndKeyboard(), TextWidget.SetText(), Widget.Show(), Widget.Show(), Widget.Show(), Widget.Show(), m_ArticleIndex, m_CurrentInputDevice, m_HotlinkButtonLabel, m_NewsArticles, m_NextPageBtnIcon, m_NextPageBtnIconConsole, m_PrevPageBtnIcon, and m_PrevPageBtnIconConsoleReferenced by NewsCarousel()
References string.Format(), InputUtils.GetRichtextButtonIconFromInputAction(), JsonDataNewsArticle.categoryID
Show 4 more
, string.Empty, JsonDataNewsArticle.fullUrl, m_CurrentArticle, and m_CurrentInputDeviceReferenced by NewsCarousel(), OnAnimationCompleted(), OnInputDeviceChanged()
Show 2 more
, OnMouseEnter(), and OnMouseLeave()void Update(float timeslice)