7 override event bool OnMouseEnter(Widget w,
int x,
int y)
9 if (m_MapUiTask && m_MapUiTask.m_wHorizLayout && !m_MapUiTask.m_wHorizLayout.IsEnabled())
10 m_MapUiTask.m_wHorizLayout.SetEnabled(
true);
16 override bool OnMouseLeave(Widget w, Widget enterW,
int x,
int y)
21 ButtonWidget assignButton = ButtonWidget.Cast(m_MapUiTask.GetMapWidget().FindAnyWidget(
"TaskTitleButton"));
22 Widget overlayWidget = m_MapUiTask.GetMapWidget().FindAnyWidget(
"OverlayWidget");
23 Widget assignee = Widget.Cast(m_MapUiTask.GetMapWidget().FindAnyWidget(
"Assignee"));
24 Widget iconHover = Widget.Cast(m_MapUiTask.GetMapWidget().FindAnyWidget(
"TaskIconHover"));
26 if (!assignButton || !overlayWidget || !assignee || !iconHover)
29 if (enterW != overlayWidget && enterW != assignButton)
31 assignButton.SetVisible(
false);
33 assignee.SetEnabled(
false);
34 assignee.SetOpacity(0);
36 iconHover.SetEnabled(
false);
37 iconHover.SetOpacity(0);
39 m_MapUiTask.m_wHorizLayout.SetEnabled(
false);
48 m_MapUiTask = mapUiTask;