public static void Focus(WindowComponent windowComponent) { CurrentlyFocusedWindow = windowComponent; UpdateWindowsDepth(); }
public static void KeepWindowInsideScreen(WindowComponent windowComponent) { var bounds = GameObjectUtil.GetDragObjectBounds(windowComponent.ControlBar.DragObject); windowComponent.ControlBar.DragObject.panelRegion.ConstrainTargetToBounds(windowComponent.transform, ref bounds, true); }
public static void CacheComponents(WindowComponent windowComponent) { CacheWidgets(windowComponent); CachePanels(windowComponent); AddClickListersToColliders(windowComponent); }
public static void CloseWindowComponent(WindowComponent windowComponent) { var window = GetWindowFromWindowComponent(windowComponent); CloseWindow(window); }