mirror of
https://github.com/Siccity/xNode.git
synced 2026-03-26 22:49:02 +08:00
Fixed compile error CS1738: Named arguments must appear after the positional arguments
This commit is contained in:
parent
3c39a9582e
commit
aa2fa2e7b2
@ -76,14 +76,14 @@ namespace XNodeEditor {
|
|||||||
GUIStyle inputStyle = NodeEditorResources.styles.inputPort;
|
GUIStyle inputStyle = NodeEditorResources.styles.inputPort;
|
||||||
switch (showBacking) {
|
switch (showBacking) {
|
||||||
case XNode.Node.ShowBackingValue.Unconnected:
|
case XNode.Node.ShowBackingValue.Unconnected:
|
||||||
DrawStyledPropertyField(property, label, inputStyle, showBacking: !port.IsConnected, includeChildren);
|
DrawStyledPropertyField(property, label, inputStyle, !port.IsConnected, includeChildren);
|
||||||
break;
|
break;
|
||||||
case XNode.Node.ShowBackingValue.Never:
|
case XNode.Node.ShowBackingValue.Never:
|
||||||
// Display a label
|
// Display a label
|
||||||
EditorGUILayout.LabelField(label != null ? label : new GUIContent(property.displayName), inputStyle);
|
EditorGUILayout.LabelField(label != null ? label : new GUIContent(property.displayName), inputStyle);
|
||||||
break;
|
break;
|
||||||
case XNode.Node.ShowBackingValue.Always:
|
case XNode.Node.ShowBackingValue.Always:
|
||||||
DrawStyledPropertyField(property, label, inputStyle, showBacking: true, includeChildren);
|
DrawStyledPropertyField(property, label, inputStyle, true, includeChildren);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -117,14 +117,14 @@ namespace XNodeEditor {
|
|||||||
}
|
}
|
||||||
switch (showBacking) {
|
switch (showBacking) {
|
||||||
case XNode.Node.ShowBackingValue.Unconnected:
|
case XNode.Node.ShowBackingValue.Unconnected:
|
||||||
DrawStyledPropertyField(property, label, NodeEditorResources.OutputPort, showBacking: !port.IsConnected, includeChildren);
|
DrawStyledPropertyField(property, label, NodeEditorResources.OutputPort, !port.IsConnected, includeChildren);
|
||||||
break;
|
break;
|
||||||
case XNode.Node.ShowBackingValue.Never:
|
case XNode.Node.ShowBackingValue.Never:
|
||||||
// Display a label
|
// Display a label
|
||||||
EditorGUILayout.LabelField(label != null ? label : new GUIContent(property.displayName), NodeEditorResources.OutputPort, GUILayout.MinWidth(30));
|
EditorGUILayout.LabelField(label != null ? label : new GUIContent(property.displayName), NodeEditorResources.OutputPort, GUILayout.MinWidth(30));
|
||||||
break;
|
break;
|
||||||
case XNode.Node.ShowBackingValue.Always:
|
case XNode.Node.ShowBackingValue.Always:
|
||||||
DrawStyledPropertyField(property, label, NodeEditorResources.OutputPort, showBacking: true, includeChildren);
|
DrawStyledPropertyField(property, label, NodeEditorResources.OutputPort, true, includeChildren);
|
||||||
// Display an editable property field
|
// Display an editable property field
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user