mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-15 21:24:16 +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.Gui;
|
||||||
using Dalamud.Game.Text;
|
using Dalamud.Game.Text;
|
||||||
using Dalamud.Interface.Animation.EasingFunctions;
|
using Dalamud.Interface.Animation.EasingFunctions;
|
||||||
using Dalamud.Interface.ImGuiSeStringRenderer;
|
|
||||||
using Dalamud.Interface.ManagedFontAtlas;
|
using Dalamud.Interface.ManagedFontAtlas;
|
||||||
using Dalamud.Interface.ManagedFontAtlas.Internals;
|
using Dalamud.Interface.ManagedFontAtlas.Internals;
|
||||||
using Dalamud.Interface.Textures.TextureWraps;
|
using Dalamud.Interface.Textures.TextureWraps;
|
||||||
|
|
@ -398,9 +397,14 @@ internal class TitleScreenMenuWindow : Window, IDisposable
|
||||||
|
|
||||||
// Drop shadow
|
// Drop shadow
|
||||||
ImGui.SetCursorPos(cursor);
|
ImGui.SetCursorPos(cursor);
|
||||||
var renderStyle = default(SeStringDrawParams);
|
ImGuiHelpers.SeStringWrapped(
|
||||||
renderStyle.FontSize = TargetFontSizePx;
|
ReadOnlySeString.FromText(entry.Name),
|
||||||
ImGuiHelpers.CompileSeStringWrapped($"<edge(1)><shadow(1)>{entry.Name}<shadow(0)><edge(0)>", renderStyle);
|
new()
|
||||||
|
{
|
||||||
|
FontSize = TargetFontSizePx * ImGui.GetIO().FontGlobalScale,
|
||||||
|
Edge = true,
|
||||||
|
Shadow = true,
|
||||||
|
});
|
||||||
|
|
||||||
if (overrideAlpha)
|
if (overrideAlpha)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue