mirror of
https://github.com/Siccity/xNode.git
synced 2026-03-26 22:49:02 +08:00
Merge branch 'master' of https://github.com/MYTNB/xNode
# Conflicts: # Scripts/Editor/NodeEditorGUI.cs
This commit is contained in:
commit
d1324f3148
@ -559,10 +559,12 @@ namespace XNodeEditor {
|
|||||||
if (!NodeEditorPreferences.GetSettings().portTooltips || graphEditor is null)
|
if (!NodeEditorPreferences.GetSettings().portTooltips || graphEditor is null)
|
||||||
return;
|
return;
|
||||||
string tooltip = null;
|
string tooltip = null;
|
||||||
if (hoveredPort != null && IsHoveringPort)
|
if (hoveredPort != null) {
|
||||||
tooltip = graphEditor.GetPortTooltip(hoveredPort);
|
tooltip = graphEditor.GetPortTooltip(hoveredPort);
|
||||||
else if (hoveredNode != null && IsHoveringNode && IsHoveringTitle(hoveredNode))
|
}
|
||||||
|
else if (hoveredNode != null && IsHoveringNode && IsHoveringTitle(hoveredNode)) {
|
||||||
tooltip = graphEditor.GetNodeTooltip(hoveredNode);
|
tooltip = graphEditor.GetNodeTooltip(hoveredNode);
|
||||||
|
}
|
||||||
if (string.IsNullOrEmpty(tooltip)) return;
|
if (string.IsNullOrEmpty(tooltip)) return;
|
||||||
GUIContent content = new GUIContent(tooltip);
|
GUIContent content = new GUIContent(tooltip);
|
||||||
Vector2 size = NodeEditorResources.styles.tooltip.CalcSize(content);
|
Vector2 size = NodeEditorResources.styles.tooltip.CalcSize(content);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user