-
-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Frame Templates #15
Comments
I have no idea how this would be implemented in EmmyLua or if it's even possible. Not to mention it can accept multiple, comma-delimited templates. But it's indeed an inconvenience templates are not supported at all by this extension. |
Thanks for taking a look! I don't see this as a high priority feature or anything, I was mostly just wondering if I missed something obvious. You're right, it seems like EmmyLua can't pick the correct overload return value based on string literals: So I guess the only option would be to export the templates as types that can be used manually with |
I am currently working on a parser parse all XML files from the default UI. Currently it will:
All thats left really is generating the LUA files. |
I can confirm this works, thank you for finding this solution. There is indeed still the problem of comma-separated templates and having to parse XML to convert templates to EmmyLua but it's something 😃 |
I am unsure what you mean by comma-separated templates. |
For example CreateFrame("Frame", nil, nil, "VerticalLayoutFrame, TooltipBackdropTemplate") But those don't appear to be used in FrameXML and I suppose for only very few addon authors. So it's a moot point, never mind 😅 |
I don't really have a preferred format but it's neat that you first parsed the templates to Lua before converting it to EmmyLua. I'd like to have the code (Lua/Python?) for parsing the XML otherwise I'll have to write my own one. But this is looking nice 👍 |
Thanks for this amazing extension, it makes addon development so much easier.
Is there some way to handle the typing of Frame templates such as BackdropTemplate that I'm missing, or is that currently not supported?
The text was updated successfully, but these errors were encountered: