Tooltip addded to View Node
This commit is contained in:
parent
ceac1eeba5
commit
c1d99aa06e
@ -1,4 +1,5 @@
|
|||||||
using ImageProcessingGraph.Editor.Unity_Image_Processing.Scripts.Editor.Windows;
|
using ImageProcessingGraph.Editor.Unity_Image_Processing.Scripts.Editor.Windows;
|
||||||
|
using UnityEditor.UIElements;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using UnityEngine.UIElements;
|
using UnityEngine.UIElements;
|
||||||
|
|
||||||
@ -50,6 +51,9 @@ namespace ImageProcessingGraph.Editor.Nodes.Types.Image.Utilities.ViewNode
|
|||||||
|
|
||||||
viewImageNode.onImageUpdated += () => { viewableImage.image = viewImageNode.texture; };
|
viewImageNode.onImageUpdated += () => { viewableImage.image = viewImageNode.texture; };
|
||||||
|
|
||||||
|
Toolbar tb = new Toolbar();
|
||||||
|
tb.style.height = 32;
|
||||||
|
|
||||||
buttonRow = new VisualElement
|
buttonRow = new VisualElement
|
||||||
{
|
{
|
||||||
style =
|
style =
|
||||||
@ -70,10 +74,11 @@ namespace ImageProcessingGraph.Editor.Nodes.Types.Image.Utilities.ViewNode
|
|||||||
text = channel
|
text = channel
|
||||||
};
|
};
|
||||||
btn.style.flexGrow = 1;
|
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)
|
private void OnChannelClicked(ViewTextureNode viewNode, string channel)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user