DayZ Scripts
PC Stable Documentation
 
Loading...
Searching...
No Matches
NewsCarousel.c File Reference

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< JsonDataNewsArticlem_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
 

Enumeration Type Documentation

◆ NewsCategory

Enumerator
DLCS 
DLC_PROMO 
MISC_PROMO 

Function Documentation

◆ ColorHighlight()

protected void ColorHighlight ( Widget  w)

◆ ColorNormal()

protected void ColorNormal ( Widget  w)

◆ GetButtonLabel()

◆ NewsCarousel()

◆ NextArticle()

protected void NextArticle ( )

◆ OnAnimationCompleted()

void OnAnimationCompleted ( )

◆ OnClick()

override bool OnClick ( Widget  w,
int  x,
int  y,
int  button 
)

◆ OnClickNextArticle()

void OnClickNextArticle ( )

References m_NewsSwitchTimer, NextArticle(), and Timer::Stop().

Referenced by OnClick().

◆ OnClickPreviousArticle()

void OnClickPreviousArticle ( )

References m_NewsSwitchTimer, PreviousArticle(), and Timer::Stop().

Referenced by OnClick().

◆ OnInputDeviceChanged()

◆ OnMouseEnter()

◆ OnMouseLeave()

◆ PreviousArticle()

protected void PreviousArticle ( )

◆ ShowArrowLeft()

protected void ShowArrowLeft ( bool  state)

◆ ShowArrowRight()

protected void ShowArrowRight ( bool  state)

◆ ShowNewsCarousel()

void ShowNewsCarousel ( bool  show)

◆ ShowPost()

◆ ShowPromotion()

◆ SwitchNews()

protected void SwitchNews ( )

◆ Update()

void Update ( float  timeslice)

References m_AnimatedSpacer.

◆ UpdateCarouselInfo()

◆ ~NewsCarousel()

Variable Documentation

◆ ARTICLE_SWITCH_TIME

protected const float ARTICLE_SWITCH_TIME = 3.0

Referenced by UpdateCarouselInfo().

◆ m_AnimatedSpacer

protected ref AnimatedGridSpacer m_AnimatedSpacer

◆ m_ArticleIndex

◆ m_CurrentArticle

protected JsonDataNewsArticle m_CurrentArticle

◆ m_CurrentInputDevice

protected EInputDeviceType m_CurrentInputDevice

◆ m_CurrentModInfo

protected ModInfo m_CurrentModInfo

Referenced by ShowPost(), and ShowPromotion().

◆ m_GridSpacer

protected GridSpacerWidget m_GridSpacer

◆ m_HotlinkButton

protected ButtonWidget m_HotlinkButton

◆ m_HotlinkButtonLabel

◆ m_Image

protected ImageWidget m_Image

◆ m_MainMenu

protected MainMenu m_MainMenu

Referenced by NewsCarousel().

◆ m_NewsArticles

◆ m_NewsSwitchTimer

protected ref Timer m_NewsSwitchTimer

◆ m_NextPageBtn

protected ButtonWidget m_NextPageBtn

◆ m_NextPageBtnIcon

protected ImageWidget m_NextPageBtnIcon

◆ m_PrevPageBtn

protected ButtonWidget m_PrevPageBtn

◆ m_PrevPageBtnIcon

protected ImageWidget m_PrevPageBtnIcon

◆ m_Root

protected Widget m_Root

◆ m_SwitchToNext

protected bool m_SwitchToNext = true

Referenced by SwitchNews().

◆ m_TitleText

protected TextWidget m_TitleText

Referenced by NewsCarousel(), and ShowPost().

◆ MAX_ARTICLES

enum NewsCategory MAX_ARTICLES = 3

Referenced by ShowPost(), and UpdateCarouselInfo().