예제 #1
0
 public static void Focus(WindowComponent windowComponent)
 {
     CurrentlyFocusedWindow = windowComponent;
     UpdateWindowsDepth();
 }
예제 #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);
        }
예제 #3
0
 public static void CacheComponents(WindowComponent windowComponent)
 {
     CacheWidgets(windowComponent);
     CachePanels(windowComponent);
     AddClickListersToColliders(windowComponent);
 }
예제 #4
0
        public static void CloseWindowComponent(WindowComponent windowComponent)
        {
            var window = GetWindowFromWindowComponent(windowComponent);

            CloseWindow(window);
        }