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

DrawConfiguration() public method

Draws the configuration.
public DrawConfiguration ( ) : void
return void
        public void DrawConfiguration()
        {
            // Show current view size
            EditorGUILayout.BeginHorizontal ();
            {
                EditorGUILayout.LabelField ("Current View Size: ", _column1);
                var size = SceneMainPanelUtility.GetGameViewSize ();
                EditorGUILayout.LabelField (string.Format ("{0} x {1}", size.x, size.y));
            }
            EditorGUILayout.EndHorizontal ();

            // Show current scale
            EditorGUILayout.BeginHorizontal ();
            {
                EditorGUILayout.LabelField ("Screenshot Scale: ", _column1);
                _screenShotScale = EditorGUILayout.IntSlider (_screenShotScale, 1, 10);
            }
            EditorGUILayout.EndHorizontal ();

            // Show estimated size
            EditorGUILayout.BeginHorizontal ();
            {
                EditorGUILayout.LabelField ("Estimated Size: ", _column1);
                var size = SceneMainPanelUtility.GetGameViewSize ();
                EditorGUILayout.LabelField (string.Format ("{0} x {1}", size.x * _screenShotScale, size.y * _screenShotScale));
            }
            EditorGUILayout.EndHorizontal ();
        }