Fixed UID scaling on fontsize

This commit is contained in:
cake
2025-12-19 19:38:43 +01:00
parent 234fe5d360
commit 54b50886c0

View File

@@ -629,8 +629,9 @@ public class CompactUi : WindowMediatorSubscriberBase
{ {
var seString = SeStringUtils.BuildFormattedPlayerName(uidText, vanityTextColor, vanityGlowColor); var seString = SeStringUtils.BuildFormattedPlayerName(uidText, vanityTextColor, vanityGlowColor);
var cursorPos = ImGui.GetCursorScreenPos(); var cursorPos = ImGui.GetCursorScreenPos();
var fontPtr = ImGui.GetFont(); var targetFontSize = ImGui.GetFontSize();
SeStringUtils.RenderSeStringWithHitbox(seString, cursorPos, fontPtr, "uid-header"); var font = ImGui.GetFont();
SeStringUtils.RenderSeStringWithHitbox(seString, cursorPos, targetFontSize ,font , "uid-header");
} }
else else
{ {
@@ -716,8 +717,9 @@ public class CompactUi : WindowMediatorSubscriberBase
{ {
var seString = SeStringUtils.BuildFormattedPlayerName(_apiController.UID, vanityTextColor, vanityGlowColor); var seString = SeStringUtils.BuildFormattedPlayerName(_apiController.UID, vanityTextColor, vanityGlowColor);
var cursorPos = ImGui.GetCursorScreenPos(); var cursorPos = ImGui.GetCursorScreenPos();
var fontPtr = ImGui.GetFont(); var targetFontSize = ImGui.GetFontSize();
SeStringUtils.RenderSeStringWithHitbox(seString, cursorPos, fontPtr, "uid-footer"); var font = ImGui.GetFont();
SeStringUtils.RenderSeStringWithHitbox(seString, cursorPos, targetFontSize, font, "uid-footer");
} }
else else
{ {