Skip to content

Commit

Permalink
Merge pull request #875 from AntlerForce/master
Browse files Browse the repository at this point in the history
Tweak mapName truncation
  • Loading branch information
AntlerForce authored Dec 26, 2024
2 parents 12f6d5c + 3e66715 commit 1f6e910
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion LuaMenu/widgets/gui_battle_room_window.lua
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ local function SetupInfoButtonsPanel(leftInfo, rightInfo, battle, battleID, myUs
return
end
mapName = battle.mapName:gsub("_", " ")
mapName = StringUtilities.GetTruncatedStringWithDotDot(mapName, lblMapName.font, width - 22)
mapName = StringUtilities.GetTruncatedStringWithDotDot(mapName, lblMapName.font, width)
lblMapName:SetCaption(mapName)
end
SetMapName(battle.mapName, mapLinkWidth)
Expand Down

0 comments on commit 1f6e910

Please sign in to comment.