GetGUIViewName() private static method

private static GetGUIViewName ( GUIView view ) : string
view GUIView
return string
Esempio n. 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);
            }
        }
Esempio n. 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);
            }
        }
Esempio n. 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);
            }
        }
Esempio n. 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);
        }