fix: apply scale to TSM entry (#2169)

This commit is contained in:
srkizer 2025-01-11 01:52:54 +09:00 committed by GitHub
parent f2c132c7d8
commit d932f2f06e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -11,7 +11,6 @@ using Dalamud.Game.ClientState;
using Dalamud.Game.Gui;
using Dalamud.Game.Text;
using Dalamud.Interface.Animation.EasingFunctions;
using Dalamud.Interface.ImGuiSeStringRenderer;
using Dalamud.Interface.ManagedFontAtlas;
using Dalamud.Interface.ManagedFontAtlas.Internals;
using Dalamud.Interface.Textures.TextureWraps;
@ -398,9 +397,14 @@ internal class TitleScreenMenuWindow : Window, IDisposable
// Drop shadow
ImGui.SetCursorPos(cursor);
var renderStyle = default(SeStringDrawParams);
renderStyle.FontSize = TargetFontSizePx;
ImGuiHelpers.CompileSeStringWrapped($"<edge(1)><shadow(1)>{entry.Name}<shadow(0)><edge(0)>", renderStyle);
ImGuiHelpers.SeStringWrapped(
ReadOnlySeString.FromText(entry.Name),
new()
{
FontSize = TargetFontSizePx * ImGui.GetIO().FontGlobalScale,
Edge = true,
Shadow = true,
});
if (overrideAlpha)
{