Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
muffz opened this issue Jul 21, 2016 · 2 comments
Open

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

muffz opened this issue Jul 21, 2016 · 2 comments

Comments

@muffz
Copy link

muffz commented Jul 21, 2016

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
Copy link
Author

muffz commented Jul 21, 2016

same thing hold the BuffFrame on it's position

BuffFrame:SetParent(f)
BuffFrame:ClearAllPoints()
BuffFrame:SetPoint("TOPRIGHT")
BuffFrame.SetPoint = F.dummy

@muffz
Copy link
Author

muffz commented Jul 24, 2016

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant