From 4c062518d1b0f66cb6d1811bf7fffa60054ce98b Mon Sep 17 00:00:00 2001 From: speed2CZ Date: Wed, 1 Jan 2025 18:02:47 +0100 Subject: [PATCH] Fix text overflow in mods manager tooltips The mod manager is using some custom logic for the tooltips and its was not scaling the width of the tooltip causing text overflow on couple of the elements. --- lua/ui/lobby/ModsManager.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/ui/lobby/ModsManager.lua b/lua/ui/lobby/ModsManager.lua index ba23ab3068..b7413b1c1d 100644 --- a/lua/ui/lobby/ModsManager.lua +++ b/lua/ui/lobby/ModsManager.lua @@ -1436,6 +1436,7 @@ end function AddTooltip(control, title, description, width, padding, fontSize, position) if not fontSize then fontSize = 14 end if not position then position = 'left' end + if width then width = LayoutHelpers.ScaleNumber(width) end import("/lua/ui/game/tooltip.lua").AddControlTooltipManual(control, title, description, 0, width, 6, fontSize or 14, fontSize, position or 'left') end