![]() |
Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
|
Go to the source code of this file.
Enumerations | |
| enum | NewsCategory { DLCS , DLC_PROMO , MISC_PROMO } |
Functions | |
| void | ~NewsCarousel () |
| void | ColorHighlight (Widget w) |
| void | ColorNormal (Widget w) |
| void | Destroy () |
| Cleans up the Effect, including unregistering if needed. | |
| string | GetButtonLabel (string color) |
| void | NewsCarousel (Widget parent, UIScriptedMenu mainMenu) |
| void | NextArticle () |
| void | OnAnimationCompleted () |
| override bool | OnClick (Widget w, int x, int y, int button) |
| void | OnClickNextArticle () |
| void | OnClickPreviousArticle () |
| void | OnInputDeviceChanged (EInputDeviceType pInputDeviceType) |
| override bool | OnMouseEnter (Widget w, int x, int y) |
| override bool | OnMouseLeave (Widget w, Widget enterW, int x, int y) |
| void | PreviousArticle () |
| void | ShowArrowLeft (bool state) |
| void | ShowArrowRight (bool state) |
| void | ShowNewsCarousel (bool show) |
| void | ShowPost (int index) |
| void | ShowPromotion () |
| void | SwitchNews () |
| void | Update (float timeslice) |
| void | UpdateCarouselInfo () |
Variables | |
| const float | ARTICLE_SWITCH_TIME = 3.0 |
| ref AnimatedGridSpacer | m_AnimatedSpacer |
| int | m_ArticleIndex |
| JsonDataNewsArticle | m_CurrentArticle |
| EInputDeviceType | m_CurrentInputDevice |
| ModInfo | m_CurrentModInfo |
| GridSpacerWidget | m_GridSpacer |
| ButtonWidget | m_HotlinkButton |
| RichTextWidget | m_HotlinkButtonLabel |
| ImageWidget | m_Image |
| MainMenu | m_MainMenu |
| ref array< JsonDataNewsArticle > | m_NewsArticles |
| ref Timer | m_NewsSwitchTimer |
| ButtonWidget | m_NextPageBtn |
| ImageWidget | m_NextPageBtnIcon |
| ButtonWidget | m_PrevPageBtn |
| ImageWidget | m_PrevPageBtnIcon |
| Widget | m_Root |
| bool | m_SwitchToNext = true |
| TextWidget | m_TitleText |
| enum NewsCategory | MAX_ARTICLES = 3 |
| enum NewsCategory |
| Enumerator | |
|---|---|
| DLCS | |
| DLC_PROMO | |
| MISC_PROMO | |
Definition at line 1 of file newscarousel.c.
|
protected |
Definition at line 100 of file newscarousel.c.
References g_Game, m_NewsSwitchTimer, and OnInputDeviceChanged().
|
protected |
Definition at line 307 of file newscarousel.c.
References ARGB().
Referenced by OptionSelectorBase::OnMouseEnter(), and ServerBrowserTab::OnMouseEnter().
|
protected |
Definition at line 312 of file newscarousel.c.
References ARGB().
Referenced by OptionSelectorBase::OnMouseLeave(), and ServerBrowserTab::OnMouseLeave().
Definition at line 547 of file newscarousel.c.
References string::Format(), InputUtils::GetRichtextButtonIconFromInputAction(), m_CurrentArticle, and m_CurrentInputDevice.
Referenced by NewsCarousel(), OnAnimationCompleted(), OnInputDeviceChanged(), OnMouseEnter(), and OnMouseLeave().
|
protected |
Definition at line 47 of file newscarousel.c.
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 |
Definition at line 328 of file newscarousel.c.
References m_AnimatedSpacer, m_ArticleIndex, m_NewsArticles, ShowArrowLeft(), ShowArrowRight(), and ShowPost().
Referenced by OnClickNextArticle(), and SwitchNews().
|
protected |
Definition at line 294 of file newscarousel.c.
References GetButtonLabel(), GetWidgetUnderCursor(), m_HotlinkButton, and m_HotlinkButtonLabel.
Referenced by UpdateCarouselInfo().
Definition at line 441 of file newscarousel.c.
References m_HotlinkButton, m_NextPageBtn, m_PrevPageBtn, OnClickNextArticle(), OnClickPreviousArticle(), ShowPromotion(), x, and y.
|
protected |
Definition at line 317 of file newscarousel.c.
References m_NewsSwitchTimer, and NextArticle().
Referenced by OnClick().
|
protected |
Definition at line 346 of file newscarousel.c.
References m_NewsSwitchTimer, and PreviousArticle().
Referenced by OnClick().
|
protected |
Definition at line 507 of file newscarousel.c.
References g_Game, GetButtonLabel(), m_ArticleIndex, m_CurrentInputDevice, m_HotlinkButtonLabel, m_NewsArticles, m_NextPageBtnIcon, and m_PrevPageBtnIcon.
Definition at line 459 of file newscarousel.c.
References ARGB(), GetButtonLabel(), m_CurrentArticle, m_HotlinkButton, m_HotlinkButtonLabel, m_NextPageBtn, m_NextPageBtnIcon, m_PrevPageBtn, m_PrevPageBtnIcon, x, and y.
Definition at line 483 of file newscarousel.c.
References ARGB(), GetButtonLabel(), m_CurrentArticle, m_HotlinkButton, m_HotlinkButtonLabel, m_NextPageBtn, m_NextPageBtnIcon, m_PrevPageBtn, m_PrevPageBtnIcon, x, and y.
|
protected |
Definition at line 357 of file newscarousel.c.
References m_AnimatedSpacer, m_ArticleIndex, m_NewsArticles, ShowArrowLeft(), ShowArrowRight(), and ShowPost().
Referenced by OnClickPreviousArticle(), and SwitchNews().
|
protected |
Definition at line 397 of file newscarousel.c.
References g_Game, m_CurrentInputDevice, and m_PrevPageBtnIcon.
Referenced by NextArticle(), and PreviousArticle().
|
protected |
Definition at line 375 of file newscarousel.c.
References g_Game, m_CurrentInputDevice, and m_NextPageBtnIcon.
Referenced by NextArticle(), and PreviousArticle().
|
protected |
Definition at line 137 of file newscarousel.c.
References m_Root, and UpdateCarouselInfo().
|
protected |
Definition at line 241 of file newscarousel.c.
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().
|
protected |
Definition at line 419 of file newscarousel.c.
References ErrorEx, JsonDataNewsArticle::fullUrl, g_Game, m_ArticleIndex, m_CurrentModInfo, and m_NewsArticles.
Referenced by OnClick().
|
protected |
Definition at line 116 of file newscarousel.c.
References m_ArticleIndex, m_NewsArticles, m_SwitchToNext, NextArticle(), and PreviousArticle().
|
protected |
Definition at line 605 of file newscarousel.c.
References m_AnimatedSpacer.
|
protected |
Definition at line 147 of file newscarousel.c.
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().
|
protected |
Definition at line 11 of file newscarousel.c.
Referenced by UpdateCarouselInfo().
|
protected |
Definition at line 43 of file newscarousel.c.
Referenced by NextArticle(), PreviousArticle(), Update(), and UpdateCarouselInfo().
|
protected |
Definition at line 31 of file newscarousel.c.
Referenced by NextArticle(), OnInputDeviceChanged(), PreviousArticle(), ShowPost(), ShowPromotion(), and SwitchNews().
|
protected |
Definition at line 29 of file newscarousel.c.
Referenced by GetButtonLabel(), OnMouseEnter(), OnMouseLeave(), and ShowPost().
|
protected |
Definition at line 45 of file newscarousel.c.
Referenced by GetButtonLabel(), OnInputDeviceChanged(), ShowArrowLeft(), and ShowArrowRight().
|
protected |
Definition at line 30 of file newscarousel.c.
Referenced by ShowPost(), and ShowPromotion().
|
protected |
Definition at line 42 of file newscarousel.c.
|
protected |
Definition at line 14 of file newscarousel.c.
Referenced by NewsCarousel(), OnAnimationCompleted(), OnClick(), OnMouseEnter(), and OnMouseLeave().
|
protected |
Definition at line 15 of file newscarousel.c.
Referenced by NewsCarousel(), OnAnimationCompleted(), OnInputDeviceChanged(), OnMouseEnter(), and OnMouseLeave().
|
protected |
Definition at line 16 of file newscarousel.c.
|
protected |
Definition at line 39 of file newscarousel.c.
Referenced by NewsCarousel().
|
protected |
Definition at line 28 of file newscarousel.c.
Referenced by NextArticle(), OnInputDeviceChanged(), PreviousArticle(), ShowPost(), ShowPromotion(), SwitchNews(), and UpdateCarouselInfo().
|
protected |
Definition at line 33 of file newscarousel.c.
Referenced by ~NewsCarousel(), OnClickNextArticle(), OnClickPreviousArticle(), and UpdateCarouselInfo().
|
protected |
Definition at line 18 of file newscarousel.c.
Referenced by NewsCarousel(), OnClick(), OnMouseEnter(), and OnMouseLeave().
|
protected |
Definition at line 20 of file newscarousel.c.
Referenced by NewsCarousel(), OnInputDeviceChanged(), OnMouseEnter(), OnMouseLeave(), ShowArrowRight(), and UpdateCarouselInfo().
|
protected |
Definition at line 19 of file newscarousel.c.
Referenced by NewsCarousel(), OnClick(), OnMouseEnter(), and OnMouseLeave().
|
protected |
Definition at line 21 of file newscarousel.c.
Referenced by NewsCarousel(), OnInputDeviceChanged(), OnMouseEnter(), OnMouseLeave(), and ShowArrowLeft().
|
protected |
Definition at line 13 of file newscarousel.c.
|
protected |
Definition at line 34 of file newscarousel.c.
Referenced by SwitchNews().
|
protected |
Definition at line 17 of file newscarousel.c.
Referenced by NewsCarousel(), and ShowPost().
| enum NewsCategory MAX_ARTICLES = 3 |
Referenced by ShowPost(), and UpdateCarouselInfo().