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:
parent
7b395e5080
commit
dc2f7aac6d
@ -25,7 +25,7 @@ namespace XNodeEditor {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
public virtual void OnHeaderGUI() {
|
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>
|
/// <summary> Draws standard field editors for all public fields </summary>
|
||||||
@ -104,10 +104,6 @@ namespace XNodeEditor {
|
|||||||
return NodeEditorResources.styles.nodeHighlight;
|
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>
|
/// <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) {
|
public virtual void AddContextMenuItems(GenericMenu menu) {
|
||||||
// Actions if only one node is selected
|
// Actions if only one node is selected
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user