Skip to content

Commit

Permalink
fixing WA skins
Browse files Browse the repository at this point in the history
  • Loading branch information
blooblahguy committed Feb 2, 2019
1 parent 654aa9f commit ce5024c
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 16 deletions.
16 changes: 6 additions & 10 deletions core/config_defaults.lua
Original file line number Diff line number Diff line change
Expand Up @@ -859,17 +859,13 @@ shared:Register("border", "bdShadow", bdCore.media.shadow)
}}
bdCore.general[#bdCore.general+1] = {forcescale = {
type = "checkbox",
value = false,
value = true,
label = "Force UI scale for pixel perfect borders",
}}

----------------------------------------
-- skinning
----------------------------------------
bdCore.general[#bdCore.general+1] = {tab = {
type = "tab",
value = "Skinning"
}}
bdCore.general[#bdCore.general+1] = {skingmotd = {
type = "checkbox",
value = true,
Expand All @@ -880,11 +876,11 @@ shared:Register("border", "bdShadow", bdCore.media.shadow)
value = false,
label = "Skin Weak Auras to bd Style",
}}
bdCore.general[#bdCore.general+1] = {fancymenu = {
type = "checkbox",
value = false,
label = "Replace Game Menu with Fancy Menu",
}}
-- bdCore.general[#bdCore.general+1] = {fancymenu = {
-- type = "checkbox",
-- value = false,
-- label = "Replace Game Menu with Fancy Menu",
-- }}

----------------------------------------
-- viewports
Expand Down
2 changes: 2 additions & 0 deletions core/media_functions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -159,13 +159,15 @@ function bdCore:setBackdrop(frame,resize)
frame.background:SetAllPoints(frame)
frame.background:SetVertexColor(unpack(bdCore.media.backdrop))
frame.background.protected = true
frame.background.SetFrameLevel = bdCore.noop

frame.border = frame:CreateTexture(nil, "BACKGROUND", nil, -8)
frame.border:SetTexture(bdCore.media.flat)
frame.border:SetPoint("TOPLEFT", frame, "TOPLEFT", -2, 2)
frame.border:SetPoint("BOTTOMRIGHT", frame, "BOTTOMRIGHT", 2, -2)
-- frame.border:SetScale(scale)
frame.border:SetVertexColor(unpack(bdCore.media.border))
frame.border.SetFrameLevel = bdCore.noop
frame.border.protected = true

if (resize ~= false) then
Expand Down
1 change: 1 addition & 0 deletions core/moving_functions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ function bdCore:makeMovable(frame, resize, rename)

Mover.controls = CreateFrame("frame", nil, Mover)
local cont = Mover.controls
cont:SetFrameStrata("TOOLTIP")
cont:SetSize(150, 25)
cont:Hide()

Expand Down
16 changes: 10 additions & 6 deletions skinning/weakauras_skin.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,19 @@ wa_skin:SetScript("OnEvent", function(self, event,addon)
frame:SetBackdropBorderColor(0,0,0,1)
end--]]

-- print(frame)


if frame.icon then
frame.icon:SetTexCoord(0.1, 0.9, 0.1, 0.9)
frame.icon.SetTexCoord = function() return end
if frame.border and not frame.bar then
frame.border:Hide()
end

end

bdCore:setBackdrop(frame)
--[[
if frame.bar then
if (frame.bar.fg:GetTexture()) then
Expand Down Expand Up @@ -66,13 +71,12 @@ wa_skin:SetScript("OnEvent", function(self, event,addon)
end
end

if (WeakAuras) then
if (WeakAurasFrame) then
if (not c.persistent.bdAddons.skinwas) then return end
for weakAura, v in pairs(WeakAuras.regions) do
if (c.persistent.skinwas) then
if (WeakAuras.regions[weakAura].regionType == "icon" or WeakAuras.regions[weakAura].regionType == "aurabar") then
--print(WeakAuras.regions[weakAura].region)
Skin_WeakAuras(WeakAuras.regions[weakAura].region)
end
if (WeakAuras.regions[weakAura].regionType == "icon" or WeakAuras.regions[weakAura].regionType == "aurabar") then
--print(WeakAuras.regions[weakAura].region)
Skin_WeakAuras(WeakAuras.regions[weakAura].region)
end
end
end
Expand Down

0 comments on commit ce5024c

Please sign in to comment.