1
0
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:
Thor Brigsted 2019-04-11 22:43:29 +02:00
parent 3c39a9582e
commit aa2fa2e7b2

View File

@ -76,14 +76,14 @@ namespace XNodeEditor {
GUIStyle inputStyle = NodeEditorResources.styles.inputPort;
switch (showBacking) {
case XNode.Node.ShowBackingValue.Unconnected:
DrawStyledPropertyField(property, label, inputStyle, showBacking: !port.IsConnected, includeChildren);
DrawStyledPropertyField(property, label, inputStyle, !port.IsConnected, includeChildren);
break;
case XNode.Node.ShowBackingValue.Never:
// Display a label
EditorGUILayout.LabelField(label != null ? label : new GUIContent(property.displayName), inputStyle);
break;
case XNode.Node.ShowBackingValue.Always:
DrawStyledPropertyField(property, label, inputStyle, showBacking: true, includeChildren);
DrawStyledPropertyField(property, label, inputStyle, true, includeChildren);
break;
}
@ -117,14 +117,14 @@ namespace XNodeEditor {
}
switch (showBacking) {
case XNode.Node.ShowBackingValue.Unconnected:
DrawStyledPropertyField(property, label, NodeEditorResources.OutputPort, showBacking: !port.IsConnected, includeChildren);
DrawStyledPropertyField(property, label, NodeEditorResources.OutputPort, !port.IsConnected, includeChildren);
break;
case XNode.Node.ShowBackingValue.Never:
// Display a label
EditorGUILayout.LabelField(label != null ? label : new GUIContent(property.displayName), NodeEditorResources.OutputPort, GUILayout.MinWidth(30));
break;
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
break;
}