Skip to content

Commit

Permalink
Better title truncation
Browse files Browse the repository at this point in the history
  • Loading branch information
AntlerForce committed Dec 9, 2024
1 parent 32efee5 commit a08d352
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion LuaMenu/widgets/gui_battle_status_panel.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a08d352

Please sign in to comment.