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); } }
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); } }
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); } }
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); }