text fixes

This commit is contained in:
spherallic 2023-01-04 15:55:08 +01:00
parent 1e88de5eba
commit a6383ccb41
2 changed files with 2 additions and 4 deletions

View file

@ -1482,14 +1482,13 @@ namespace CodeImp.DoomBuilder.Rendering
if (waypoints[i].AngleDoom % 256 == 0) // start of a new sequence? if (waypoints[i].AngleDoom % 256 == 0) // start of a new sequence?
{ {
seqStart = i; seqStart = i;
sequencelabels[waypoints[i].AngleDoom / 256] = new TextLabel(3) // create sequence ID label sequencelabels[waypoints[i].AngleDoom / 256] = new TextLabel() // create sequence ID label
{ {
Text = (waypoints[i].AngleDoom / 256).ToString(), Text = (waypoints[i].AngleDoom / 256).ToString(),
AlignX = TextAlignmentX.Center, AlignX = TextAlignmentX.Center,
AlignY = TextAlignmentY.Middle, AlignY = TextAlignmentY.Middle,
Color = General.Colors.WaypointColor, Color = General.Colors.WaypointColor,
Backcolor = General.Colors.Background, Backcolor = General.Colors.Background,
Scale = 16f,
TransformCoords = true, TransformCoords = true,
Rectangle = new RectangleF(waypoints[i].Position.x, waypoints[i].Position.y, 0.0f, 0.0f) Rectangle = new RectangleF(waypoints[i].Position.x, waypoints[i].Position.y, 0.0f, 0.0f)
}; };

View file

@ -79,12 +79,11 @@ namespace CodeImp.DoomBuilder.BuilderModes
vertexnames = new TextLabel[4]; vertexnames = new TextLabel[4];
for (int i = 0; i < 4; i++) for (int i = 0; i < 4; i++)
{ {
vertexnames[i] = new TextLabel(1); vertexnames[i] = new TextLabel();
vertexnames[i].TransformCoords = true; vertexnames[i].TransformCoords = true;
vertexnames[i].Rectangle = new RectangleF(0f, 0f, 0f, 0f); vertexnames[i].Rectangle = new RectangleF(0f, 0f, 0f, 0f);
vertexnames[i].AlignX = TextAlignmentX.Center; vertexnames[i].AlignX = TextAlignmentX.Center;
vertexnames[i].AlignY = TextAlignmentY.Middle; vertexnames[i].AlignY = TextAlignmentY.Middle;
vertexnames[i].Scale = 16f;
vertexnames[i].Color = General.Colors.Highlight.WithAlpha(255); vertexnames[i].Color = General.Colors.Highlight.WithAlpha(255);
vertexnames[i].Backcolor = General.Colors.Background.WithAlpha(255); vertexnames[i].Backcolor = General.Colors.Background.WithAlpha(255);
} }