GetMouseOverView() private static method

private static GetMouseOverView ( ) : GUIView
return GUIView
Example #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);
            }
        }
Example #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);
            }
        }
Example #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);
            }
        }
Example #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);
        }