增加TooltipAuto自动设置显示类型和触发类型

This commit is contained in:
monitor1394
2023-09-01 08:01:27 +08:00
parent 9deb120446
commit a6ba17ee00
33 changed files with 154 additions and 108 deletions

View File

@@ -0,0 +1,17 @@
using System;
namespace XCharts.Runtime
{
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
public sealed class DefaultTooltipAttribute : Attribute
{
public readonly Tooltip.Type type;
public readonly Tooltip.Trigger trigger;
public DefaultTooltipAttribute(Tooltip.Type type, Tooltip.Trigger trigger)
{
this.type = type;
this.trigger = trigger;
}
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: a994dc47021bb4031ba6cf23eaf82e7e
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: