Haleth / FreeUI

A World of Warcraft user interface
http://www.wowinterface.com/downloads/info17892-FreeUI.html
54 stars 28 forks source link

The border of items in the bag/bank change their texture on moving #109

Open muffz opened 8 years ago

muffz commented 8 years ago

adding border.SetTexture = F.dummy seems to fix it

local RestyleButton = function(bu)
    local buName = bu:GetName()
    local border = bu.IconBorder
    local searchOverlay = bu.searchOverlay
    local newItemTexture = bu.NewItemTexture

    bu:SetSize(C.bags.size, C.bags.size)
    border:SetTexture(C.media.backdrop)
    border.SetTexture = F.dummy

    if bu.restyled then return end
muffz commented 8 years ago

same thing hold the BuffFrame on it's position

BuffFrame:SetParent(f)
BuffFrame:ClearAllPoints()
BuffFrame:SetPoint("TOPRIGHT")
BuffFrame.SetPoint = F.dummy
muffz commented 8 years ago

i realized, that this code should not work anymore if you add BuffFrame.SetPoint = F.dummy

local function reposition()
    BuffFrame:ClearAllPoints()
    BuffFrame:SetPoint("TOPRIGHT")
end

TicketStatusFrame:HookScript("OnShow", reposition)
TicketStatusFrame:HookScript("OnHide", reposition)