UpdateNote("Cannot Inspect PVP Enemy", 2) |
end |
end |
local talenttext = { } |
function UpdateTitleText(unit, reset) |
local gname, gtitle = GetGuildInfo(unit) |
local talenttext = "" |
if not reset and GetNumTalentTabs() > 0 then |
wipe(talenttext) |
for i = 1, 3, 1 do |
local name, _, pts = GetTalentTabInfo(i, true) |
if not name then return end |
tinsert(talenttext, pts.." "..strsub(name, 1, 3)) |
local ctalent = GetActiveTalentGroup(true) |
for j = 1, GetNumTalentGroups(true), 1 do |
for i = 1, 3, 1 do |
local name, _, pts = GetTalentTabInfo(i, true, false, j) |
if not name then return end |
if i == 1 then |
if j > 1 then |
talenttext = format("%s - ", talenttext) |
end |
if ctalent == j then |
talenttext = format("%s|cffffff00", talenttext) |
end |
end |
talenttext = format("%s%s%d %s%s", talenttext, i == 1 and "" or " / ", pts, strsub(name, 1, 3), (ctalent == 1 and i == 3 and "|r") or "") |
end |
end |
else |
tinsert(talenttext, "-") |
talenttext = "-" |
end |
if gname then |
InspectTitleText:SetFormattedText("%s of <%s>\n%s", gtitle, gname, table.concat(talenttext, " / ")) |
InspectTitleText:SetFormattedText("%s of <%s>\n%s", gtitle, gname, talenttext) |
else |
InspectTitleText:SetFormattedText("-\n%s", table.concat(talenttext, " / ")) |
InspectTitleText:SetFormattedText("-\n%s", talenttext) |
end |
wipe(talenttext) |
InspectNameText:SetText(UnitPVPName(unit)) |
end |
|
InspectFrame_Show = function(unit) |