Lua Code:
local BottomPane = CreateFrame("Frame", "BottomPane", nil, UIParent) -- creates a frame named BottomPane. Note, we also set a variable called bottompane.
BottomPane:SetFrameStrata("LOW");
ScreenW = GetScreenWidth();
ScreenH = GetScreenHeight();
BottomPane:SetWidth(ScreenW);
local BPTex = BottomPane:CreateTexture(nil, "BACKGROUND");
BPTex:SetTexture("Interface\\Addons\\PawsUI\\Art\\splash.tga");
BPTex:SetAllPoints(BottomPane);
BottomPane.texture = BPTex
BottomPane:SetPoint("BOTTOM",0,0)
BottomPane:Show();
SLASH_PANE1 = "/pane"
SlashCmdList.PANE = function(arg)
if not BottomPane:IsShown() then
BottomPane:Show()
else BottomPane:Hide()
end
end
Ok fixed the lua errors. Nothing happens but I think it is the tga.