6 protected string m_sTargetContent;
9 protected string m_sTargetHighlight;
12 protected string m_sDeployMenuClass;
15 override event bool OnFocus(Widget w,
int x,
int y)
18 ToggleInteractions(
true, w);
24 override event bool OnFocusLost(Widget w,
int x,
int y)
27 ToggleInteractions(
false, w);
34 void ToggleInteractions(
bool enabled, Widget w)
36 BaseGameMode gameMode =
GetGame().GetGameMode();
41 if (
"SCR_WelcomeScreenComponent" == m_sDeployMenuClass)
42 deployMenuBase = SCR_WelcomeScreenComponent.Cast(gameMode.FindComponent(SCR_WelcomeScreenComponent));
43 else if (
"SCR_DebriefingScreenComponent" == m_sDeployMenuClass)
44 deployMenuBase = SCR_DebriefingScreenComponent.Cast(gameMode.FindComponent(SCR_DebriefingScreenComponent));
53 array<ref SCR_WelcomeScreenBaseContent> screenBaseContents = {};
54 baseLayout.GetScreenBaseContents(screenBaseContents);
56 foreach (SCR_WelcomeScreenBaseContent content : screenBaseContents)
58 if (content.GetContentName() != m_sTargetContent)
61 if (content.GetIsInteractible())
63 content.ToggleInteractions(enabled);
66 w.FindAnyWidget(m_sTargetHighlight).SetOpacity(0.5);
68 w.FindAnyWidget(m_sTargetHighlight).SetOpacity(0);
72 w.SetFlags(WidgetFlags.NOFOCUS);
79 override event void HandlerAttached(Widget w)
82 GetGame().GetCallqueue().CallLater(ToggleInteractions, 100,
false,
false, w);