Beispiel #1
0
 public static void Focus(WindowComponent windowComponent)
 {
     CurrentlyFocusedWindow = windowComponent;
     UpdateWindowsDepth();
 }
Beispiel #2
0
        public static void KeepWindowInsideScreen(WindowComponent windowComponent)
        {
            var bounds = GameObjectUtil.GetDragObjectBounds(windowComponent.ControlBar.DragObject);

            windowComponent.ControlBar.DragObject.panelRegion.ConstrainTargetToBounds(windowComponent.transform, ref bounds, true);
        }
Beispiel #3
0
 public static void CacheComponents(WindowComponent windowComponent)
 {
     CacheWidgets(windowComponent);
     CachePanels(windowComponent);
     AddClickListersToColliders(windowComponent);
 }
Beispiel #4
0
        public static void CloseWindowComponent(WindowComponent windowComponent)
        {
            var window = GetWindowFromWindowComponent(windowComponent);

            CloseWindow(window);
        }