GetMouseOverView() 개인적인 정적인 메소드

private static GetMouseOverView ( ) : GUIView
리턴 GUIView
예제 #1
0
        public static void Screenshot()
        {
            GUIView mouseOverView = ScreenShots.GetMouseOverView();

            if (mouseOverView != null)
            {
                string gUIViewName    = ScreenShots.GetGUIViewName(mouseOverView);
                Rect   screenPosition = mouseOverView.screenPosition;
                screenPosition.y      -= 1f;
                screenPosition.height += 2f;
                ScreenShots.SaveScreenShot(screenPosition, gUIViewName);
            }
        }
예제 #2
0
        public static void ScreenshotToolbar()
        {
            GUIView mouseOverView = ScreenShots.GetMouseOverView();

            if (mouseOverView != null)
            {
                string name           = ScreenShots.GetGUIViewName(mouseOverView) + "Toolbar";
                Rect   screenPosition = mouseOverView.screenPosition;
                screenPosition.y     += 19f;
                screenPosition.height = 16f;
                screenPosition.width -= 2f;
                ScreenShots.SaveScreenShotWithBorder(screenPosition, ScreenShots.kToolbarBorderColor, name);
            }
        }
예제 #3
0
        public static void ScreenshotExtendedRight()
        {
            GUIView mouseOverView = ScreenShots.GetMouseOverView();

            if (mouseOverView != null)
            {
                string     name           = ScreenShots.GetGUIViewName(mouseOverView) + "Extended";
                MainWindow mainWindow     = Resources.FindObjectsOfTypeAll(typeof(MainWindow))[0] as MainWindow;
                Rect       screenPosition = mouseOverView.screenPosition;
                screenPosition.xMax    = mainWindow.window.position.xMax;
                screenPosition.y      -= 1f;
                screenPosition.height += 2f;
                ScreenShots.SaveScreenShot(screenPosition, name);
            }
        }
예제 #4
0
        public static void Screenshot()
        {
            GUIView mouseOverView = ScreenShots.GetMouseOverView();

            if (!((Object)mouseOverView != (Object)null))
            {
                return;
            }
            string guiViewName    = ScreenShots.GetGUIViewName(mouseOverView);
            Rect   screenPosition = mouseOverView.screenPosition;

            --screenPosition.y;
            screenPosition.height += 2f;
            ScreenShots.SaveScreenShot(screenPosition, guiViewName);
        }