![]() You can export the Blizzard UI code to peruse: they will not be available in-game until you completely exit the game and re-start. ![]() When you add new (or rename) files (code, art, sound etc. Local f = CreateFrame("Button", "MySpecialButton", UIParent, "UIPanelButtonTemplate")Īll frame names (including virtuals) are global so make sure yours are unique.įrames don’t have a size, are not placed on-screen or display anything by default (inherited templates can supply these defaults or it can be done in code). To inherit it in XML you add inherits="UIPanelButtonTemplate" attribute to your XML frame declaration or use it in the 4th parameter of CreateFrame the game has a default virtual template for the standard red button. XML templates (with the virtual attribute) are inherited using their name eg. ![]() ![]() toc file has to be the same name as the folder it is in (the folder directly under \Interface\Addons). is probably the most consistent source of addon information available but the subject is large and ever evolving and the approaches to creating them is so varied there is no “one approach fits all” quick list.Ī few starter points, the. toc is essentially a catalogue card that lists some information about the addon and has a list of files that contain the code (lua and xml) that make up the addon. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |