from retail

This commit is contained in:
Bunny67
2020-07-11 00:19:17 +03:00
parent bbb4ac1c37
commit 6a7003b535
27 changed files with 2317 additions and 647 deletions
+12
View File
@@ -2,10 +2,22 @@ local ipairs = ipairs
local pairs = pairs
local select = select
local ceil, floor = math.ceil, math.floor
local format = string.format
local GetInstanceInfo = GetInstanceInfo
local GetNumPartyMembers = GetNumPartyMembers
local GetNumRaidMembers = GetNumRaidMembers
local UnitClass = UnitClass
function GetClassColoredTextForUnit(unit, text)
local _, classFilename = UnitClass(unit)
local color = RAID_CLASS_COLORS[classFilename]
if color then
return format("|c%s%s|r", format("ff%.2x%.2x%.2x", color.r * 255, color.g * 255, color.b * 255), text)
else
return text
end
end
function tInvert(tbl)
local inverted = {};