View Single Post
08-11-18, 11:21 PM   #5
candrid
Premium Member
 
candrid's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Aug 2008
Posts: 61
Lua Code:
  1. local BottomPane = CreateFrame("Frame", "BottomPane", nil, UIParent) -- creates a frame named BottomPane. Note, we also set a variable called bottompane.
  2. BottomPane:SetFrameStrata("LOW");
  3. ScreenW = GetScreenWidth();
  4. ScreenH = GetScreenHeight();
  5. BottomPane:SetWidth(ScreenW);
  6.  
  7. local BPTex = BottomPane:CreateTexture(nil, "BACKGROUND");
  8. BPTex:SetTexture("Interface\\Addons\\PawsUI\\Art\\splash.tga");
  9. BPTex:SetAllPoints(BottomPane);
  10. BottomPane.texture = BPTex
  11. BottomPane:SetPoint("BOTTOM",0,0)
  12. BottomPane:Show();
  13.  
  14. SLASH_PANE1 = "/pane"
  15. SlashCmdList.PANE = function(arg)
  16.     if not BottomPane:IsShown() then
  17.       BottomPane:Show()
  18.     else BottomPane:Hide()
  19.     end
  20. end


Ok fixed the lua errors. Nothing happens but I think it is the tga.

Last edited by candrid : 08-11-18 at 11:59 PM.
  Reply With Quote