1
0
mirror of https://github.com/Siccity/xNode.git synced 2026-03-26 22:49:02 +08:00

remove GetHeaderTooltip Parameter

This commit is contained in:
mayuntian 2020-08-11 14:27:51 +08:00
parent e62df1a4a6
commit eabdc6c61c
2 changed files with 2 additions and 2 deletions

View File

@ -105,7 +105,7 @@ namespace XNodeEditor {
} }
/// <summary> Override to display custom node header tooltips </summary> /// <summary> Override to display custom node header tooltips </summary>
public virtual string GetHeaderTooltip(XNode.Node node) { public virtual string GetHeaderTooltip() {
return null; return null;
} }

View File

@ -563,7 +563,7 @@ namespace XNodeEditor {
tooltip = graphEditor.GetPortTooltip(hoveredPort); tooltip = graphEditor.GetPortTooltip(hoveredPort);
} }
else if (hoveredNode != null && IsHoveringNode && IsHoveringTitle(hoveredNode)) { else if (hoveredNode != null && IsHoveringNode && IsHoveringTitle(hoveredNode)) {
tooltip = NodeEditor.GetEditor(hoveredNode, this).GetHeaderTooltip(hoveredNode); tooltip = NodeEditor.GetEditor(hoveredNode, this).GetHeaderTooltip();
} }
if (string.IsNullOrEmpty(tooltip)) return; if (string.IsNullOrEmpty(tooltip)) return;
GUIContent content = new GUIContent(tooltip); GUIContent content = new GUIContent(tooltip);