Lore archive · Warcraft Wiki, 2023 dump
API CreateFrame
Last wiki revision 2023-08-21
Creates a object. frame = CreateFrame(frameType [, name, parent, template, id])
- frameType: - Type of the frame; e.g. "Frame" or "Button".
- name: - Globally accessible name to assign to the frame, or for an anonymous frame.
- parent: - Parent object to assign to the frame, or to be parentless; cannot be a string. Can also be set with
- template: - Comma-delimited list of virtual XML templates to inherit; see also a complete list of FrameXML templates.
- id: - ID to assign to the frame. Can also be set with
- frame: - The created Frame object or one of the other frame type objects.
Possible frame types are available from the XML schema :
- Fires the frame's script, if it has one from an inherited template.
- Frames cannot be deleted or garbage collected, so it may be preferable to them.
- Intrinsic frames may also be used.
- Shows a texture which is also parented to UIParent so it will be have the same UI scale and hidden when toggled with
- Creates a button which inherits textures and widget scripts from UIPanelButtonTemplate
- Displays an animated model for a DisplayID.
- Registers for events being fired, like chat messages and when you start/stop moving.
Source
https://warcraft.wiki.gg/wiki/API_CreateFrame · retrieved 2023-11-13 · CC BY-SA 4.0
Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.
This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.