Tooltip addded to View Node

This commit is contained in:
Chromium 2025-05-04 08:25:30 +01:00
parent ceac1eeba5
commit c1d99aa06e

View File

@ -1,4 +1,5 @@
using ImageProcessingGraph.Editor.Unity_Image_Processing.Scripts.Editor.Windows;
using UnityEditor.UIElements;
using UnityEngine;
using UnityEngine.UIElements;
@ -50,6 +51,9 @@ namespace ImageProcessingGraph.Editor.Nodes.Types.Image.Utilities.ViewNode
viewImageNode.onImageUpdated += () => { viewableImage.image = viewImageNode.texture; };
Toolbar tb = new Toolbar();
tb.style.height = 32;
buttonRow = new VisualElement
{
style =
@ -70,10 +74,11 @@ namespace ImageProcessingGraph.Editor.Nodes.Types.Image.Utilities.ViewNode
text = channel
};
btn.style.flexGrow = 1;
buttonRow.Add(btn);
tb.Add(btn);
}
foldout.Add(buttonRow);
// foldout.Add(buttonRow);
foldout.Add(tb);
}
private void OnChannelClicked(ViewTextureNode viewNode, string channel)