small cleanup

This commit is contained in:
Saas
2026-03-04 23:37:33 +01:00
parent 2c98d80506
commit 23c3edcab9
5 changed files with 2 additions and 5 deletions

View File

@@ -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)
}
};
}

View File

@@ -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)
{

View File

@@ -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;
}
}

View File

@@ -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();
}

View File

@@ -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);