Dayz Explorer 1.29.162510
Loading...
Searching...
No Matches
newscarousel.c File Reference

Go to the source code of this file.

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.
void SwitchNews ()
void ShowNewsCarousel (bool show)
void UpdateCarouselInfo ()
void ShowPost (int index)
void OnAnimationCompleted ()
void ColorHighlight (Widget w)
void ColorNormal (Widget w)
void OnClickNextArticle ()
void NextArticle ()
void OnClickPreviousArticle ()
void PreviousArticle ()
void ShowArrowRight (bool state)
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)
void OnInputDeviceChanged (EInputDeviceType pInputDeviceType)
string GetButtonLabel (string color)
void Update (float timeslice)

Variables

enum NewsCategory MAX_ARTICLES = 3
const float ARTICLE_SWITCH_TIME = 3.0
Widget m_Root
ButtonWidget m_HotlinkButton
RichTextWidget m_HotlinkButtonLabel
ImageWidget m_Image
TextWidget m_TitleText
ButtonWidget m_NextPageBtn
ButtonWidget m_PrevPageBtn
ImageWidget m_NextPageBtnIcon
ImageWidget m_PrevPageBtnIcon
ref array< JsonDataNewsArticlem_NewsArticles
JsonDataNewsArticle m_CurrentArticle
ModInfo m_CurrentModInfo
int m_ArticleIndex
ref Timer m_NewsSwitchTimer
bool m_SwitchToNext = true
MainMenu m_MainMenu
GridSpacerWidget m_GridSpacer
ref AnimatedGridSpacer m_AnimatedSpacer
EInputDeviceType m_CurrentInputDevice

Enumeration Type Documentation

◆ NewsCategory

Enumerator
DLCS 
DLC_PROMO 
MISC_PROMO 

Definition at line 1 of file newscarousel.c.

Function Documentation

◆ ColorHighlight()

void ColorHighlight ( Widget w)
protected

Definition at line 304 of file newscarousel.c.

◆ ColorNormal()

void ColorNormal ( Widget w)
protected

Definition at line 309 of file newscarousel.c.

◆ GetButtonLabel()

string GetButtonLabel ( string color)
protected

Definition at line 544 of file newscarousel.c.

◆ NewsCarousel()

void NewsCarousel ( Widget parent,
UIScriptedMenu mainMenu )
protected

Definition at line 47 of file newscarousel.c.

◆ NextArticle()

void NextArticle ( )
protected

Definition at line 325 of file newscarousel.c.

◆ OnAnimationCompleted()

void OnAnimationCompleted ( )
protected

Definition at line 291 of file newscarousel.c.

◆ OnClick()

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

Definition at line 438 of file newscarousel.c.

◆ OnClickNextArticle()

void OnClickNextArticle ( )
protected

Definition at line 314 of file newscarousel.c.

◆ OnClickPreviousArticle()

void OnClickPreviousArticle ( )
protected

Definition at line 343 of file newscarousel.c.

◆ OnInputDeviceChanged()

void OnInputDeviceChanged ( EInputDeviceType pInputDeviceType)
protected

Definition at line 504 of file newscarousel.c.

◆ OnMouseEnter()

override bool OnMouseEnter ( Widget w,
int x,
int y )
protected

Definition at line 456 of file newscarousel.c.

◆ OnMouseLeave()

override bool OnMouseLeave ( Widget w,
Widget enterW,
int x,
int y )
protected

Definition at line 480 of file newscarousel.c.

◆ PreviousArticle()

void PreviousArticle ( )
protected

Definition at line 354 of file newscarousel.c.

◆ ShowArrowLeft()

void ShowArrowLeft ( bool state)
protected

Definition at line 394 of file newscarousel.c.

◆ ShowArrowRight()

void ShowArrowRight ( bool state)
protected

Definition at line 372 of file newscarousel.c.

◆ ShowNewsCarousel()

void ShowNewsCarousel ( bool show)
protected

Definition at line 137 of file newscarousel.c.

◆ ShowPost()

void ShowPost ( int index)
protected

Definition at line 238 of file newscarousel.c.

◆ ShowPromotion()

void ShowPromotion ( )
protected

Definition at line 416 of file newscarousel.c.

◆ SwitchNews()

void SwitchNews ( )
protected

Definition at line 116 of file newscarousel.c.

◆ Update()

void Update ( float timeslice)
protected

Definition at line 602 of file newscarousel.c.

◆ UpdateCarouselInfo()

void UpdateCarouselInfo ( )
protected

Definition at line 147 of file newscarousel.c.

◆ ~NewsCarousel()

void ~NewsCarousel ( )
protected

Definition at line 100 of file newscarousel.c.

Variable Documentation

◆ ARTICLE_SWITCH_TIME

const float ARTICLE_SWITCH_TIME = 3.0
protected

Definition at line 11 of file newscarousel.c.

◆ m_AnimatedSpacer

ref AnimatedGridSpacer m_AnimatedSpacer
protected

Definition at line 43 of file newscarousel.c.

◆ m_ArticleIndex

int m_ArticleIndex
protected

Definition at line 31 of file newscarousel.c.

◆ m_CurrentArticle

JsonDataNewsArticle m_CurrentArticle
protected

Definition at line 29 of file newscarousel.c.

◆ m_CurrentInputDevice

EInputDeviceType m_CurrentInputDevice
protected

Definition at line 45 of file newscarousel.c.

◆ m_CurrentModInfo

ModInfo m_CurrentModInfo
protected

Definition at line 30 of file newscarousel.c.

◆ m_GridSpacer

GridSpacerWidget m_GridSpacer
protected

Definition at line 42 of file newscarousel.c.

◆ m_HotlinkButton

ButtonWidget m_HotlinkButton
protected

Definition at line 14 of file newscarousel.c.

◆ m_HotlinkButtonLabel

RichTextWidget m_HotlinkButtonLabel
protected

Definition at line 15 of file newscarousel.c.

◆ m_Image

ImageWidget m_Image
protected

Definition at line 16 of file newscarousel.c.

◆ m_MainMenu

MainMenu m_MainMenu
protected

Definition at line 39 of file newscarousel.c.

◆ m_NewsArticles

ref array<JsonDataNewsArticle> m_NewsArticles
protected

Definition at line 28 of file newscarousel.c.

◆ m_NewsSwitchTimer

ref Timer m_NewsSwitchTimer
protected

Definition at line 33 of file newscarousel.c.

◆ m_NextPageBtn

ButtonWidget m_NextPageBtn
protected

Definition at line 18 of file newscarousel.c.

◆ m_NextPageBtnIcon

ImageWidget m_NextPageBtnIcon
protected

Definition at line 20 of file newscarousel.c.

◆ m_PrevPageBtn

ButtonWidget m_PrevPageBtn
protected

Definition at line 19 of file newscarousel.c.

◆ m_PrevPageBtnIcon

ImageWidget m_PrevPageBtnIcon
protected

Definition at line 21 of file newscarousel.c.

◆ m_Root

Widget m_Root
protected

Definition at line 13 of file newscarousel.c.

◆ m_SwitchToNext

bool m_SwitchToNext = true
protected

Definition at line 34 of file newscarousel.c.

◆ m_TitleText

TextWidget m_TitleText
protected

Definition at line 17 of file newscarousel.c.

◆ MAX_ARTICLES

enum NewsCategory MAX_ARTICLES = 3