/Interface/AddOns/Skinner/AddonSkins
local ARL = LibStub("AceAddon-3.0"):GetAddon("Ackis Recipe List", true) |
if not ARL then return end |
-- check version, if not a specified release or beta then don't skin it |
-- check version, if not a specified release or beta then treat it as version 10 |
local vTab = { |
["1.0 2817"] = 1, -- release |
["1.0 @project-revision@"] = 2, -- beta |
["2.1.0"] = 10, -- release |
} |
local aVer = GetAddOnMetadata("AckisRecipeList", "Version") |
local ver = vTab[aVer] |
if not ver then self:CustomPrint(1, 0, 0, "%s [%s]", "Unsupported ARL version", aVer) return end |
local ver = vTab[aVer] or 10 |
local function skinARL(frame) |
local function skinAceGUI(obj, objType) |
local objVer = AceGUI.GetWidgetVersion and AceGUI:GetWidgetVersion(objType) or 0 |
-- aObj:Debug("skinAceGUI: [%s, %s, %s]", obj, objType, objVer) |
-- aObj:Debug("skinAceGUI: [%s, %s, %s]", obj, objType, objVer) |
if obj and not aObj.skinned[obj] then |
if objType == "BlizOptionsGroup" then |
aObj:keepFontStrings(obj.frame) |
aObj:applySkin(obj.frame) |
aObj:applySkin{obj=obj.frame, kfs=true} |
elseif objType == "Dropdown" then |
aObj:skinDropDown{obj=obj.dropdown} |
aObj:applySkin(obj.pullout.frame) |
aObj:applySkin{obj=obj.pullout.frame} |
elseif objType == "Dropdown-Pullout" then |
aObj:applySkin(obj.frame) |
aObj:applySkin{obj=obj.frame} |
elseif objType == "DropdownGroup" |
or objType == "InlineGroup" |
or objType == "TabGroup" |
then |
if objVer < 20 then |
aObj:keepFontStrings(obj.border) |
aObj:applySkin(obj.border) |
aObj:applySkin{obj=obj.border, kfs=true} |
else |
aObj:keepFontStrings(obj.content:GetParent()) |
aObj:applySkin(obj.content:GetParent()) |
aObj:applySkin{obj=obj.content:GetParent(), kfs=true} |
end |
elseif objType == "EditBox" |
or objType == "NumberEditBox" |
aObj:skinButton{obj=obj.button, as=true} |
if objVer < 20 then |
aObj:skinScrollBar{obj=obj.scrollframe} |
aObj:applySkin(obj.backdrop) |
aObj:applySkin{obj=obj.backdrop} |
else |
aObj:skinScrollBar{obj=obj.scrollFrame} |
aObj:applySkin{obj=aObj:getChild(obj.frame, 2)} -- backdrop frame |
obj.editbox:SetHeight(20) |
obj.editbox:SetWidth(60) |
elseif objType == "Frame" then |
aObj:keepFontStrings(obj.frame) |
aObj:applySkin(obj.frame) |
aObj:applySkin{obj=obj.frame, kfs=true} |
if objVer < 20 then |
aObj:skinButton{obj=obj.closebutton, y1=1} |
aObj:applySkin(obj.statusbg) |
aObj:applySkin{obj=obj.statusbg} |
else |
aObj:skinButton{obj=aObj:getChild(obj.frame, 1), y1=1} |
aObj:applySkin{obj=aObj:getChild(obj.frame, 2)} -- backdrop frame |
end |
obj.titletext:SetPoint("TOP", obj.frame, "TOP", 0, -6) |
elseif objType == "Window" then |
aObj:keepFontStrings(obj.frame) |
aObj:applySkin(obj.frame) |
aObj:applySkin{obj=obj.frame, kfs=true} |
aObj:skinButton{obj=obj.closebutton, cb=true} |
obj.titletext:SetPoint("TOP", obj.frame, "TOP", 0, -6) |
elseif objType == "ScrollFrame" then |
elseif objType == "TreeGroup" then |
aObj:keepRegions(obj.scrollbar, {1}) |
aObj:skinUsingBD{obj=obj.scrollbar} |
aObj:applySkin(obj.border) |
aObj:applySkin(obj.treeframe) |
aObj:applySkin{obj=obj.border} |
aObj:applySkin{obj=obj.treeframe} |
if aObj.modBtns then |
-- hook to manage changes to button textures |
aObj:SecureHook(obj, "RefreshTree", function() |
aObj:SecureHook(obj, "RefreshTree", function(this) |
local btn |
for i = 1, #obj.buttons do |
btn = obj.buttons[i] |
for i = 1, #this.buttons do |
btn = this.buttons[i] |
if not aObj.skinned[btn.toggle] then |
aObj:skinButton{obj=btn.toggle, mp2=true, plus=true} -- default to plus |
end |
aObj:SecureHook(obj.expand, "SetNormalTexture", function(this, nTex) |
aObj.modUIBtns:checkTex{obj=this, nTex=nTex, mp2=true} |
end) |
elseif objType == "WeakAurasNewButton" then |
elseif objType == "WeakAurasDisplayButton" then |
aObj:skinEditBox{obj=obj.renamebox, regs={9}, noHeight=true} |
aObj.modUIBtns:checkTex{obj=this, nTex=nTex, mp2=true} |
end) |
-- DragDropTarget object (ReagentRestocker) |
elseif objType == "DragDropTarget" then |
-- ignore these types for now |
elseif objType == "CheckBox" |
or objType == "Dropdown-Item-Execute" |
function aObj:MinimalArchaeology() |
MinimalArchaeologyFrameSkillBarBorder:Hide() |
MinimalArchaeologyFrameSkillBarBackground:SetAllPoints(MinimalArchaeologyFrame.skillBar) |
self:glazeStatusBar(MinimalArchaeologyFrame.skillBar, 0, MinimalArchaeologyFrameSkillBarBackground) |
-- Buttons |
self:skinButton{obj=MinArchMain.buttonOpenHist, ob2="h"} |
self:moveObject{obj=MinArchMain.buttonOpenHist, x=self.modBtns and 2 or 8} |
self:skinButton{obj=MinArchMain.buttonOpenArch, ob2="a"} |
self:moveObject{obj=MinArchMain.buttonOpenArch, x=self.modBtns and 2 or 8} |
self:skinButton{obj=MinArchMain.openADIButton, ob2="d"} |
self:moveObject{obj=MinArchMain.openADIButton, x=self.modBtns and 2 or 8} |
self:skinButton{obj=MinArchMain.buttonClose, ob2="x"} |
self:moveObject{obj=MinArchMain.buttonClose, x=self.modBtns and 2 or 8} |
-- Skill Bar |
MinArchMainSkillBarBorder:Hide() |
MinArchMainSkillBarBackground:SetAllPoints(MinArchMain.skillBar) |
self:glazeStatusBar(MinArchMain.skillBar, 0, MinArchMainSkillBarBackground) |
-- Artifact Bars |
for i = 1, 10 do |
local objName = "MinimalArchaeologyFrameArtifactBar"..i |
local objName = "MinArchMainArtifactBar"..i |
local obj = _G[objName] |
_G[objName.."BarBG"]:Hide() |
obj:GetStatusBarTexture():SetTexCoord(0, 1, 0, 1) |
obj.progress:GetStatusBarTexture():SetTexCoord(0, 1, 0, 1) |
self:glazeStatusBar(obj, 0, nil) |
self:glazeStatusBar(obj.progress, 0, nil) |
self:skinButton{obj=obj.solveButton} |
self:skinButton{obj=obj.buttonSolve} |
end |
-- Frame |
self:addSkinFrame{obj=MinArchMain, nb=true, y1=4} |
self:skinButton{obj=MinimalArchaeologyFrame.openHistButton, ob2="h"} |
self:moveObject{obj=MinimalArchaeologyFrame.openHistButton, x=self.modBtns and 2 or 8} |
self:skinButton{obj=MinimalArchaeologyFrame.openArchButton, ob2="a"} |
self:moveObject{obj=MinimalArchaeologyFrame.openArchButton, x=self.modBtns and 2 or 8} |
self:skinButton{obj=MinimalArchaeologyFrame.closeButton, ob2="x"} |
self:moveObject{obj=MinimalArchaeologyFrame.closeButton, x=self.modBtns and 2 or 8} |
self:addSkinFrame{obj=MinimalArchaeologyFrame, nb=true, y1=4} |
-->>-- option panels |
self:addSkinFrame{obj=MinimalArchaeologyOptionPanel.hideArtifact} |
self:addSkinFrame{obj=MinimalArchaeologyOptionPanel.useKeystones} |
self:addSkinFrame{obj=MinimalArchaeologyOptionPanel.miscOptions} |
self:addSkinFrame{obj=MinimalArchaeologyOptionPanel.frameScale} |
self:addSkinFrame{obj=MinArchOptionPanel.hideArtifact} |
self:addSkinFrame{obj=MinArchOptionPanel.capArtifact} |
self:addSkinFrame{obj=MinArchOptionPanel.useKeystones} |
self:addSkinFrame{obj=MinArchOptionPanel.miscOptions} |
self:addSkinFrame{obj=MinArchOptionPanel.frameScale} |
-->>-- History Frame |
MinimalArchaeologyHistoryFrameGrad.bg:Hide() |
self:skinButton{obj=MinimalArchaeologyHistoryFrame.closeButton, ob2="x"} |
self:moveObject{obj=MinimalArchaeologyHistoryFrame.closeButton, x=self.modBtns and 2 or 8} |
self:addSkinFrame{obj=MinimalArchaeologyHistoryFrame, nb=true, y1=4} |
MinArchHistGrad.bg:Hide() |
self:skinButton{obj=MinArchHist.buttonClose, ob2="x"} |
self:moveObject{obj=MinArchHist.buttonClose, x=self.modBtns and 2 or 8} |
self:addSkinFrame{obj=MinArchHist, nb=true, y1=4} |
-- hook this to remove background textures |
self:SecureHook(MinimalArchaeology, "CreateHistoryList", function(this, raceID) |
self:SecureHook(MinArch, "CreateHistoryList", function(this, raceID) |
MinArchScrollFrame.bg:Hide() |
MinArchScrollBar.bg:Hide() |
self:Unhook(MinimalArchaeology, "CreateHistoryList") |
self:skinSlider{obj=MinArchScrollBar} |
self:Unhook(MinArch, "CreateHistoryList") |
end) |
-->>-- Digsites Frame |
MinArchDigsitesGrad.bg:Hide() |
self:addButtonBorder{obj=MinArchDigsites.kalimdorButton} |
self:addButtonBorder{obj=MinArchDigsites.easternButton} |
self:addButtonBorder{obj=MinArchDigsites.outlandsButton} |
self:addButtonBorder{obj=MinArchDigsites.northrendButton} |
self:skinButton{obj=MinArchDigsites.buttonClose, ob2="x"} |
self:moveObject{obj=MinArchDigsites.buttonClose, x=self.modBtns and 2 or 8} |
self:addSkinFrame{obj=MinArchDigsites, nb=true, y1=4} |
self:SecureHook(MinArch, "CreateDigSitesList", function(this, contID) |
MinArchDSScrollFrame.bg:Hide() |
MinArchScrollDSBar.bg:Hide() |
-- self:skinSlider{obj=MinArchScrollDSBar} |
self:Unhook(MinArch, "CreateDigSitesList") |
end) |
-->>-- Tooltip |
self:addButtonBorder{obj=MinArchTooltipIcon, relTo=MinArchTooltipIcon.icon, ofs=1} |
end |
self:skinDropDown{obj=PowaDropDownStacksTexture} |
self:skinDropDown{obj=PowaBuffStacksRelative} |
self:addSkinFrame{obj=PowaBarConfigFrameEditor6, ofs=2} |
end |
if not aObj:isAddonEnabled("PowerAurasButtons_Config") then return end |
function aObj:PowerAurasButtons() |
function aObj:PowerAurasButtons_Config() |
-- skin Module Manager frame |
self:addSkinFrame{obj=PowerAurasButtons_ModuleScrollFrame:GetParent()} |
self:SecureHook(PowerAurasButtons_Config, "CreateOptionsFrame", function(this) |
self:skinSlider{obj=PowerAurasButtons_SliderThrottle}--, size=3} |
self:Unhook(PowerAurasButtons_Config, "CreateOptionsFrame") |
end) |
self:SecureHook(PowerAurasButtons_Config, "CreateActionSettingsFrame", function(this) |
self:moveObject{obj=PowerAurasButtonsActionsFrame, x=6, y=2} |
self:addSkinFrame{obj=PowerAurasButtonsActionsFrame, kfs=true, ofs=-2} |
local AuraFrame = self:getChild(PowerAurasButtonsActionsFrame, 1) |
self:addSkinFrame{obj=AuraFrame, kfs=true, ofs=2} |
self:skinScrollBar{obj=AuraFrame.Scroll} |
self:skinButton{obj=AuraFrameList.Items[1].newAction, mp2=true, as=true} |
self:Unhook(PowerAurasButtons_Config, "CreateActionSettingsFrame") |
end) |
self:SecureHook(PowerAurasButtons_Config, "CreateAuraAction", function(this) |
for i = 2, #AuraFrameList.Items do |
local item = AuraFrameList.Items[i] |
if not self.skinned[item] then |
self:skinDropDown{obj=item.ActionType} |
self:skinEditBox{obj=item.ActionID, regs={9}} |
end |
end |
end) |
end |
-- many thanks to acirac for the updated skin |
if not Skinner:isAddonEnabled("HealBot") then return end |
function Skinner:HealBot() -- version 4.0.3.4 |
function Skinner:HealBot() -- version 4.0.6.2 |
if not self.db.profile.Tooltips.skin then return end |
-->>-- Tooltips |
self:keepFontStrings(HealBot_Options_BarHealthType) |
self:keepFontStrings(HealBot_Options_BarHealthNumFormat1) |
self:keepFontStrings(HealBot_Options_BarHealthNumFormat2) |
self:keepFontStrings(HealBot_Options_HeadFontOutline) |
self:keepFontStrings(HealBot_Options_FontOutline) |
self:keepFontStrings(HealBot_Options_EmergencyFClass) |
self:keepFontStrings(HealBot_Options_EmergLFrame) |
end |
self:skinScrollBar{obj=MRTSkillListScrollFrame} |
self:glazeStatusBar(MRTSkillRankFrame, 0, MRTSkillRankFrameBackground) |
-- Magic Button textures |
self:removeMagicBtnTex("MRTSkillViewCraftersButton") |
self:removeMagicBtnTex("MRTSkillCreateButton") |
self:removeMagicBtnTex("MRTSkillCreateAllButton") |
self:skinEditBox{obj=MRTSkillInputBox, x=-6} |
self:addSkinFrame{obj=MRTSkillFrame, kfs=true, ri=true, y1=2, x2=1, y2=-2} |
-- Magic Button textures |
self:removeMagicBtnTex(MRTSkillViewCraftersButton) |
self:removeMagicBtnTex(MRTSkillCreateButton) |
self:removeMagicBtnTex(MRTSkillCreateAllButton) |
-->>-- New Category frame |
self:skinEditBox{obj=MRTNewCategoryFrameCategoryName, x=-3} |
if not Skinner:isAddonEnabled("Auc-Advanced") then return end |
local aName, aObj = ... |
if not aObj:isAddonEnabled("Auc-Advanced") then return end |
function Skinner:AucAdvanced() |
function aObj:AucAdvanced() |
if not self.db.profile.AuctionUI then return end |
-- check version, if not a specified release or beta then don't skin it |
-- check version, if not a specified release or beta then default the version to 9 |
local vTab = { |
["5.8"] = 1, |
["5.9"] = 2, |
["5.10"] = 3, |
} |
local aVer = GetAddOnMetadata("Auc-Advanced", "Version") |
local ver = vTab[aVer:match("(%d.%d+).%d+")] or 0 |
local ver = vTab[aVer:match("(%d.%d+).%d+")] or 9 |
-- progress bars |
local lib = ver == 1 and AucAdvanced.Scan or AucAdvanced.API |
for i = 1, #gui.tabs do |
local frame = gui.tabs[i].content |
if frame.money and frame.money.isMoneyFrame then |
Skinner:skinMoneyFrame{obj=frame.money, noWidth=true, moveSEB=true} |
aObj:skinMoneyFrame{obj=frame.money, noWidth=true, moveSEB=true} |
end |
end |
self:Unhook(mod, "MakeGuiConfig") |
if lib then |
local function skinSnatch() |
local self = Skinner |
lib.Private.frame.slot:SetTexture(self.esTex) |
self:skinEditBox{obj=lib.Private.frame.pctBox, regs={9}} |
self:skinButton{obj=lib.Private.frame.additem, as=true} -- just skin it otherwise text is hidden |
self:skinButton{obj=lib.Private.frame.removeitem, as=true} -- just skin it otherwise text is hidden |
self:skinButton{obj=lib.Private.frame.resetList, as=true} -- just skin it otherwise text is hidden |
lib.Private.frame.slot:SetTexture(aObj.esTex) |
aObj:skinEditBox{obj=lib.Private.frame.pctBox, regs={9}} |
aObj:skinButton{obj=lib.Private.frame.additem, as=true} -- just skin it otherwise text is hidden |
aObj:skinButton{obj=lib.Private.frame.removeitem, as=true} -- just skin it otherwise text is hidden |
aObj:skinButton{obj=lib.Private.frame.resetList, as=true} -- just skin it otherwise text is hidden |
end |
if lib.MakeGuiConfig then |
-- Appraiser |
local mod = AucAdvanced.Modules.Util.Appraiser |
if mod then |
function skinFrames() |
local function skinFrames() |
local self = Skinner |
local frame = mod.Private.frame |
self:skinButton{obj=frame.toggleManifest} |
self:skinButton{obj=frame.config} |
self:moveObject{obj=frame.itembox.showAuctions, x=-10} |
self:addSkinFrame{obj=frame.itembox} |
self:skinSlider(frame.scroller) |
self:skinButton{obj=frame.switchToStack, y1=1} |
self:skinButton{obj=frame.switchToStack2, y1=1} |
self:addSkinFrame{obj=frame.salebox} |
frame.salebox.slot:SetTexture(self.esTex) |
self:skinEditBox{obj=frame.salebox.stackentry, regs={9}, noWidth=true} |
self:adjWidth{obj=frame.salebox.stackentry, adj=14} |
self:skinEditBox{obj=frame.salebox.numberentry, regs={9}, noWidth=true} |
self:adjWidth{obj=frame.salebox.numberentry, adj=14} |
self:skinDropDown{obj=frame.salebox.model} |
self:skinMoneyFrame{obj=frame.salebox.bid, noWidth=true, moveSEB=true, moveGEB=true} |
self:skinMoneyFrame{obj=frame.salebox.buy, noWidth=true, moveSEB=true, moveGEB=true} |
self:skinMoneyFrame{obj=frame.salebox.bid.stack, noWidth=true, moveSEB=true, moveGEB=true} |
self:skinMoneyFrame{obj=frame.salebox.buy.stack, noWidth=true, moveSEB=true, moveGEB=true} |
self:skinButton{obj=frame.manifest.close, cb=true, x1=3, y1=-3, x2=-3, y2=3} |
self:addSkinFrame{obj=frame.manifest, bg=true} -- a.k.a. Sidebar, put behind AH frame |
self:skinButton{obj=frame.imageview.purchase.buy, x1=-1} |
self:skinButton{obj=frame.imageview.purchase.bid, x1=-1} |
aObj:skinButton{obj=frame.toggleManifest} |
aObj:skinButton{obj=frame.config} |
aObj:moveObject{obj=frame.itembox.showAuctions, x=-10} |
aObj:addSkinFrame{obj=frame.itembox} |
aObj:skinSlider(frame.scroller) |
aObj:skinButton{obj=frame.switchToStack, y1=1} |
aObj:skinButton{obj=frame.switchToStack2, y1=1} |
aObj:addSkinFrame{obj=frame.salebox} |
frame.salebox.slot:SetTexture(aObj.esTex) |
aObj:skinEditBox{obj=frame.salebox.stackentry, regs={9}, noWidth=true} |
aObj:adjWidth{obj=frame.salebox.stackentry, adj=14} |
aObj:skinEditBox{obj=frame.salebox.numberentry, regs={9}, noWidth=true} |
aObj:adjWidth{obj=frame.salebox.numberentry, adj=14} |
aObj:skinDropDown{obj=frame.salebox.model} |
aObj:skinMoneyFrame{obj=frame.salebox.bid, noWidth=true, moveSEB=true, moveGEB=true} |
aObj:skinMoneyFrame{obj=frame.salebox.buy, noWidth=true, moveSEB=true, moveGEB=true} |
aObj:skinMoneyFrame{obj=frame.salebox.bid.stack, noWidth=true, moveSEB=true, moveGEB=true} |
aObj:skinMoneyFrame{obj=frame.salebox.buy.stack, noWidth=true, moveSEB=true, moveGEB=true} |
aObj:skinButton{obj=frame.manifest.close, cb=true, x1=3, y1=-3, x2=-3, y2=3} |
aObj:addSkinFrame{obj=frame.manifest, bg=true} -- a.k.a. Sidebar, put behind AH frame |
aObj:skinButton{obj=frame.imageview.purchase.buy, x1=-1} |
aObj:skinButton{obj=frame.imageview.purchase.bid, x1=-1} |
frame.imageview.purchase:SetBackdrop(nil) |
frame.imageview.purchase:SetBackdropColor(0, 0, 0, 0) |
self:skinButton{obj=frame.go} |
self:skinButton{obj=frame.gobatch} |
self:skinButton{obj=frame.refresh} |
self:skinButton{obj=frame.cancel, x1=-2, y1=1, x2=2} |
aObj:skinButton{obj=frame.go} |
aObj:skinButton{obj=frame.gobatch} |
aObj:skinButton{obj=frame.refresh} |
aObj:skinButton{obj=frame.cancel, x1=-2, y1=1, x2=2} |
end |
if mod.Private.CreateFrames then |
if not Skinner:isAddonEnabled("Quartz") then return end |
local aName, aObj = ... |
if not aObj:isAddonEnabled("Quartz") then return end |
function Skinner:Quartz() -- Quartz3 |
function aObj:Quartz() -- Quartz3 |
local Quartz3 = LibStub("AceAddon-3.0"):GetAddon("Quartz3", true) |
if not Quartz3 then return end |
for _, child in pairs{UIParent:GetChildren()} do |
-- if this is a Quartz Mirror/Buff Bar then skin it |
if child:IsObjectType('StatusBar') |
if child:IsObjectType('Frame') |
and child.__texture |
then |
if not Skinner.skinned[child] then |
if not aObj.skinned[child] then |
child:SetBackdrop(nil) |
child.__texture:SetTexture(self.sbTexture) |
child.__texture:SetTexture(aObj.sbTexture) |
end |
end |
end |
self:SecureHook(mod, "ApplySettings", function() |
skinSBs() |
end) |
skinSBs() |
end |
-->>-- Buff Status Bars |
mod = Quartz3:GetModule("Buff", true) |
self:SecureHook(mod, "ApplySettings", function() |
skinSBs() |
end) |
skinSBs() |
end |
-- skin any existing StatusBars |
skinSBs() |
end |
local aName, aObj = ... |
if not aObj:isAddonEnabled("Tukui") then return end |
-- check for ElvUI's Tukui DB converter |
if GetAddOnMetadata("Tukui", "Author") == "Elv22" then |
aObj.Tukui = function() end |
return |
end |
function aObj:Tukui() |
-- The following code handles the Initial setup of Skinner when the TukUI is loaded |
function aObj:TukuiInit() |
-- handle version 12 & 13 |
local ver = tonumber(GetAddOnMetadata("Tukui", "Version"):sub(1, 2)) |
local mediapath = [[Interface\AddOns\Tukui\media\textures\]] |
local borderr, borderg, borderb = 0.6, 0.6, 0.6 |
local backdropr, backdropg, backdropb = 0.1, 0.1, 0.1 |
if ver == 13 then |
mediapath = [[Interface\AddOns\Tukui\medias\textures\]] |
if IsAddOnLoaded("Tukui") then |
local T, C, L = unpack(Tukui) |
borderr, borderg, borderb = unpack(C["media"].bordercolor) |
backdropr, backdropg, backdropb = unpack(C["media"].backdropcolor) |
end |
end |
self:RawHook(self, "OnInitialize", function(this) |
-- Do these before we run the function |
self.Defaults = nil -- only need to run this once |
-- Register Textures |
self.LSM:Register("background", "Tukui Background", [[Interface\AddOns\Tukui\medias\textures\blank]]) |
self.LSM:Register("border", "Tukui Border", [[Interface\AddOns\Tukui\medias\textures\blank]]) |
self.LSM:Register("statusbar", "Tukui StatusBar", [[Interface\AddOns\Tukui\medias\textures\normTex]]) |
self.LSM:Register("background", "Tukui Background", mediapath.."blank") |
self.LSM:Register("border", "Tukui Border", mediapath.."blank") |
self.LSM:Register("statusbar", "Tukui StatusBar", mediapath.."normTex") |
-- create and use a new db profile called Tukui |
local dbProfile = self.db:GetCurrentProfile() |
self.db:CopyProfile(dbProfile) -- use settings from previous profile |
-- change settings |
self.db.profile.TooltipBorder = {r = 0.6, g = 0.6, b = 0.6, a = 1} |
self.db.profile.BackdropBorder = {r = 0.6, g = 0.6, b = 0.6, a = 1} |
self.db.profile.Backdrop = {r = 0.1, g = 0.1, b = 0.1, a = 1} |
self.db.profile.TooltipBorder = {r = borderr, g = borderg, b = borderb, a = 1} |
self.db.profile.BackdropBorder = {r = borderr, g = borderg, b = borderb, a = 1} |
self.db.profile.Backdrop = {r = backdropr, g = backdropg, b = backdropb, a = 1} |
self.db.profile.BdDefault = false |
self.db.profile.BdFile = "None" |
self.db.profile.BdEdgeFile = "None" |
-- Load support for TukUI |
local success, err = aObj:checkAndRun("TukuiInit", true) |
if not success then |
print("Error running", "Tukui", err) |
print("Error running", "TukuiInit", err) |
end |
function aObj:Archy() |
Archy.db.profile.artifact.fragmentBarTexture = self.db.profile.StatusBar.texture |
local function skinFragment(obj) |
obj.fragmentBar.barBackground:Hide() |
obj.fragmentBar.barTexture.SetTexCoord = function() end |
self:glazeStatusBar(obj.fragmentBar, 0, nil) |
-- don't skin button in "Compact" form |
if not Archy.db.profile.artifact.style == "Compact" then self:skinButton{obj=v.solveButton} end |
if not Archy.db.profile.artifact.style == "Compact" then aObj:skinButton{obj=v.solveButton} end |
end |
-->>-- DigSite Frame |
end) |
end |
self:addSkinFrame{obj=ArchyDigSiteFrame, nb=true} |
-- stop frame backdrop from being changed |
ArchyDigSiteFrame.SetBackdrop = function() end |
ArchyDigSiteFrame.SetBackdropColor = function() end |
ArchyDigSiteFrame.SetBackdropBorderColor = function() end |
-- DistanceIndicator Frame |
self:skinButton{obj=ArchyDistanceIndicatorFrameSurveyButton} |
skinFragment(t[k]) |
end) |
self:addSkinFrame{obj=ArchyArtifactFrame, nb=true} |
-- stop frame backdrop from being changed |
ArchyArtifactFrame.SetBackdrop = function() end |
ArchyArtifactFrame.SetBackdropColor = function() end |
ArchyArtifactFrame.SetBackdropBorderColor = function() end |
if self.modBtns then |
self:SecureHook(Archy, "RefreshRacesDisplay", function(this) |
for _, v in pairs(ArchyArtifactFrame.children) do |
FlightMapEnhancedTaxiChoice:DisableDrawLayer("BACKGROUND") |
FlightMapEnhancedTaxiChoice:DisableDrawLayer("BORDER") |
self:addSkinFrame{obj=FlightMapEnhancedTaxiChoice, kfs=true, ofs=2} |
-- remove textures from the destination buttons |
self:SecureHookScript(FlightMapEnhancedTaxiChoice, "OnShow", function(this) |
for i = 1, #FlightMapEnhancedTaxiChoiceContainer.buttons do |
local btn = FlightMapEnhancedTaxiChoiceContainer.buttons[i] |
self:keepRegions(btn, {2, 6, 7, 8}) -- N.B. region 2 & 7 are the text, 6 is the icon, 8 is the highlight |
end |
self:Unhook(FlightMapEnhancedTaxiChoice, "OnShow") |
end) |
-- Flight Timer frame |
if FlightMapEnhanced_Config |
and FlightMapEnhanced_Config.vconf |
and FlightMapEnhanced_Config.vconf.modules |
and FlightMapEnhanced_Config.vconf.modules["ft"] == 1 then |
local bd |
-- find the frame and skin it |
for _, child in pairs{UIParent:GetChildren()} do |
if child:GetName() == nil then |
if child.GetBackdrop then |
bd = child:GetBackdrop() |
if bd and bd.bgFile and bd.bgFile:find("ftimes_frame") then |
self:addSkinFrame{obj=child, kfs=true, y1=3, y2=12} |
break |
end |
end |
end |
end |
end |
end |
if not Skinner:isAddonEnabled("Recount") then return end |
local aName, aObj = ... |
if not aObj:isAddonEnabled("Recount") then return end |
function Skinner:Recount() |
function aObj:Recount() |
local x1, y1, x2, y2 = -4, -10, 4, -4 |
-- Hook this to get window objects and skin them |
if window:GetName() == "Recount_ReportWindow" then -- report window |
self:skinEditBox{obj=window.Whisper, regs={9}, noHeight=true} |
window.Whisper:SetHeight(window.Whisper:GetHeight() + 6) |
self:skinSlider{obj=window.slider} |
x1, y1, x2, y2 = -2, -8, 2, -2 |
elseif window:GetName() == "Recount_ConfigWindow" then -- config window(s) |
self:skinSlider{obj=Recount_ConfigWindow_Scaling_Slider} |
self:skinSlider{obj=Recount_ConfigWindow_RowHeight_Slider} |
self:skinSlider{obj=Recount_ConfigWindow_RowSpacing_Slider} |
x1, y1, x2, y2 = -4, -8, 5, -2 |
end |
self:addSkinFrame{obj=window, kfs=true, x1=x1, y1=y1, x2=x2, y2=y2} |
-->>-- Main Window |
self:addSkinFrame{obj=Recount.MainWindow, kfs=true, x1=-2, y1=-8, x2=2} |
-->>-- Detail Window |
self:addSkinFrame{obj=Recount_DetailWindow, kfs=true, x1=-2, y1=-8, x2=3, y2=-2} |
self:addSkinFrame{obj=Recount.DetailWindow, kfs=true, x1=-2, y1=-8, x2=3, y2=-2} |
-->>-- Graph Window |
self:addSkinFrame{obj=Recount_GraphWindow, kfs=true, hdr=true, x1=-2, y1=-8, x2=2, y2=-2} |
self:addSkinFrame{obj=Recount.GraphWindow, kfs=true, hdr=true, x1=-2, y1=-8, x2=2, y2=-2} |
-->>-- skin Realtime frames already created |
for _, child in pairs{UIParent:GetChildren()} do |