4 protected const string TEXT_OWNED =
"#layout_dlc_owned";
5 protected const string TEXT_UNOWNED =
"#layout_dlc_unowned";
31#ifdef PLATFORM_CONSOLE
40#ifdef PLATFORM_CONSOLE
41 if (
GetGame().GetContentDLCService())
49 m_StoreButton =
m_Root.FindAnyWidget(
"dlc_openStore");
52 m_VideoWidget.Show(
false);
54 m_DlcPromotionImage.Show(
true);
55 m_BannerFrame =
m_Root.FindAnyWidget(
"dlc_BannerFrame");
60 m_ColorBackgroundOriginal = m_Background.GetColor();
68 m_Root =
GetGame().GetWorkspace().CreateWidgets(
"gui/layouts/new_ui/dlc_panels/DLC_Panel.layout", parent);
96 m_ThisModInfo.GoToStore();
103 if (m_VideoWidget.GetState() !=
VideoState.NONE)
106 string path =
"video\\" + m_DlcInfo.VideoFileName;
107 if (m_DlcInfo.VideoFileName !=
"")
108 return m_VideoWidget.Load(
path,
true);
116 m_VideoWidget.Play();
121 m_VideoWidget.Stop();
126 m_VideoWidget.Pause();
131 m_VideoWidget.Stop();
132 m_VideoWidget.Unload();
137 m_Background.SetColor(
ARGB(255, 54, 16, 16));
142 m_Background.SetColor(m_ColorBackgroundOriginal);
149 if (m_ThisModInfo.GetIsOwned())
152 m_BannerHandler.SetBannerText(TEXT_OWNED);
157 m_BannerHandler.SetBannerText(TEXT_UNOWNED);
171 m_GamepadStoreImage =
m_Root.FindAnyWidget(
"image_button_ps");
172 desc.SetText(
"#dlc_open_store_PS");
174 m_GamepadStoreImage =
m_Root.FindAnyWidget(
"image_button_xbox");
175 desc.SetText(
"#dlc_open_store");
189 m_TitleTextDlc.SetText(m_DlcInfo.HeaderText);
190 m_DescriptionTextDlc.SetText(m_DlcInfo.DescriptionText);
195#ifdef PLATFORM_CONSOLE
void OnInputDeviceChanged(EInputDeviceType pInputDeviceType)
void OnDLCChange(EDLCId dlcId)
const int COLOR_LIVONIA_EMERALD_GREEN
proto native CGame GetGame()
int ARGB(int a, int r, int g, int b)