4 protected string m_sImageName;
7 protected string m_sImageHolderName;
10 protected string m_sTileName;
13 protected string m_sSubtitleName;
16 protected string m_sDebriefingName;
18 protected Widget m_wRoot;
26 TextWidget titleWidget = TextWidget.Cast(
m_wRoot.FindAnyWidget(m_sTileName));
27 TextWidget subtitleWidget = TextWidget.Cast(
m_wRoot.FindAnyWidget(m_sSubtitleName));
28 TextWidget debriefingWidget = TextWidget.Cast(
m_wRoot.FindAnyWidget(m_sDebriefingName));
29 ImageWidget image = ImageWidget.Cast(
m_wRoot.FindAnyWidget(m_sImageName));
32 titleWidget.SetTextFormat(endScreenUIContent.m_sTitle, endScreenUIContent.m_sTitleParam);
35 subtitleWidget.SetTextFormat(endScreenUIContent.m_sSubtitle, endScreenUIContent.m_sSubtitleParam);
38 debriefingWidget.SetTextFormat(endScreenUIContent.m_sDebriefing, endScreenUIContent.m_sDebriefingParam);
41 if (image && !endScreenUIContent.m_sImageTexture.IsEmpty())
43 image.LoadImageTexture(0, endScreenUIContent.m_sImageTexture);
48 Widget imageHolder =
m_wRoot.FindAnyWidget(m_sImageHolderName);
50 imageHolder.SetVisible(
false);
54 override void HandlerAttached(Widget w)
58 override void HandlerDeattached(Widget w)