48 {
49 m_Root =
g_Game.GetWorkspace().CreateWidgets(
"gui/layouts/new_ui/news_carousel.layout", parent);
50
52
57
60
62 #ifdef PLATFORM_CONSOLE
63
64 m_NextPageBtnIconConsole = ImageWidget.Cast(
m_Root.FindAnyWidget(
"next_icon_console"));
65 m_PrevPageBtnIconConsole = ImageWidget.Cast(
m_Root.FindAnyWidget(
"prev_icon_console"));
66
67 #ifdef PLATFORM_XBOX
68 m_NextPageBtnIconConsole.LoadImageFile(0, "set:xbox_buttons image:DPAD_right");
69 m_PrevPageBtnIconConsole.LoadImageFile(0, "set:xbox_buttons image:DPAD_left");
70 #else
71 m_NextPageBtnIconConsole.LoadImageFile(0, "set:playstation_buttons image:DPAD_right");
72 m_PrevPageBtnIconConsole.LoadImageFile(0, "set:playstation_buttons image:DPAD_left");
73 #endif
74 #endif
75
76 #ifdef PLATFORM_CONSOLE
78 #else
80 #endif
81
83
85
87
89
90 #ifdef PLATFORM_CONSOLE
92 {
94 }
95 #endif
96
98 }
void OnInputDeviceChanged(EInputDeviceType pInputDeviceType)
enum AnimatedGridSpacerEasingType m_GridSpacer
ButtonWidget m_NextPageBtn
ButtonWidget m_PrevPageBtn
ImageWidget m_NextPageBtnIcon
RichTextWidget m_HotlinkButtonLabel
void UpdateCarouselInfo()
ButtonWidget m_HotlinkButton
void OnInputDeviceChanged(EInputDeviceType pInputDeviceType)
string GetButtonLabel(string color)
ImageWidget m_PrevPageBtnIcon