mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
fix: apply scale to TSM entry (#2169)
This commit is contained in:
parent
f2c132c7d8
commit
d932f2f06e
1 changed files with 8 additions and 4 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue