Skip to content

Commit

Permalink
Merge pull request #848 from AntlerForce/master
Browse files Browse the repository at this point in the history
Better title truncation in battle status panel
  • Loading branch information
AntlerForce authored Dec 9, 2024
2 parents 2683a25 + a08d352 commit af4a816
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 af4a816

Please sign in to comment.