Skip to content

Commit

Permalink
added openGF skins #13
Browse files Browse the repository at this point in the history
  • Loading branch information
Bunny67 committed Mar 7, 2016
1 parent 6af41e6 commit b002ce7
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 0 deletions.
1 change: 1 addition & 0 deletions addons/load_addons.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@
<Script file="flightMap.lua"/>
<Script file="weakAuras.lua"/>
<Script file="overachiever.lua"/>
<Script file="openGF.lua"/>
</Ui>
52 changes: 52 additions & 0 deletions addons/openGF.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
local E, L, V, P, G, _ = unpack(ElvUI);
local addon = E:GetModule("AddOnSkins");
local S = E:GetModule("Skins");

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

function addon:OpenGF()
ogf_OpenGF_MainFrame:StripTextures();
ogf_playerList:StripTextures();
ogf_plyContextMenu:StripTextures();

ogf_OpenGF_MainFrame:SetTemplate("Transparent");
ogf_playerList:SetTemplate("Transparent");
ogf_plyContextMenu:SetTemplate("Transparent");

S:HandleDropDownBox(ogf_categorySelect);
S:HandleDropDownBox(ogf_vanInstances);
S:HandleDropDownBox(ogf_tbcInstances);
S:HandleDropDownBox(ogf_tbcHeroic);
S:HandleDropDownBox(ogf_wotlkInstances);
S:HandleDropDownBox(ogf_wotlkHeroic);

ogf_categorySelect:SetWidth(200);
ogf_vanInstances:SetWidth(200);
ogf_tbcInstances:SetWidth(200);
ogf_tbcHeroic:SetWidth(200);
ogf_wotlkInstances:SetWidth(200);
ogf_wotlkHeroic:SetWidth(200);

ogf_searchButton:Point("LEFT", ogf_vanInstances, "RIGHT")

S:HandleScrollBar(scrollFrameScrollBar);

S:HandleButton(ogf_searchButton);
S:HandleButton(ogf_enlistButton);

S:HandleCloseButton(ogf_minimizeButton);

S:HandleEditBox(ogf_noteText);

local OpenGFConfigCheck = {
"ogf_dpsCheck",
"ogf_tankCheck",
"ogf_healCheck",
};

for i = 1, getn(OpenGFConfigCheck) do
S:HandleCheckBox(_G[OpenGFConfigCheck[i]]);
end
end

addon:RegisterSkin("OpenGF", addon.OpenGF);
1 change: 1 addition & 0 deletions profiles.lua
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ V.addOnSkins = {
FlightMap = true,
WeakAuras = true,
Overachiever = true,
OpenGF = true,

Blizzard_WorldStateFrame = true,
};

0 comments on commit b002ce7

Please sign in to comment.