Skip to content

Commit

Permalink
update atlasLoot skins
Browse files Browse the repository at this point in the history
  • Loading branch information
Bunny67 committed Mar 7, 2016
1 parent 286e9eb commit 6af41e6
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 3 deletions.
5 changes: 2 additions & 3 deletions addons/atlas.lua
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
local E, L, V, P, G, _ = unpack(ElvUI);
local E, L, V, P, G = unpack(ElvUI);
local addon = E:GetModule("AddOnSkins");
local S = E:GetModule("Skins");

if(not addon:CheckAddOn("Atlas")) then return; end

function addon:Atlas()
local S = E:GetModule("Skins");

AtlasFrame:StripTextures();
AtlasFrame:SetTemplate("Transparent");

Expand Down
26 changes: 26 additions & 0 deletions addons/atlasLoot.lua
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,32 @@ function addon:AtlasLoot()
AtlasLootPanel:SetParent(AtlasFrame);
AtlasLootPanel:SetPoint("TOP", "AtlasFrame", "BOTTOM", 0, -2);
end);

local function skinDewdrop()
local i = 1;
while(_G["Dewdrop20Level" .. i]) do
_G["Dewdrop20Level" .. i]:SetTemplate("Transparent");
select(1, _G["Dewdrop20Level" .. i]:GetChildren()):Hide();
i = i + 1;
end

local i = 1;
while(_G["Dewdrop20Button"..i]) do
if(not _G["Dewdrop20Button" .. i].isHook) then
_G["Dewdrop20Button" .. i]:HookScript("OnEnter", function(this)
if(not this.disabled and this.hasArrow) then
skinDewdrop();
end
end);
_G["Dewdrop20Button" .. i].isHook = true;
end
i = i + 1;
end
end

hooksecurefunc(LibStub("Dewdrop-2.0", true), "Open", function(parent)
skinDewdrop();
end);
end

addon:RegisterSkin("AtlasLoot", addon.AtlasLoot);

0 comments on commit 6af41e6

Please sign in to comment.