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

Reverted adding the possibility of changing the header style

This commit is contained in:
fernando.toigo 2019-11-22 16:52:55 -03:00
parent 7b395e5080
commit dc2f7aac6d

View File

@ -25,7 +25,7 @@ namespace XNodeEditor {
#endif
public virtual void OnHeaderGUI() {
GUILayout.Label(target.name, GetHeaderTitleStyle(), GUILayout.Height(30));
GUILayout.Label(target.name, NodeEditorResources.styles.nodeHeader, GUILayout.Height(30));
}
/// <summary> Draws standard field editors for all public fields </summary>
@ -104,10 +104,6 @@ namespace XNodeEditor {
return NodeEditorResources.styles.nodeHighlight;
}
public virtual GUIStyle GetHeaderTitleStyle() {
return NodeEditorResources.styles.nodeHeader;
}
/// <summary> Add items for the context menu when right-clicking this node. Override to add custom menu items. </summary>
public virtual void AddContextMenuItems(GenericMenu menu) {
// Actions if only one node is selected