- Even more cleanup and comments

This commit is contained in:
Nils Hausfeld
2023-09-29 17:26:56 +02:00
parent 4bf46c3af3
commit 091d34b20d
4 changed files with 8 additions and 6 deletions

View File

@@ -494,7 +494,7 @@ namespace FlaxEditor.Surface.ContextMenu
_panel1.ScrollViewTo(SelectedItem);
Profiler.EndEvent();
}
/// <summary>
/// Sort the groups and keeps <see cref="_groups"/> in sync
/// </summary>
@@ -558,7 +558,7 @@ namespace FlaxEditor.Surface.ContextMenu
SortGroups();
PerformLayout();
Profiler.EndEvent();
}
@@ -676,11 +676,10 @@ namespace FlaxEditor.Surface.ContextMenu
// Prepare
UpdateSurfaceParametersGroup();
ResetView();
_panel1.VScrollBar.TargetValue = 0;
Focus();
_waitingForInput = true;
base.OnShow();
}

View File

@@ -336,7 +336,7 @@ namespace FlaxEditor.Surface.ContextMenu
}
}
}
/// <inheritdoc />
public override void Draw()
{

View File

@@ -73,6 +73,9 @@ namespace FlaxEditor.Surface
All = Scalar | Vector | Enum | Anything | Value | Array | Dictionary,
}
/// <summary>
/// Node type hint. Helps to distinguish special archetypes
/// </summary>
[HideInEditor]
public enum NodeTypeHint
{

View File

@@ -370,7 +370,7 @@ namespace FlaxEditor.Surface
bindNode.Description = SurfaceUtils.GetVisualScriptMemberInfoDescription(member);
bindNode.SubTitle = string.Format(" (in {0})", scriptTypeName);
((IList<NodeArchetype>)group.Archetypes).Add(bindNode);
// Add Unbind event node
var unbindNode = (NodeArchetype)Archetypes.Function.Nodes[9].Clone();
unbindNode.DefaultValues[0] = scriptTypeTypeName;