Skip to content

Commit

Permalink
fix note font sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
Avibah committed Mar 14, 2024
1 parent 49f6b59 commit 534e0f3
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 11 deletions.
8 changes: 4 additions & 4 deletions Editor/New SSQE/GUI/GuiGrid.cs
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,11 @@ public override void GenerateOffsets()
if (gridNumbers)
{
var numText = $"{i + 1:##,###}";
var width = FontRenderer.GetWidth(numText, 24, "main");
var height = FontRenderer.GetHeight(24, "main");
var width = FontRenderer.GetWidth(numText, 28, "main");
var height = FontRenderer.GetHeight(28, "main");

color2Texts.AddRange(FontRenderer.Print((int)(noteRect.X + noteRect.Width / 2f - width / 2f), (int)(noteRect.Y + noteRect.Height / 2f - height / 2f + 3f),
numText, 24, "main"));
color2Texts.AddRange(FontRenderer.Print((int)(noteRect.X + noteRect.Width / 2f - width / 2f), (int)(noteRect.Y + noteRect.Height / 2f - height / 2f),
numText, 28, "main"));
for (int j = 0; j < numText.Length; j++)
alphas.Add(1 - progress);
}
Expand Down
8 changes: 4 additions & 4 deletions Editor/New SSQE/GUI/GuiTrack.cs
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,8 @@ public override void GenerateOffsets()
var numText = $"Note {i + 1:##,###}";
var msText = $"{note.Ms:##,##0}ms";

color1Texts.AddRange(FontRenderer.Print((int)x + 3, (int)Rect.Height, numText, 16, "main"));
color2Texts.AddRange(FontRenderer.Print((int)x + 3, (int)Rect.Height + 15, msText, 16, "main"));
color1Texts.AddRange(FontRenderer.Print((int)x + 3, (int)Rect.Height - 2, numText, 20, "main"));
color2Texts.AddRange(FontRenderer.Print((int)x + 3, (int)Rect.Height + 13, msText, 20, "main"));

lastRendered = x;
}
Expand Down Expand Up @@ -335,8 +335,8 @@ public override void GenerateOffsets()
var numText = $"{point.BPM:##,###.###} BPM";
var msText = $"{point.Ms:##,##0}ms";

color1Texts.AddRange(FontRenderer.Print((int)lineX + 3, (int)Rect.Height + 28, numText, 16, "main"));
color2Texts.AddRange(FontRenderer.Print((int)lineX + 3, (int)Rect.Height + 43, msText, 16, "main"));
color1Texts.AddRange(FontRenderer.Print((int)lineX + 3, (int)Rect.Height + 26, numText, 20, "main"));
color2Texts.AddRange(FontRenderer.Print((int)lineX + 3, (int)Rect.Height + 41, msText, 20, "main"));

if (hovering)
{
Expand Down
2 changes: 1 addition & 1 deletion Editor/New SSQE/MainWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ public void UpdateFPS(VSyncMode mode)
protected override void OnLoad()
{
GL.ClearColor(0f, 0f, 0f, 1f);

GL.Enable(EnableCap.Blend);
GL.BlendFunc(BlendingFactor.SrcAlpha, BlendingFactor.OneMinusSrcAlpha);
}
Expand Down
4 changes: 2 additions & 2 deletions Editor/New SSQE/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
[assembly: ComVisible(false)]

[assembly: Guid("9a405608-105f-473a-8f17-9d8c05f82b19")]
[assembly: AssemblyVersion("2.1.5.0")]
[assembly: AssemblyFileVersion("2.1.5.0")]
[assembly: AssemblyVersion("2.1.5.1")]
[assembly: AssemblyFileVersion("2.1.5.1")]
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
is_global = true
build_property.EnableAotAnalyzer =
build_property.EnableSingleFileAnalyzer =
build_property.EnableTrimAnalyzer =
build_property.IncludeAllContentForSelfExtract =
build_property.TargetFramework = net6.0
build_property.TargetPlatformMinVersion =
build_property.UsingMicrosoftNETSdkWeb =
Expand Down
Binary file modified Map Player/SSQE Player/obj/Debug/net6.0/SSQE Player.assets.cache
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
is_global = true
build_property.EnableAotAnalyzer =
build_property.EnableSingleFileAnalyzer =
build_property.EnableTrimAnalyzer =
build_property.IncludeAllContentForSelfExtract =
build_property.TargetFramework = net6.0
build_property.TargetPlatformMinVersion =
build_property.UsingMicrosoftNETSdkWeb =
Expand Down
Binary file modified Map Player/SSQE Player/obj/Release/net6.0/SSQE Player.assets.cache
Binary file not shown.

0 comments on commit 534e0f3

Please sign in to comment.