small cleanup
This commit is contained in:
@@ -39,7 +39,7 @@ namespace FlaxEditor.Surface.Archetypes
|
||||
{
|
||||
NodeElementArchetype.Factory.Input(0, string.Empty, true, null, 0, 0),
|
||||
NodeElementArchetype.Factory.Input(1, string.Empty, true, null, 1, 1),
|
||||
NodeElementArchetype.Factory.Output(0, "Result", typeof(bool), 2)
|
||||
NodeElementArchetype.Factory.Output(0, title, typeof(bool), 2)
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
@@ -312,7 +312,6 @@ namespace FlaxEditor.Surface.Archetypes
|
||||
: base(id, context, nodeArch, groupArch)
|
||||
{
|
||||
_sizeValueIndex = Archetype.TypeID == 8 ? 1 : 3; // Index of the Size stored in Values array
|
||||
//Float2 pos = new Float2(FlaxEditor.Surface.Constants.NodeMarginX, FlaxEditor.Surface.Constants.NodeMarginY + FlaxEditor.Surface.Constants.NodeHeaderHeight), size;
|
||||
Float2 pos = new Float2(FlaxEditor.Surface.Constants.NodeMarginX + 25f, FlaxEditor.Surface.Constants.NodeMarginY + FlaxEditor.Surface.Constants.NodeHeaderHeight), size;
|
||||
if (nodeArch.TypeID == 8)
|
||||
{
|
||||
|
||||
@@ -78,6 +78,6 @@ namespace FlaxEditor.Surface
|
||||
/// <summary>
|
||||
/// The scale of text of boxes.
|
||||
/// </summary>
|
||||
public const float BoxTextScale = 1f;//1.175f;
|
||||
public const float BoxTextScale = 1f;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -341,7 +341,6 @@ namespace FlaxEditor.Surface
|
||||
if (element is Control control)
|
||||
AddChild(control);
|
||||
|
||||
// TODO: Perform this at a better time instead of every time an element gets added.
|
||||
if (!Archetype.UseFixedSize)
|
||||
ResizeAuto();
|
||||
}
|
||||
|
||||
@@ -69,7 +69,6 @@ namespace FlaxEditor.Surface
|
||||
DrawGridBackground(Width, Height);
|
||||
}
|
||||
|
||||
// TODO: Rename (and get rid of old texture based draw background?)
|
||||
internal static void DrawBackgroundSolidColor(Color color, float width, float height)
|
||||
{
|
||||
Rectangle backgroundRect = new Rectangle(0f, 0f, width, height);
|
||||
|
||||
Reference in New Issue
Block a user