The frame didn't have any height and a few other errors
Code:
local BottomPane = CreateFrame("Frame", "BottomPane", nil, UIParent) -- creates a frame named BottomPane. Note, we also set a variable called bottompane.
ScreenW = GetScreenWidth();
ScreenH = GetScreenHeight();
BottomPane:SetWidth(ScreenW);
BottomPane:SetHeight(50)
local BPTex = BottomPane:CreateTexture(nil, "BACKGROUND");
BPTex:SetTexture("Interface/BUTTONS/WHITE8X8");
BPTex:SetAllPoints(BottomPane);
BottomPane.texture = BPTex
BottomPane:SetPoint("BOTTOM",0,0)
SLASH_PANE1 = "/pane"
SlashCmdList.PANE = function(arg)
BottomPane:SetShown(not BottomPane:IsShown())
end
OVERLAY is not a
Strata