3.0 - cleanup code

This commit is contained in:
monitor1394
2021-12-24 13:33:09 +08:00
parent fa3137eb55
commit 90cb25b74f
300 changed files with 184 additions and 1999 deletions

View File

@@ -1,14 +1,8 @@
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/
using System;
namespace XCharts
namespace XCharts.Editor
{
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
public sealed class ComponentEditorAttribute : Attribute

View File

@@ -1,14 +1,8 @@
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/
using System;
namespace XCharts
namespace XCharts.Editor
{
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
public sealed class SerieEditorAttribute : Attribute

View File

@@ -1,20 +1,14 @@
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/

using System;
using System.Collections.Generic;
using System.Text;
using UnityEditor;
using UnityEngine;
using System.Text;
using System;
namespace XCharts
namespace XCharts.Editor
{
[CustomEditor(typeof(BaseChart), true)]
public class BaseChartEditor : Editor
public class BaseChartEditor : UnityEditor.Editor
{
protected BaseChart m_Chart;
protected SerializedProperty m_Script;

View File

@@ -1,14 +1,8 @@
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/

using UnityEditor;
using UnityEngine;
namespace XCharts
namespace XCharts.Editor
{
[CustomPropertyDrawer(typeof(AnimationStyle), true)]
public class AnimationDrawer : BasePropertyDrawer

View File

@@ -1,14 +1,8 @@
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/

using UnityEditor;
using UnityEngine;
namespace XCharts
namespace XCharts.Editor
{
[CustomPropertyDrawer(typeof(AreaStyle), true)]
public class AreaStyleDrawer : BasePropertyDrawer

View File

@@ -1,15 +1,9 @@
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;
namespace XCharts
namespace XCharts.Editor
{
public delegate void DelegateMenuAction(Vector2 postion);
public class BasePropertyDrawer : PropertyDrawer

View File

@@ -1,10 +1,4 @@
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/

using System.Collections.Generic;
using UnityEditor;
using UnityEngine;
@@ -12,7 +6,7 @@ using UnityEngine;
using TMPro;
#endif
namespace XCharts
namespace XCharts.Editor
{
[CustomPropertyDrawer(typeof(ComponentTheme), true)]
public class ComponentThemeDrawer : BasePropertyDrawer

View File

@@ -1,15 +1,9 @@
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/

using System.Collections.Generic;
using UnityEditor;
using UnityEngine;
namespace XCharts
namespace XCharts.Editor
{
[CustomPropertyDrawer(typeof(Emphasis), true)]
public class EmphasisDrawer : BasePropertyDrawer

View File

@@ -1,15 +1,8 @@
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/
using System.Collections.Generic;

using UnityEditor;
using UnityEngine;
namespace XCharts
namespace XCharts.Editor
{
[CustomPropertyDrawer(typeof(IconStyle), true)]
public class IconStyleDrawer : BasePropertyDrawer

View File

@@ -1,14 +1,8 @@
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/

using UnityEditor;
using UnityEngine;
namespace XCharts
namespace XCharts.Editor
{
[CustomPropertyDrawer(typeof(ItemStyle), true)]
public class ItemStyleDrawer : BasePropertyDrawer

View File

@@ -1,14 +1,8 @@
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/

using UnityEditor;
using UnityEngine;
namespace XCharts
namespace XCharts.Editor
{
[CustomPropertyDrawer(typeof(LabelLine), true)]
public class LabelLineDrawer : BasePropertyDrawer

View File

@@ -1,14 +1,8 @@
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/

using UnityEditor;
using UnityEngine;
namespace XCharts
namespace XCharts.Editor
{
[CustomPropertyDrawer(typeof(LabelStyle), true)]
public class LabelStyleDrawer : BasePropertyDrawer

View File

@@ -1,15 +1,8 @@
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/
using System.Collections.Generic;

using UnityEditor;
using UnityEngine;
namespace XCharts
namespace XCharts.Editor
{
[CustomPropertyDrawer(typeof(ArrowStyle), true)]
public class ArrowDrawer : BasePropertyDrawer

View File

@@ -1,14 +1,8 @@
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/

using UnityEditor;
using UnityEngine;
namespace XCharts
namespace XCharts.Editor
{
[CustomPropertyDrawer(typeof(BaseLine), true)]
public class BaseLineDrawer : BasePropertyDrawer

View File

@@ -1,14 +1,8 @@
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/

using UnityEditor;
using UnityEngine;
namespace XCharts
namespace XCharts.Editor
{
[CustomPropertyDrawer(typeof(LineStyle), true)]
public class LineStyleDrawer : BasePropertyDrawer

View File

@@ -1,14 +1,8 @@
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/

using UnityEditor;
using UnityEngine;
namespace XCharts
namespace XCharts.Editor
{
[CustomPropertyDrawer(typeof(Location), true)]
public class LocationDrawer : BasePropertyDrawer

View File

@@ -1,14 +1,8 @@
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/

using UnityEditor;
using UnityEngine;
namespace XCharts
namespace XCharts.Editor
{
[CustomPropertyDrawer(typeof(Settings), true)]
public class SettingsDrawer : BasePropertyDrawer

View File

@@ -1,15 +1,9 @@
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/

using System.Collections.Generic;
using UnityEditor;
using UnityEngine;
namespace XCharts
namespace XCharts.Editor
{
[CustomPropertyDrawer(typeof(SymbolStyle), true)]
public class SymbolStyleDrawer : BasePropertyDrawer

View File

@@ -1,14 +1,8 @@
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/

using UnityEditor;
using UnityEngine;
namespace XCharts
namespace XCharts.Editor
{
[CustomPropertyDrawer(typeof(TextLimit), true)]
public class TextLimitDrawer : BasePropertyDrawer

View File

@@ -1,17 +1,11 @@
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/

using UnityEditor;
using UnityEngine;
#if dUI_TextMeshPro
using TMPro;
#endif
namespace XCharts
namespace XCharts.Editor
{
[CustomPropertyDrawer(typeof(TextStyle), true)]
public class TextStyleDrawer : BasePropertyDrawer

View File

@@ -1,10 +1,4 @@
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/

using System.IO;
using UnityEditor;
using UnityEngine;
@@ -12,7 +6,7 @@ using UnityEngine;
using TMPro;
#endif
namespace XCharts
namespace XCharts.Editor
{
[CustomPropertyDrawer(typeof(ThemeStyle), true)]
public class ThemeStyleDrawer : BasePropertyDrawer
@@ -68,7 +62,7 @@ namespace XCharts
}
}
public class ExportThemeWindow : EditorWindow
public class ExportThemeWindow : UnityEditor.EditorWindow
{
public static BaseChart target;
private static ExportThemeWindow window;

View File

@@ -1,15 +1,7 @@
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/
using System.Collections.Generic;
using UnityEditor;
using UnityEditor;
using UnityEngine;
namespace XCharts
namespace XCharts.Editor
{
[CustomPropertyDrawer(typeof(TitleStyle), true)]
public class TitleStyleDrawer : BasePropertyDrawer

View File

@@ -1,14 +1,8 @@
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/
using UnityEditor;
using UnityEngine;
namespace XCharts
namespace XCharts.Editor
{
[ComponentEditor(typeof(Axis))]
public class AxisEditor : MainComponentEditor<Axis>

View File

@@ -1,15 +1,8 @@
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/
using UnityEngine;
using UnityEditor;
namespace XCharts
namespace XCharts.Editor
{
[ComponentEditor(typeof(Background))]
internal sealed class BackgroundEditor : MainComponentEditor<Background>

View File

@@ -1,14 +1,7 @@
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/
using UnityEditor;
using UnityEngine;
namespace XCharts
namespace XCharts.Editor
{
[ComponentEditor(typeof(DataZoom))]
public class DataZoomEditor : MainComponentEditor<DataZoom>

View File

@@ -1,14 +1,7 @@
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/
using UnityEditor;
using UnityEngine;
namespace XCharts
namespace XCharts.Editor
{
[ComponentEditor(typeof(GridCoord))]
public class GridCoordEditor : MainComponentEditor<GridCoord>

View File

@@ -1,14 +1,7 @@
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/
using UnityEditor;
using UnityEngine;
namespace XCharts
namespace XCharts.Editor
{
[ComponentEditor(typeof(Legend))]
public class LegendEditor : MainComponentEditor<Legend>

View File

@@ -1,17 +1,9 @@
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/
using System;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;
using UnityEngine.Assertions;
namespace XCharts
namespace XCharts.Editor
{
public class MainComponentBaseEditor
{
@@ -24,7 +16,7 @@ namespace XCharts
internal SerializedProperty baseProperty;
internal SerializedProperty showProperty;
internal void Init(BaseChart chart, MainComponent target, SerializedProperty property, Editor inspector)
internal void Init(BaseChart chart, MainComponent target, SerializedProperty property, UnityEditor.Editor inspector)
{
this.chart = chart;
this.component = target;

View File

@@ -1,17 +1,6 @@
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/
using System;
using System.Collections.Generic;
using System.Linq.Expressions;
using UnityEditor;
using UnityEngine;
namespace XCharts
namespace XCharts.Editor
{
public class MainComponentEditor<T> : MainComponentBaseEditor
where T : MainComponent

View File

@@ -1,18 +1,11 @@
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/
using System;
using System.Collections.Generic;
using UnityEngine.Assertions;
using UnityEditor;
using UnityEngine;
using System.Linq;
namespace XCharts
namespace XCharts.Editor
{
public sealed class MainComponentListEditor
{

View File

@@ -1,14 +1,8 @@
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/
using UnityEditor;
using UnityEngine;
namespace XCharts
namespace XCharts.Editor
{
[ComponentEditor(typeof(MarkArea))]
public class MarkAreaEditor : MainComponentEditor<MarkArea>

View File

@@ -1,14 +1,8 @@
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/
using UnityEditor;
using UnityEngine;
namespace XCharts
namespace XCharts.Editor
{
[ComponentEditor(typeof(MarkLine))]
public class MarkLineEditor : MainComponentEditor<MarkLine>

View File

@@ -1,14 +1,7 @@
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/
using UnityEditor;
using UnityEngine;
namespace XCharts
namespace XCharts.Editor
{
[ComponentEditor(typeof(ParallelCoord))]
public class ParallelCoordEditor : MainComponentEditor<ParallelCoord>

View File

@@ -1,14 +1,7 @@
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/
using UnityEditor;
using UnityEngine;
namespace XCharts
namespace XCharts.Editor
{
[ComponentEditor(typeof(PolarCoord))]
public class PolarCoordEditor : MainComponentEditor<PolarCoord>

View File

@@ -1,14 +1,8 @@
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/
using UnityEditor;
using UnityEngine;
namespace XCharts
namespace XCharts.Editor
{
[ComponentEditor(typeof(RadarCoord))]
public class RadarCoordEditor : MainComponentEditor<RadarCoord>

View File

@@ -1,22 +1,15 @@
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/
using System.IO;
using UnityEditor;
using UnityEngine;
#if dUI_TextMeshPro
using TMPro;
#endif
namespace XCharts
namespace XCharts.Editor
{
[CustomEditor(typeof(Theme))]
public class ThemeEditor : Editor
public class ThemeEditor : UnityEditor.Editor
{
private Theme m_Theme;
void OnEnable()

View File

@@ -1,14 +1,7 @@
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/
using UnityEditor;
using UnityEngine;
namespace XCharts
namespace XCharts.Editor
{
[ComponentEditor(typeof(Title))]
public class TitleEditor : MainComponentEditor<Title>

View File

@@ -1,14 +1,7 @@
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/
using UnityEditor;
using UnityEngine;
namespace XCharts
namespace XCharts.Editor
{
[ComponentEditor(typeof(Tooltip))]
public class TooltipEditor : MainComponentEditor<Tooltip>

View File

@@ -1,14 +1,7 @@
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/
using UnityEditor;
using UnityEngine;
namespace XCharts
namespace XCharts.Editor
{
[ComponentEditor(typeof(Vessel))]
public class VesselEditor : MainComponentEditor<Vessel>

View File

@@ -1,14 +1,8 @@
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/
using UnityEditor;
using UnityEngine;
namespace XCharts
namespace XCharts.Editor
{
[ComponentEditor(typeof(VisualMap))]
public class VisualMapEditor : MainComponentEditor<VisualMap>

View File

@@ -1,11 +1,5 @@
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/
namespace XCharts
namespace XCharts.Editor
{
[SerieEditor(typeof(Bar))]
public class BarEditor : SerieEditor<Bar>

View File

@@ -1,11 +1,5 @@
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/
namespace XCharts
namespace XCharts.Editor
{
[SerieEditor(typeof(Candlestick))]
public class CandlestickEditor : SerieEditor<Candlestick>

View File

@@ -1,11 +1,6 @@
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/
namespace XCharts
namespace XCharts.Editor
{
[SerieEditor(typeof(EffectScatter))]
public class EffectScatterEditor : SerieEditor<EffectScatter>

View File

@@ -1,11 +1,6 @@
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/
namespace XCharts
namespace XCharts.Editor
{
[SerieEditor(typeof(Heatmap))]
public class HeatmapEditor : SerieEditor<Heatmap>

View File

@@ -1,13 +1,6 @@
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/
using UnityEngine;
namespace XCharts
namespace XCharts.Editor
{
[SerieEditor(typeof(Line))]
public class LineEditor : SerieEditor<Line>

View File

@@ -1,11 +1,6 @@
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/
namespace XCharts
namespace XCharts.Editor
{
[SerieEditor(typeof(Liquid))]
public class LiquidEditor : SerieEditor<Liquid>

View File

@@ -1,11 +1,6 @@
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/
namespace XCharts
namespace XCharts.Editor
{
[SerieEditor(typeof(Parallel))]
public class ParallelEditor : SerieEditor<Parallel>

View File

@@ -1,11 +1,6 @@
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/
namespace XCharts
namespace XCharts.Editor
{
[SerieEditor(typeof(Pie))]
public class PieEditor : SerieEditor<Pie>

View File

@@ -1,11 +1,6 @@
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/
namespace XCharts
namespace XCharts.Editor
{
[SerieEditor(typeof(Radar))]
public class RadarEditor : SerieEditor<Radar>

View File

@@ -1,11 +1,6 @@
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/
namespace XCharts
namespace XCharts.Editor
{
[SerieEditor(typeof(Ring))]
public class RingEditor : SerieEditor<Ring>

View File

@@ -1,11 +1,6 @@
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/
namespace XCharts
namespace XCharts.Editor
{
[SerieEditor(typeof(Scatter))]
public class ScatterEditor : SerieEditor<Scatter>

View File

@@ -1,9 +1,3 @@
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/
using System;
using System.Collections.Generic;
@@ -11,7 +5,7 @@ using UnityEditor;
using UnityEngine;
using UnityEngine.Assertions;
namespace XCharts
namespace XCharts.Editor
{
public class SerieBaseEditor
{
@@ -25,7 +19,7 @@ namespace XCharts
protected Dictionary<string, Type> m_CoordOptionsDic;
protected List<string> m_CoordOptionsNames;
internal void Init(BaseChart chart, Serie target, SerializedProperty property, Editor inspector)
internal void Init(BaseChart chart, Serie target, SerializedProperty property, UnityEditor.Editor inspector)
{
this.chart = chart;
this.serie = target;

View File

@@ -1,15 +1,9 @@
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;
namespace XCharts
namespace XCharts.Editor
{
public class SerieEditor<T> : SerieBaseEditor where T : Serie
{

View File

@@ -1,19 +1,13 @@
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/
using System;
using System.Collections.Generic;
using UnityEngine.Assertions;
using UnityEditor;
using UnityEngine;
using System.Linq;
using System.Reflection;
namespace XCharts
namespace XCharts.Editor
{
public sealed class SerieListEditor
{

View File

@@ -1,17 +1,11 @@
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/

using UnityEngine;
using UnityEditor;
using System.Collections.Generic;
using System;
using UnityEngine.Assertions;
namespace XCharts
namespace XCharts.Editor
{
public class HeaderMenuInfo
{

View File

@@ -3,7 +3,7 @@
using UnityEditor;
using UnityEngine;
namespace XCharts
namespace XCharts.Editor
{
public class EditorCustomStyles
{

View File

@@ -1,15 +1,9 @@
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/
using System.IO;
using UnityEditor;
using UnityEngine;
namespace XCharts
namespace XCharts.Editor
{
internal static class ThemeCheck
{

View File

@@ -1,18 +1,10 @@
/******************************************/
/* */
/* Copyright (c) 2018 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/******************************************/

using UnityEditor;
using UnityEngine;
using System.Text;
namespace XCharts
namespace XCharts.Editor
{
[CustomEditor(typeof(XCProgressBar), false)]
public class XCProgressBarEditor : Editor
public class XCProgressBarEditor : UnityEditor.Editor
{
[MenuItem("XCharts/ProgressBar", priority = 200)]

View File

@@ -1,18 +1,12 @@
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/
using System;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;
namespace XCharts
namespace XCharts.Editor
{
public class PraseExternalDataEditor : EditorWindow
public class PraseExternalDataEditor : UnityEditor.EditorWindow
{
private static BaseChart s_Chart;
private static Serie s_Serie;

View File

@@ -1,18 +1,11 @@
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/
using UnityEditor;
using UnityEngine;
using System.Collections.Generic;
namespace XCharts
namespace XCharts.Editor
{
[CustomEditor(typeof(XCSettings))]
public class XCSettingsEditor : Editor
public class XCSettingsEditor : UnityEditor.Editor
{
internal class Styles
{

View File

@@ -1,18 +1,12 @@
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/
using UnityEditor;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.EventSystems;
namespace XCharts
namespace XCharts.Editor
{
public class XChartsEditor : Editor
public class XChartsEditor : UnityEditor.Editor
{
private static Transform GetParent()
{

View File

@@ -1,15 +1,9 @@
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace XCharts.Examples
namespace XCharts.Example
{
[DisallowMultipleComponent]
public class Example00_CheatSheet : MonoBehaviour

View File

@@ -1,13 +1,7 @@
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/

using UnityEngine;
namespace XCharts.Examples
namespace XCharts.Example
{
[DisallowMultipleComponent]
[ExecuteInEditMode]

View File

@@ -1,14 +1,8 @@
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/

using UnityEngine;
using UnityEngine.EventSystems;
namespace XCharts.Examples
namespace XCharts.Example
{
[DisallowMultipleComponent]
[ExecuteInEditMode]

View File

@@ -1,13 +1,7 @@
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/

using UnityEngine;
namespace XCharts.Examples
namespace XCharts.Example
{
[DisallowMultipleComponent]
[ExecuteInEditMode]

View File

@@ -1,14 +1,8 @@
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/

using System.Collections;
using UnityEngine;
namespace XCharts.Examples
namespace XCharts.Example
{
[DisallowMultipleComponent]
public class Example10_LineChart : MonoBehaviour

View File

@@ -1,13 +1,7 @@
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/

using UnityEngine;
namespace XCharts.Examples
namespace XCharts.Example
{
[DisallowMultipleComponent]
[ExecuteInEditMode]

View File

@@ -1,16 +1,10 @@
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/

using UnityEngine;
using UnityEngine.UI;
using XUGL;
namespace XCharts.Examples
namespace XCharts.Example
{
[DisallowMultipleComponent]
[ExecuteInEditMode]

View File

@@ -1,13 +1,7 @@
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/

using UnityEngine;
namespace XCharts.Examples
namespace XCharts.Example
{
[DisallowMultipleComponent]
[ExecuteInEditMode]

View File

@@ -1,14 +1,8 @@
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/

using System.Collections;
using UnityEngine;
namespace XCharts.Examples
namespace XCharts.Example
{
[DisallowMultipleComponent]
public class Example20_BarChart : MonoBehaviour

View File

@@ -1,15 +1,9 @@
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/

using System.Collections;
using UnityEngine;
using UnityEngine.EventSystems;
namespace XCharts.Examples
namespace XCharts.Example
{
[DisallowMultipleComponent]
public class Example30_PieChart : MonoBehaviour

View File

@@ -1,14 +1,7 @@
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/

using UnityEngine;
using UnityEngine.UI;
namespace XCharts.Examples
namespace XCharts.Example
{
[DisallowMultipleComponent]
[ExecuteInEditMode]

View File

@@ -1,15 +1,9 @@
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace XCharts.Examples
namespace XCharts.Example
{
[DisallowMultipleComponent]
public class Example40_Radar : MonoBehaviour

View File

@@ -1,14 +1,7 @@
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/

using UnityEngine;
using UnityEngine.UI;
namespace XCharts.Examples
namespace XCharts.Example
{
[DisallowMultipleComponent]
[ExecuteInEditMode]

View File

@@ -1,15 +1,9 @@
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/

using System;
using System.Collections.Generic;
using UnityEngine;
namespace XCharts.Examples
namespace XCharts.Example
{
[DisallowMultipleComponent]
[ExecuteInEditMode]

View File

@@ -1,14 +1,8 @@
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/

using System.Collections.Generic;
using UnityEngine;
namespace XCharts.Examples
namespace XCharts.Example
{
[DisallowMultipleComponent]
[ExecuteInEditMode]

View File

@@ -1,14 +1,8 @@
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/

using UnityEngine;
namespace XCharts.Examples
namespace XCharts.Example
{
[DisallowMultipleComponent]
[ExecuteInEditMode]

View File

@@ -1,14 +1,8 @@
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/

using UnityEngine;
namespace XCharts.Examples
namespace XCharts.Example
{
[DisallowMultipleComponent]
[ExecuteInEditMode]

View File

@@ -1,14 +1,8 @@
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/

using System;
using UnityEngine;
namespace XCharts.Examples
namespace XCharts.Example
{
[DisallowMultipleComponent]
[ExecuteInEditMode]

View File

@@ -1,13 +1,7 @@
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/

using UnityEngine;
namespace XCharts.Examples
namespace XCharts.Example
{
[DisallowMultipleComponent]
[ExecuteInEditMode]

View File

@@ -1,13 +1,7 @@
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/

using UnityEngine;
namespace XCharts.Examples
namespace XCharts.Example
{
[DisallowMultipleComponent]
[ExecuteInEditMode]

View File

@@ -1,14 +1,8 @@
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/

using UnityEngine;
using UnityEngine.UI;
namespace XCharts.Examples
namespace XCharts.Example
{
[DisallowMultipleComponent]
[ExecuteInEditMode]

View File

@@ -1,14 +1,8 @@
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/

using UnityEngine;
using UnityEngine.UI;
namespace XCharts.Examples
namespace XCharts.Example
{
[DisallowMultipleComponent]
[ExecuteInEditMode]

View File

@@ -1,10 +1,4 @@
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/

using UnityEngine;
namespace XCharts

View File

@@ -1,10 +1,4 @@
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/

using UnityEngine;
using System.Collections.Generic;
using System;

View File

@@ -1,10 +1,4 @@
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/

using UnityEngine;
using System;
using UnityEngine.EventSystems;

View File

@@ -1,10 +1,4 @@

/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/
using UnityEngine;

View File

@@ -1,10 +1,4 @@
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/

using System.Collections.Generic;
using UnityEngine;

View File

@@ -1,10 +1,4 @@

/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/
using UnityEngine;

View File

@@ -1,10 +1,4 @@
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/

using UnityEngine;
namespace XCharts

View File

@@ -1,10 +1,4 @@
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/

using System.Collections.Generic;
using UnityEngine;

View File

@@ -1,10 +1,4 @@
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/

using UnityEngine;
namespace XCharts

View File

@@ -1,10 +1,4 @@
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/

using UnityEngine;
namespace XCharts

View File

@@ -1,10 +1,4 @@

/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/
using UnityEngine;

View File

@@ -1,10 +1,4 @@
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/

using UnityEngine;
namespace XCharts

View File

@@ -1,10 +1,4 @@
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/

using System.Collections.Generic;
using UnityEngine;
using System;

View File

@@ -1,9 +1,3 @@
/******************************************/
/* */
/* Copyright (c) 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/******************************************/
using System;
using System.Collections.Generic;

View File

@@ -1,9 +1,3 @@
/******************************************/
/* */
/* Copyright (c) 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/******************************************/
using UnityEngine;
using XUGL;

View File

@@ -1,9 +1,3 @@
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/
using System.Collections.Generic;
using UnityEngine;

View File

@@ -1,9 +1,3 @@
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/
using System.Collections.Generic;
using UnityEngine;

Some files were not shown because too many files have changed in this diff Show More