private void DrawModePreview(Rect r, object o)
        {
            GObjectPaintingMode mode = (GObjectPaintingMode)o;

            GEditorCommon.DrawBodyBox(r);
            GUI.Label(r, ObjectNames.NicifyVariableName(mode.ToString()), GEditorCommon.CenteredMiniLabel);
        }
        private void RecordPaintModeAnalytics()
        {
            GObjectPaintingMode mode = painter.Mode;
            string url =
                mode == GObjectPaintingMode.Spawn ? GAnalytics.OPAINTER_SPAWN :
                mode == GObjectPaintingMode.Scale ? GAnalytics.OPAINTER_SCALE :
                mode == GObjectPaintingMode.Custom ? GAnalytics.OPAINTER_CUSTOM : string.Empty;

            GAnalytics.Record(url);
        }
        private void DrawModePreview(Rect r, object o)
        {
            GObjectPaintingMode mode = (GObjectPaintingMode)o;
            Texture2D           icon = GEditorSkin.Instance.GetTexture(mode.ToString() + "ObjectIcon");

            if (icon == null)
            {
                icon = GEditorSkin.Instance.GetTexture("GearIcon");
            }
            string label = ObjectNames.NicifyVariableName(mode.ToString());

            DrawMode(r, label, icon);
        }