├── img ├── TOP_GOLD_LEFT.tga ├── TOP_GOLD_RIGHT.tga ├── TOP_GRAY_LEFT.tga ├── TOP_GRAY_RIGHT.tga ├── BOTTOM_GOLD_LEFT.tga ├── BOTTOM_GRAY_LEFT.tga ├── BOTTOM_GOLD_RIGHT.tga └── BOTTOM_GRAY_RIGHT.tga ├── pfUI-eliteoverlay.toc ├── pfUI-eliteoverlay-tbc.toc ├── README.md └── pfUI-eliteoverlay.lua /img/TOP_GOLD_LEFT.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shagu/pfUI-eliteoverlay/HEAD/img/TOP_GOLD_LEFT.tga -------------------------------------------------------------------------------- /img/TOP_GOLD_RIGHT.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shagu/pfUI-eliteoverlay/HEAD/img/TOP_GOLD_RIGHT.tga -------------------------------------------------------------------------------- /img/TOP_GRAY_LEFT.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shagu/pfUI-eliteoverlay/HEAD/img/TOP_GRAY_LEFT.tga -------------------------------------------------------------------------------- /img/TOP_GRAY_RIGHT.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shagu/pfUI-eliteoverlay/HEAD/img/TOP_GRAY_RIGHT.tga -------------------------------------------------------------------------------- /img/BOTTOM_GOLD_LEFT.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shagu/pfUI-eliteoverlay/HEAD/img/BOTTOM_GOLD_LEFT.tga -------------------------------------------------------------------------------- /img/BOTTOM_GRAY_LEFT.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shagu/pfUI-eliteoverlay/HEAD/img/BOTTOM_GRAY_LEFT.tga -------------------------------------------------------------------------------- /img/BOTTOM_GOLD_RIGHT.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shagu/pfUI-eliteoverlay/HEAD/img/BOTTOM_GOLD_RIGHT.tga -------------------------------------------------------------------------------- /img/BOTTOM_GRAY_RIGHT.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shagu/pfUI-eliteoverlay/HEAD/img/BOTTOM_GRAY_RIGHT.tga -------------------------------------------------------------------------------- /pfUI-eliteoverlay.toc: -------------------------------------------------------------------------------- 1 | ## Interface: 11200 2 | ## Title: |cff33ffccpf|cffffffffUI|cffaaaaaa [Elite Overlay] 3 | ## Author: Shagu 4 | ## Notes: Elite Overlay for pfUI unitframes 5 | ## Version: 1.0 6 | ## Dependencies: pfUI 7 | 8 | # main 9 | pfUI-eliteoverlay.lua 10 | -------------------------------------------------------------------------------- /pfUI-eliteoverlay-tbc.toc: -------------------------------------------------------------------------------- 1 | ## Interface: 20400 2 | ## Title: |cff33ffccpf|cffffffffUI|cffaaaaaa [Elite Overlay] 3 | ## Author: Shagu 4 | ## Notes: Elite Overlay for pfUI unitframes 5 | ## Version: 1.0 6 | ## Dependencies: pfUI-tbc 7 | 8 | # main 9 | pfUI-eliteoverlay.lua 10 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # pfUI Elite Overlay 2 | 3 | An extension for pfUI which adds dragon textures to elite, rare and worldbosses. 4 | 5 | ![screenshot](https://raw.githubusercontent.com/shagu/ShaguAddons/master/_img/pfUI-eliteoverlay/screenshot.png) 6 | 7 | ## Installation (Vanilla, 1.12) 8 | 1. Download **[Latest Version](https://github.com/shagu/pfUI-eliteoverlay/archive/master.zip)** 9 | 2. Unpack the Zip file 10 | 3. Rename the folder "pfUI-eliteoverlay-master" to "pfUI-eliteoverlay" 11 | 4. Copy "pfUI-eliteoverlay" into Wow-Directory\Interface\AddOns 12 | 5. Restart Wow 13 | 14 | ## Installation (The Burning Crusade, 2.4.3) 15 | 1. Download **[Latest Version](https://github.com/shagu/pfUI-eliteoverlay/archive/master.zip)** 16 | 2. Unpack the Zip file 17 | 3. Rename the folder "pfUI-eliteoverlay-master" to "pfUI-eliteoverlay-tbc" 18 | 4. Copy "pfUI-eliteoverlay-tbc" into Wow-Directory\Interface\AddOns 19 | 5. Restart Wow 20 | 21 | ## Credits 22 | Artwork by [GaMu-ChAn](https://www.deviantart.com/gamu-chan/art/WOW-Elite-frame-143568653) 23 | -------------------------------------------------------------------------------- /pfUI-eliteoverlay.lua: -------------------------------------------------------------------------------- 1 | pfUI:RegisterModule("EliteOverlay", "vanilla:tbc", function () 2 | pfUI.gui.dropdowns.EliteOverlay_positions = { 3 | "left:" .. T["Left"], 4 | "right:" .. T["Right"], 5 | "off:" .. T["Disabled"] 6 | } 7 | 8 | -- detect current addon path 9 | local addonpath 10 | local tocs = { "", "-master", "-tbc", "-wotlk" } 11 | for _, name in pairs(tocs) do 12 | local current = string.format("pfUI-eliteoverlay%s", name) 13 | local _, title = GetAddOnInfo(current) 14 | if title then 15 | addonpath = "Interface\\AddOns\\" .. current 16 | break 17 | end 18 | end 19 | 20 | if pfUI.gui.CreateGUIEntry then -- new pfUI 21 | pfUI.gui.CreateGUIEntry(T["Thirdparty"], T["Elite Overlay"], function() 22 | pfUI.gui.CreateConfig(pfUI.gui.UpdaterFunctions["target"], T["Select dragon position"], C.EliteOverlay, "position", "dropdown", pfUI.gui.dropdowns.EliteOverlay_positions) 23 | end) 24 | else -- old pfUI 25 | pfUI.gui.tabs.thirdparty.tabs.EliteOverlay = pfUI.gui.tabs.thirdparty.tabs:CreateTabChild("EliteOverlay", true) 26 | pfUI.gui.tabs.thirdparty.tabs.EliteOverlay:SetScript("OnShow", function() 27 | if not this.setup then 28 | local CreateConfig = pfUI.gui.CreateConfig 29 | local update = pfUI.gui.update 30 | this.setup = true 31 | end 32 | end) 33 | end 34 | 35 | pfUI:UpdateConfig("EliteOverlay", nil, "position", "right") 36 | 37 | local HookRefreshUnit = pfUI.uf.RefreshUnit 38 | function pfUI.uf:RefreshUnit(unit, component) 39 | local pos = string.upper(C.EliteOverlay.position) 40 | local invert = C.EliteOverlay.position == "right" and 1 or -1 41 | local unitstr = ( unit.label or "" ) .. ( unit.id or "" ) 42 | 43 | local size = unit:GetWidth() / 1.5 44 | local elite = UnitClassification(unitstr) 45 | 46 | unit.dragon = unit.dragon or CreateFrame("Frame", nil, unit) 47 | unit.dragon:SetAllPoints(unit) 48 | unit.dragon:SetFrameLevel(8) 49 | 50 | unit.dragonTop = unit.dragonTop or unit.dragon:CreateTexture(nil, "OVERLAY") 51 | unit.dragonBottom = unit.dragonBottom or unit.dragon:CreateTexture(nil, "OVERLAY") 52 | 53 | if unitstr == "" or C.EliteOverlay.position == "off" then 54 | unit.dragon:Hide() 55 | else 56 | unit.dragonTop:ClearAllPoints() 57 | unit.dragonTop:SetWidth(size) 58 | unit.dragonTop:SetHeight(size) 59 | unit.dragonTop:SetPoint("TOP"..pos, unit, "TOP"..pos, invert*size/5, size/7) 60 | 61 | unit.dragonBottom:ClearAllPoints() 62 | unit.dragonBottom:SetWidth(size) 63 | unit.dragonBottom:SetHeight(size) 64 | unit.dragonBottom:SetPoint("BOTTOM"..pos, unit, "BOTTOM"..pos, invert*size/5.2, -size/2.98) 65 | 66 | if elite == "worldboss" then 67 | unit.dragonTop:SetTexture(addonpath.."\\img\\TOP_GOLD_"..pos) 68 | unit.dragonTop:SetVertexColor(.85,.15,.15,1) 69 | unit.dragonBottom:SetTexture(addonpath.."\\img\\BOTTOM_GOLD_"..pos) 70 | unit.dragonBottom:SetVertexColor(.85,.15,.15,1) 71 | unit.dragon:Show() 72 | elseif elite == "rareelite" then 73 | unit.dragonTop:SetTexture(addonpath.."\\img\\TOP_GOLD_"..pos) 74 | unit.dragonTop:SetVertexColor(1,1,1,1) 75 | unit.dragonBottom:SetTexture(addonpath.."\\img\\BOTTOM_GOLD_"..pos) 76 | unit.dragonBottom:SetVertexColor(1,1,1,1) 77 | unit.dragon:Show() 78 | elseif elite == "elite" then 79 | unit.dragonTop:SetTexture(addonpath.."\\img\\TOP_GOLD_"..pos) 80 | unit.dragonTop:SetVertexColor(.75,.6,0,1) 81 | unit.dragonBottom:SetTexture(addonpath.."\\img\\BOTTOM_GOLD_"..pos) 82 | unit.dragonBottom:SetVertexColor(.75,.6,0,1) 83 | unit.dragon:Show() 84 | elseif elite == "rare" then 85 | unit.dragonTop:SetTexture(addonpath.."\\img\\TOP_GRAY_"..pos) 86 | unit.dragonTop:SetVertexColor(.8,.8,.8,1) 87 | unit.dragonBottom:SetTexture(addonpath.."\\img\\BOTTOM_GRAY_"..pos) 88 | unit.dragonBottom:SetVertexColor(.8,.8,.8,1) 89 | unit.dragon:Show() 90 | else 91 | unit.dragon:Hide() 92 | end 93 | end 94 | 95 | HookRefreshUnit(this, unit, component) 96 | end 97 | end) 98 | --------------------------------------------------------------------------------