You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that child frames or fields created by default when some Frame Types are created are not included in the type defs.
Example would be:
localf=CreateFrame("CheckButton", nil, UIParent)
If I reference f.text I am told by the extension in VSCode that it is an undefined field. However, .text is created as a FontString at the root of f and is the text that is attached to the button. The only way I have found around this is to define a custom class, like shown below, that extends the default class to include the field.
Do you mean the CheckButton frame type has a text field by default? But /dump CreateFrame("CheckButton").text returns nil for me. Or are you using some kind of inherited template?
Note that EmmyLua class inheritance is currently kinda broken https://github.com/sumneko/lua-language-server/issues/660
edit: it still pinged them huh :(
You are right, my apologies for opening a duplicate. I will look at 15 and see what can possibly be done. I am familiar with typescript but I think the limitations of EmmyLua may not easily allow for it :(
I noticed that child frames or fields created by default when some Frame Types are created are not included in the type defs.
Example would be:
If I reference
f.text
I am told by the extension in VSCode that it is an undefined field. However,.text
is created as a FontString at the root off
and is the text that is attached to the button. The only way I have found around this is to define a custom class, like shown below, that extends the default class to include the field.The text was updated successfully, but these errors were encountered: