View Single Post
11-25-14, 06:52 PM   #5
Eternal_Lynx
An Aku'mai Servant
 
Eternal_Lynx's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2012
Posts: 31
API CreateFrame:
Lua Code:
  1. newFrame = CreateFrame("frameType"[, "frameName"[, parentFrame[, "inheritsFrame"]]]);

The second argument is frame name not frame parent.
And if a visible frame is not a child of UIParent, it won't change it's visibility with UIParent(Alt+Z).

try
Lua Code:
  1. local bg = CreateFrame("Frame", nil, UIParent);

or
Lua Code:
  1. local bg = CreateFrame('Frame', nil, UIParent)

whatever...
__________________
Moo'. Are you happy now?

Last edited by Eternal_Lynx : 11-26-14 at 06:43 AM. Reason: Really? Reason?
  Reply With Quote