Example #1
0
        private void DrawModePreview(Rect r, object o)
        {
            GFoliagePaintingMode mode = (GFoliagePaintingMode)o;

            GEditorCommon.DrawBodyBox(r);
            GUI.Label(r, ObjectNames.NicifyVariableName(mode.ToString()), GEditorCommon.CenteredMiniLabel);
        }
Example #2
0
        private void RecordPaintModeAnalytics()
        {
            GFoliagePaintingMode mode = painter.Mode;
            string url =
                mode == GFoliagePaintingMode.PaintTree ? GAnalytics.FPAINTER_PAINT_TREE :
                mode == GFoliagePaintingMode.ScaleTree ? GAnalytics.FPAINTER_SCALE_TREE :
                mode == GFoliagePaintingMode.PaintGrass ? GAnalytics.FPAINTER_PAINT_GRASS :
                mode == GFoliagePaintingMode.ScaleGrass ? GAnalytics.FPAINTER_SCALE_GRASS :
                mode == GFoliagePaintingMode.Custom ? GAnalytics.FPAINTER_CUSTOM : string.Empty;

            GAnalytics.Record(url);
        }
Example #3
0
        private void DrawModePreview(Rect r, object o)
        {
            GFoliagePaintingMode mode = (GFoliagePaintingMode)o;
            Texture2D            icon = GEditorSkin.Instance.GetTexture(mode.ToString() + "Icon");

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

            DrawMode(r, label, icon);
        }