WoW:API CreateFrame: Difference between revisions

no edit summary
No edit summary
Line 10: Line 10:
:;frameType : String - Type of the frame to be created (XML tag name): "Frame", "Button", etc.
:;frameType : String - Type of the frame to be created (XML tag name): "Frame", "Button", etc.
:;frameName : String - Name of the newly created frame. If nil, no frame name is assigned. The function will also set a global variable of this name to point to newly created frame.
:;frameName : String - Name of the newly created frame. If nil, no frame name is assigned. The function will also set a global variable of this name to point to newly created frame.
:;parentFrame : Frame - The frame object that will be used as the created Frame's parent (cannot be a string!) If nil, UIParent is used.
:;parentFrame : Frame - The frame object that will be used as the created Frame's parent (cannot be a string!) Does not default to UIParent if given nil.
:;inheritsFrame : String - a comma-delimited list of names of virtual frames to inherit from (the same as in XML). If nil, no frames will be inherited. These frames cannot be frames that were created using this function, they must be created using XML with '''virtual="true"''' in the tag.
:;inheritsFrame : String - a comma-delimited list of names of virtual frames to inherit from (the same as in XML). If nil, no frames will be inherited. These frames cannot be frames that were created using this function, they must be created using XML with '''virtual="true"''' in the tag.


Anonymous user