- Even more cleanup and comments
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
@@ -336,7 +336,7 @@ namespace FlaxEditor.Surface.ContextMenu
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// <inheritdoc />
|
||||
public override void Draw()
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user