增加Tooltipoffset参数配置偏移

This commit is contained in:
monitor1394
2020-07-07 07:16:01 +08:00
parent a135b56259
commit 9244d9f996
12 changed files with 18 additions and 28 deletions

View File

@@ -358,7 +358,7 @@ namespace XCharts
}
if (m_Tooltip.IsSelected())
{
m_Tooltip.UpdateContentPos(new Vector2(local.x + 18, local.y - 25));
m_Tooltip.UpdateContentPos(local + m_Tooltip.offset);
UpdateTooltip();
if (m_Tooltip.IsDataIndexChanged() || m_Tooltip.type == Tooltip.Type.Corss)
{

View File

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

View File

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