Enumerations | |
| enum | NewsCategory { DLCS , DLC_PROMO , MISC_PROMO } |
Functions | |
| void | NewsCarousel (Widget parent, UIScriptedMenu mainMenu) |
| void | ~NewsCarousel () |
| void | Destroy () |
| Cleans up the Effect, including unregistering if needed. | |
| protected void | SwitchNews () |
| void | ShowNewsCarousel (bool show) |
| protected void | UpdateCarouselInfo () |
| protected void | ShowPost (int index) |
| void | OnAnimationCompleted () |
| protected void | ColorHighlight (Widget w) |
| protected void | ColorNormal (Widget w) |
| void | OnClickNextArticle () |
| protected void | NextArticle () |
| void | OnClickPreviousArticle () |
| protected void | PreviousArticle () |
| protected void | ShowArrowRight (bool state) |
| protected void | ShowArrowLeft (bool state) |
| void | ShowPromotion () |
| override bool | OnClick (Widget w, int x, int y, int button) |
| override bool | OnMouseEnter (Widget w, int x, int y) |
| override bool | OnMouseLeave (Widget w, Widget enterW, int x, int y) |
| protected void | OnInputDeviceChanged (EInputDeviceType pInputDeviceType) |
| protected string | GetButtonLabel (string color) |
| void | Update (float timeslice) |
Variables | |
| enum NewsCategory | MAX_ARTICLES = 3 |
| protected const float | ARTICLE_SWITCH_TIME = 3.0 |
| protected Widget | m_Root |
| protected ButtonWidget | m_HotlinkButton |
| protected RichTextWidget | m_HotlinkButtonLabel |
| protected ImageWidget | m_Image |
| protected TextWidget | m_TitleText |
| protected ButtonWidget | m_NextPageBtn |
| protected ButtonWidget | m_PrevPageBtn |
| protected ImageWidget | m_NextPageBtnIcon |
| protected ImageWidget | m_PrevPageBtnIcon |
| protected ref array< JsonDataNewsArticle > | m_NewsArticles |
| protected JsonDataNewsArticle | m_CurrentArticle |
| protected ModInfo | m_CurrentModInfo |
| protected int | m_ArticleIndex |
| protected ref Timer | m_NewsSwitchTimer |
| protected bool | m_SwitchToNext = true |
| protected MainMenu | m_MainMenu |
| protected GridSpacerWidget | m_GridSpacer |
| protected ref AnimatedGridSpacer | m_AnimatedSpacer |
| protected EInputDeviceType | m_CurrentInputDevice |
| enum NewsCategory |
| protected void ColorHighlight | ( | Widget | w | ) |
References ARGB().
Referenced by OptionSelectorBase::OnMouseEnter(), and ServerBrowserTab::OnMouseEnter().
| protected void ColorNormal | ( | Widget | w | ) |
References ARGB().
Referenced by OptionSelectorBase::OnMouseLeave(), and ServerBrowserTab::OnMouseLeave().
References JsonDataNewsArticle::categoryID, string::Empty, string::Format(), JsonDataNewsArticle::fullUrl, InputUtils::GetRichtextButtonIconFromInputAction(), m_CurrentArticle, and m_CurrentInputDevice.
Referenced by NewsCarousel(), OnAnimationCompleted(), OnInputDeviceChanged(), OnMouseEnter(), and OnMouseLeave().
| void NewsCarousel | ( | Widget | parent, |
| UIScriptedMenu | mainMenu | ||
| ) |
References g_Game, GetButtonLabel(), m_GridSpacer, m_HotlinkButton, m_HotlinkButtonLabel, m_MainMenu, m_NextPageBtn, m_NextPageBtnIcon, m_PrevPageBtn, m_PrevPageBtnIcon, m_Root, m_TitleText, OnInputDeviceChanged(), ScriptedWidgetEventHandler::OnInputDeviceChanged(), and UpdateCarouselInfo().
Referenced by UIScriptedMenu::CheckWidth(), UIScriptedMenu::Init(), UIScriptedMenu::OnDLCChange(), and UIScriptedMenu::OnShow().
| protected void NextArticle | ( | ) |
References m_AnimatedSpacer, m_ArticleIndex, m_NewsArticles, ShowArrowLeft(), ShowArrowRight(), and ShowPost().
Referenced by OnClickNextArticle(), and SwitchNews().
| void OnAnimationCompleted | ( | ) |
References GetButtonLabel(), GetWidgetUnderCursor(), m_HotlinkButton, and m_HotlinkButtonLabel.
Referenced by UpdateCarouselInfo().
References m_HotlinkButton, m_NextPageBtn, m_PrevPageBtn, OnClickNextArticle(), OnClickPreviousArticle(), and ShowPromotion().
| void OnClickNextArticle | ( | ) |
References m_NewsSwitchTimer, NextArticle(), and Timer::Stop().
Referenced by OnClick().
| void OnClickPreviousArticle | ( | ) |
References m_NewsSwitchTimer, PreviousArticle(), and Timer::Stop().
Referenced by OnClick().
| protected void OnInputDeviceChanged | ( | EInputDeviceType | pInputDeviceType | ) |
| protected void PreviousArticle | ( | ) |
References m_AnimatedSpacer, m_ArticleIndex, m_NewsArticles, ShowArrowLeft(), ShowArrowRight(), and ShowPost().
Referenced by OnClickPreviousArticle(), and SwitchNews().
| protected void ShowArrowLeft | ( | bool | state | ) |
References g_Game, m_CurrentInputDevice, and m_PrevPageBtnIcon.
Referenced by NextArticle(), and PreviousArticle().
| protected void ShowArrowRight | ( | bool | state | ) |
References g_Game, m_CurrentInputDevice, and m_NextPageBtnIcon.
Referenced by NextArticle(), and PreviousArticle().
| void ShowNewsCarousel | ( | bool | show | ) |
References m_Root, and UpdateCarouselInfo().
Referenced by UIScriptedMenu::Init(), and UIScriptedMenu::~MainMenu().
| protected void ShowPost | ( | int | index | ) |
References ScriptedWidgetEventHandler::ColorHighlight(), ScriptedWidgetEventHandler::ColorNormal(), JsonDataNewsArticle::coverImage, JsonDataNewsArticle::dlcName, ErrorEx, MainMenuData::GetDLCModInfoByName(), m_ArticleIndex, m_CurrentArticle, m_CurrentModInfo, m_NewsArticles, m_Root, m_TitleText, MAX_ARTICLES, and JsonDataNewsArticle::title.
Referenced by NextArticle(), PreviousArticle(), and UpdateCarouselInfo().
| void ShowPromotion | ( | ) |
References ErrorEx, JsonDataNewsArticle::fullUrl, g_Game, ModInfo::GoToStore(), m_ArticleIndex, m_CurrentModInfo, and m_NewsArticles.
Referenced by OnClick().
| protected void SwitchNews | ( | ) |
References m_ArticleIndex, m_NewsArticles, m_SwitchToNext, NextArticle(), and PreviousArticle().
| void Update | ( | float | timeslice | ) |
References m_AnimatedSpacer.
| protected void UpdateCarouselInfo | ( | ) |
References AnimatedGridSpacer(), ARTICLE_SWITCH_TIME, CALL_CATEGORY_GUI, JsonDataNewsArticle::categoryID, JsonDataNewsArticle::dlcName, MainMenuData::GetDLCModInfoByName(), ModInfo::GetIsOwned(), MainMenuData::GetNewsData(), m_AnimatedSpacer, m_GridSpacer, m_NewsArticles, m_NewsSwitchTimer, m_NextPageBtnIcon, m_Root, MAX_ARTICLES, JsonDataNewsList::News, OnAnimationCompleted(), and ShowPost().
Referenced by NewsCarousel(), and ShowNewsCarousel().
| void ~NewsCarousel | ( | ) |
References g_Game, m_NewsSwitchTimer, OnInputDeviceChanged(), and Timer::Stop().
| protected const float ARTICLE_SWITCH_TIME = 3.0 |
Referenced by UpdateCarouselInfo().
| protected ref AnimatedGridSpacer m_AnimatedSpacer |
Referenced by NextArticle(), PreviousArticle(), Update(), and UpdateCarouselInfo().
| protected int m_ArticleIndex |
Referenced by NextArticle(), OnInputDeviceChanged(), PreviousArticle(), ShowPost(), ShowPromotion(), and SwitchNews().
| protected JsonDataNewsArticle m_CurrentArticle |
Referenced by GetButtonLabel(), OnMouseEnter(), OnMouseLeave(), and ShowPost().
| protected EInputDeviceType m_CurrentInputDevice |
Referenced by GetButtonLabel(), OnInputDeviceChanged(), ShowArrowLeft(), and ShowArrowRight().
| protected ModInfo m_CurrentModInfo |
Referenced by ShowPost(), and ShowPromotion().
| protected GridSpacerWidget m_GridSpacer |
| protected ButtonWidget m_HotlinkButton |
Referenced by NewsCarousel(), OnAnimationCompleted(), OnClick(), OnMouseEnter(), and OnMouseLeave().
| protected RichTextWidget m_HotlinkButtonLabel |
Referenced by NewsCarousel(), OnAnimationCompleted(), OnInputDeviceChanged(), OnMouseEnter(), and OnMouseLeave().
| protected ImageWidget m_Image |
| protected MainMenu m_MainMenu |
Referenced by NewsCarousel().
| protected ref array<JsonDataNewsArticle> m_NewsArticles |
Referenced by NextArticle(), OnInputDeviceChanged(), PreviousArticle(), ShowPost(), ShowPromotion(), SwitchNews(), and UpdateCarouselInfo().
| protected ref Timer m_NewsSwitchTimer |
Referenced by OnClickNextArticle(), OnClickPreviousArticle(), UpdateCarouselInfo(), and ~NewsCarousel().
| protected ButtonWidget m_NextPageBtn |
Referenced by NewsCarousel(), OnClick(), OnMouseEnter(), and OnMouseLeave().
| protected ImageWidget m_NextPageBtnIcon |
Referenced by NewsCarousel(), OnInputDeviceChanged(), OnMouseEnter(), OnMouseLeave(), ShowArrowRight(), and UpdateCarouselInfo().
| protected ButtonWidget m_PrevPageBtn |
Referenced by NewsCarousel(), OnClick(), OnMouseEnter(), and OnMouseLeave().
| protected ImageWidget m_PrevPageBtnIcon |
Referenced by NewsCarousel(), OnInputDeviceChanged(), OnMouseEnter(), OnMouseLeave(), and ShowArrowLeft().
| protected Widget m_Root |
| protected bool m_SwitchToNext = true |
Referenced by SwitchNews().
| protected TextWidget m_TitleText |
Referenced by NewsCarousel(), and ShowPost().
| enum NewsCategory MAX_ARTICLES = 3 |
Referenced by ShowPost(), and UpdateCarouselInfo().