skin: add static popup editbox skins

This commit is contained in:
shagu
2018-08-23 17:13:33 +02:00
parent 3f536fbd21
commit b36ffe6100
+13
View File
@@ -62,6 +62,7 @@ pfUI:RegisterModule("skin", function ()
"StaticPopup2Button1",
"StaticPopup2Button2",
}
local boxes = {
"StaticPopup1",
"StaticPopup2",
@@ -72,6 +73,11 @@ pfUI:RegisterModule("skin", function ()
"DropDownList2Backdrop",
}
local editboxes = {
"StaticPopup1EditBox",
"StaticPopup1WideEditBox",
}
GameMenuFrameHeader:SetTexture(nil)
GameMenuFrame:SetHeight(GameMenuFrame:GetHeight()+2)
GameMenuFrame:SetWidth(GameMenuFrame:GetWidth()-30)
@@ -97,6 +103,13 @@ pfUI:RegisterModule("skin", function ()
CreateBackdrop(b, nil, true, .8)
end
for _, edit in pairs(editboxes) do
local b = getglobal(edit)
b:SetHeight(20)
StripTextures(b)
CreateBackdrop(b, nil, true, .8)
end
for i,v in ipairs({GameMenuFrame:GetRegions()}) do
if v.SetTextColor then
v:SetTextColor(1,1,1,1)