/trunk
## Title: Stuf Unit Frames |
## Author: TotalPackage |
## Notes: Main unitframes replacement. Assembly optional. |
## Version: 7.0.002 |
## Version: 7.0.003 |
## SavedVariables: StufDB |
## SavedVariablesPerCharacter: StufCharDB |
local ctime = GetTime() |
local i1, i2 = f[1], f[2] |
local e1, e1duration, e1count, e2, e2duration, e2count |
local e1, e1duration, e1count, e1id, e2, e2duration, e2count, e2id |
if config then |
e1, e1duration, e1count, e2, e2duration, e2count = true, 60000, 0, true, 600000, 23 |
else |
e1, e1duration, e1count, e2, e2duration, e2count = GetWeaponEnchantInfo() |
e1, e1duration, e1count, e1id, e2, e2duration, e2count, e2id = GetWeaponEnchantInfo() |
end |
if e1 then |
i1.texture:SetTexture(GetInventoryItemTexture("player", 16)) |
if cache.pvpffa then -- free for all pvp (Arena) |
icon:SetTexture("Interface\\TargetingFrame\\UI-PVP-FFA") |
icon:SetVertexColor(1, 1, 1) |
icon:SetTexCoord(0, 0.65, 0, 0.65) |
f:Show() |
elseif cache.pvp then |
if prestige > 0 then |
icon:SetTexture(GetPrestigeInfo(prestige)) |
icon:SetVertexColor(1, 1, 1) |
icon:SetTexCoord(0, 1, 0, 1) |
f:Show() |
else |
icon:SetTexCoord(0, 0.65, 0, 0.65) |
if cache.faction ~= "" then -- faction pvp (Alliance, Horde) |
icon:SetTexture("Interface\\TargetingFrame\\UI-PVP-"..(cache.faction or "FFA")) |
icon:SetVertexColor(1, 1, 1) |
f = Stuf:CreateBase(unit, uf, name, db) |
f.texture = f:CreateTexture(nil, "ARTWORK") |
f.texture:SetAllPoints(f) |
f.texture:SetTexCoord(0, 0.65, 0, 0.65) |
uf.refreshfuncs[name] = UpdatePVP |
Stuf:RegisterElementRefresh(uf, name, "reactionelements", true) |
## Title: Stuf Raid Frames |
## Author: TotalPackage |
## Notes: Raid unit frames. Assembly optional. (Does not require Stuf) |
## Version: 7.0.002 |
## Version: 7.0.003 |
## SavedVariables: StufRaidDB |
## SavedVariablesPerCharacter: StufRaidCharLayoutDB, StufRaidCharDB |