Skip to content

Commit

Permalink
Merge pull request #186 from teelolws/classic
Browse files Browse the repository at this point in the history
Truncate long names in the GUI
  • Loading branch information
kakysha authored Mar 7, 2022
2 parents f9e579a + 1d4729c commit 001f964
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions GUI.lua
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,9 @@ function GUI:UpdateTableView()
last_seen_human = ""..last_seen..L["s"]
end
button:SetID(itemIndex);
local trimmedName = name
if trimmedName:find("-") then
trimmedName = trimmedName:sub(0, trimmedName:find("-") + 1)
end
button.Name:SetText(colorize(itemIndex .. ') ', "GREY") .. colorize(trimmedName, class));
button.Name:SetText(colorize(itemIndex .. ') ', "GREY") .. colorize(name, class));
button.Name:SetNonSpaceWrap(false)
button.Name:SetWordWrap(false)
if tonumber(thisWeekHonor) == 1 then thisWeekHonor = 0 end
button.Honor:SetText(colorize(thisWeekHonor, class));
if HonorSpy.db.factionrealm.estHonorCol.show then
Expand Down

0 comments on commit 001f964

Please sign in to comment.