api: handle escaping within the function

This commit is contained in:
shagu
2019-04-21 15:02:14 +02:00
parent f205aaa864
commit ca2cf71d04
3 changed files with 10 additions and 11 deletions
+2 -2
View File
@@ -129,8 +129,8 @@ pfUI:RegisterSkin("Mailbox", function ()
button.icon:SetTexture(tex)
end
end
SkinButton(GetNoNameObject(InboxFrame, "Button", nil, "UI--Panel--Button--Up", OPENMAIL))
local button = GetNoNameObject(SendMailFrame, "Button", nil, "UI--Panel--Button--Up", SEND_LABEL) -- this is SendMailMailButton
SkinButton(GetNoNameObject(InboxFrame, "Button", nil, "UI-Panel-Button-Up", OPENMAIL))
local button = GetNoNameObject(SendMailFrame, "Button", nil, "UI-Panel-Button-Up", SEND_LABEL) -- this is SendMailMailButton
SkinButton(button) -- hack! only it happened to do it
button:ClearAllPoints()
button:SetPoint("RIGHT", SendMailCancelButton, "LEFT", -2*bpad, 0)