BlzCreateFrameByType
- Parameters
typeName stringA string reference to the internal frame type. List of known valid type names that return a new frame:
"FRAME""BUTTON""SPRITE""MESSAGE""TEXT""BACKDROP""TEXTBUTTON""CHECKBOX""EDITBOX""SLIDER""SCROLL""SCROLLBAR""RADIOGROUP""LISTBOXITEM""LISTBOX""STATUSBAR""HIGHLIGHT""MODEL""DIALOG""MENU""POPUPMENU""CHATDISPLAY""TEXTAREA""LISTBUTTON""SIMPLETOP""SIMPLEFRAME""SIMPLEGRID""SIMPLEBUTTON""SIMPLECHECKBOX""SIMPLESTATUSBAR"
name stringowner framehandleinherits stringcreateContext integer- comment
Create & Define a new (Simple)Frame. Can use a root-(Simple)Frame-BluePrint with inherits, when that is done it needs to be a loaded BluePrint.
- bug
BACKDROP,TEXTAREA,SIMPLEMESSAGEFRAME,DIALOGandCONTROLframes can crash the game when created without their required FDF fields or other setup. Prefer a known-good template for these frame types.- note
Do not create frames during blocking map initialization. In multiplayer, create them for all players at elapsed game time
0.00or later.- patch
1.31.0.11889
- Source
- common.j (raise an issue to discuss on Github or submit a PR)
- return type
framehandle- Source code
native BlzCreateFrameByType takes string typeName, string name, framehandle owner, string inherits, integer createContext returns framehandle