View Single Post
08-11-18, 11:30 PM   #6
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,877
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
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.

Last edited by Fizzlemizz : 08-11-18 at 11:34 PM.
  Reply With Quote