8 protected ref MissionWorkshopItem m_Scenario;
11 protected SCR_ScenarioBackendImageComponent m_BackendImageComponent;
14 override void HandlerAttached(Widget w)
16 super.HandlerAttached(w);
18 m_BackendImageComponent = SCR_ScenarioBackendImageComponent.Cast(
m_CommonWidgets.m_wBackendImage.FindHandler(SCR_ScenarioBackendImageComponent));
25 void SetScenario(MissionWorkshopItem scenario)
44 protected void UpdateAllWidgets()
55 if (m_BackendImageComponent)
56 m_BackendImageComponent.SetScenarioAndImage(
null,
null);
64 title = m_Header.m_sName;
72 UpdateAuthorNameText();
81 if (m_BackendImageComponent)
86 m_BackendImageComponent.SetScenarioAndImage(
m_Scenario,
null);
90 bool isInError = SCR_ScenarioEntryHelper.IsModInErrorState(
m_Scenario);
91 float saturation =
UIConstants.ENABLED_WIDGET_SATURATION;
93 m_CommonWidgets.m_WarningOverlayComponent.SetWarningVisible(isInError,
false);
97 saturation =
UIConstants.DISABLED_WIDGET_SATURATION;
99 if (m_BackendImageComponent)
100 m_BackendImageComponent.SetImageSaturation(saturation);
104 protected void UpdateAuthorNameText()