TuxedoBerries.ScenePanel.Drawers.ScreenshotDrawer.DrawTakeScreenshotButton C# (CSharp) Method

DrawTakeScreenshotButton() private method

private DrawTakeScreenshotButton ( string dataPath, bool enableShot, string suggestedFolder, string suggestedName ) : string
dataPath string
enableShot bool
suggestedFolder string
suggestedName string
return string
        private string DrawTakeScreenshotButton(string dataPath, bool enableShot, string suggestedFolder, string suggestedName)
        {
            // Take Snapshot
            _colorStack.Push (enableShot ? ColorPalette.SnapshotButton_ON : ColorPalette.SnapshotButton_OFF);
            if (GUILayout.Button (GetContentIcon(IconSet.CAMERA_ICON, TooltipSet.SCREENSHOT_BUTTON_TOOLTIP), _column1)) {
                if (enableShot) {
                    if (string.IsNullOrEmpty (dataPath)) {
                        SceneMainPanelUtility.EnsureDirectory (suggestedFolder);
                    }
                    dataPath = SceneMainPanelUtility.TakeSnapshot (dataPath, _screenShotScale, suggestedFolder, suggestedName);
                }
            }
            _colorStack.Pop ();
            return dataPath;
        }