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); }
private void DrawModePreview(Rect r, object o) { GFoliagePaintingMode mode = (GFoliagePaintingMode)o; GEditorCommon.DrawBodyBox(r); GUI.Label(r, ObjectNames.NicifyVariableName(mode.ToString()), GEditorCommon.CenteredMiniLabel); }