From a08d3521838901db40029c7f5a1e6f6d906c357d Mon Sep 17 00:00:00 2001 From: Moose <124457076+AntlerForce@users.noreply.github.com> Date: Mon, 9 Dec 2024 15:04:29 -0700 Subject: [PATCH] Better title truncation --- LuaMenu/widgets/gui_battle_status_panel.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LuaMenu/widgets/gui_battle_status_panel.lua b/LuaMenu/widgets/gui_battle_status_panel.lua index 83c5fcbf1..71a4d30ba 100644 --- a/LuaMenu/widgets/gui_battle_status_panel.lua +++ b/LuaMenu/widgets/gui_battle_status_panel.lua @@ -163,7 +163,7 @@ local function GetBattleInfoHolder(parent, battleID) playersPrefix = PLAYER_PREFIX_BIG end - local text = StringUtilities.GetTruncatedStringWithDotDot(battle.title, lblTitle.font, smallMode and 160 or 130) + local text = StringUtilities.GetTruncatedStringWithDotDot(battle.title, lblTitle.font, smallMode and 150 or 180) lblTitle:SetCaption(text) lblPlayers:SetCaption(playersPrefix .. lobby:GetBattlePlayerCount(battleID) .. "/" .. battle.maxPlayers)