mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-25 02:10:16 +00:00
[doc] add since version
This commit is contained in:
@@ -28,7 +28,7 @@ namespace XCharts.Runtime
|
||||
[SerializeField] private TMP_FontAsset m_TMPFont;
|
||||
[SerializeField] private FontStyles m_TMPFontStyle = FontStyles.Normal;
|
||||
[SerializeField] private TextAlignmentOptions m_TMPAlignment = TextAlignmentOptions.Left;
|
||||
[SerializeField] private TMP_SpriteAsset m_TMPSpriteAsset;
|
||||
[SerializeField][Since("v3.1.0")] private TMP_SpriteAsset m_TMPSpriteAsset;
|
||||
#endif
|
||||
public bool show
|
||||
{
|
||||
|
||||
@@ -80,8 +80,8 @@ namespace XCharts.Runtime
|
||||
[SerializeField] private List<string> m_Data = new List<string>();
|
||||
[SerializeField] private List<Sprite> m_Icons = new List<Sprite>();
|
||||
[SerializeField] private List<Color> m_Colors = new List<Color>();
|
||||
[SerializeField] protected ImageStyle m_Background = new ImageStyle() { show = false };
|
||||
[SerializeField] protected Padding m_Padding = new Padding();
|
||||
[SerializeField][Since("v3.1.0")] protected ImageStyle m_Background = new ImageStyle() { show = false };
|
||||
[SerializeField][Since("v3.1.0")] protected Padding m_Padding = new Padding();
|
||||
|
||||
public LegendContext context = new LegendContext();
|
||||
|
||||
|
||||
15
Runtime/Internal/Attributes/SinceAttribute.cs
Normal file
15
Runtime/Internal/Attributes/SinceAttribute.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
|
||||
namespace XCharts.Runtime
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false)]
|
||||
public class Since : Attribute
|
||||
{
|
||||
public readonly string version;
|
||||
|
||||
public Since(string version)
|
||||
{
|
||||
this.version = version;
|
||||
}
|
||||
}
|
||||
}
|
||||
11
Runtime/Internal/Attributes/SinceAttribute.cs.meta
Normal file
11
Runtime/Internal/Attributes/SinceAttribute.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 04c4c3fba4de2404d9c715eeff4a707c
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user