33 if (!m_OnActiveWidgetInteraction)
36 return m_OnActiveWidgetInteraction;
45 return m_OnDialogOpen;
54 return m_OnDialogClose;
72 return m_OnMenuOpened;
87 if (!m_OnMenuFocusGained)
90 return m_OnMenuFocusGained;
96 if (!m_OnMenuFocusLost)
99 return m_OnMenuFocusLost;
133 static void SetActiveWidgetInteractionState(
bool isActive,
int delay = 0)
135 if (m_OnActiveWidgetInteraction)
136 m_OnActiveWidgetInteraction.Invoke(isActive, delay);
141 static bool IsInTopMenu(notnull Widget componentRoot)
143 MenuManager menuManager =
GetGame().GetMenuManager();
147 return menuManager.GetOwnerMenu(componentRoot) == menuManager.GetTopMenu();
156 static void OnDialogOpen(
DialogUI dialog)
159 m_OnDialogOpen.Invoke(dialog);
164 static void OnDialogClose(
DialogUI dialog)
167 m_OnDialogClose.Invoke(dialog);
176 m_OnMenuOpen.Invoke(menu);
184 m_OnMenuOpened.Invoke(menu);
192 m_OnMenuClose.Invoke(menu);
199 if (m_OnMenuFocusGained)
200 m_OnMenuFocusGained.Invoke(menu);
207 if (m_OnMenuFocusLost)
208 m_OnMenuFocusLost.Invoke(menu);
216 m_OnMenuShow.Invoke(menu);
224 m_OnMenuHide.Invoke(menu);
237 enum SCR_EListMenuWidgetFocus