Mark alts clearer on Bids tablet.

Personal EPGP message that accounts for alt,main relation.
Fix alpha version.
This commit is contained in:
Road-block
2018-01-31 21:32:09 +02:00
parent 06ff00eef5
commit c097425484
4 changed files with 29 additions and 9 deletions
+14 -2
View File
@@ -180,8 +180,14 @@ function sepgp_bids:OnTooltipUpdate()
local tm = self:BuildBidsTable()
for i = 1, table.getn(tm) do
local name, class, ep, gp, pr, main = unpack(tm[i])
local namedesc
if (main) then
namedesc = string.format("%s(%s)", C:Colorize(BC:GetHexColor(class), name), L["Alt"])
else
namedesc = C:Colorize(BC:GetHexColor(class), name)
end
maincat:AddLine(
"text", C:Colorize(BC:GetHexColor(class), name),
"text", namedesc,
"text2", string.format("%.4g", ep),
"text3", string.format("%.4g", gp),
"text4", string.format("%.4g", pr),
@@ -205,8 +211,14 @@ function sepgp_bids:OnTooltipUpdate()
local _,to = self:BuildBidsTable()
for i = 1, table.getn(to) do
local name, class, ep, gp, pr, main = unpack(to[i])
local namedesc
if (main) then
namedesc = string.format("%s%(%s%)", C:Colorize(BC:GetHexColor(class), name), L["Alt"])
else
namedesc = C:Colorize(BC:GetHexColor(class), name)
end
offcat:AddLine(
"text", C:Colorize(BC:GetHexColor(class), name),
"text", namedesc,
"text2", string.format("%.4g", ep),
"text3", string.format("%.4g", gp),
"text4", string.format("%.4g", pr),