How to specify which module a matching interface name call goes to
Hi, in an addon I am trying to call a built in blizzard code function specifically AutoComplete_Update. However calling it directly with simply AutoComplete_Update(etc does not get the correct one. There are two such matching functions in the blizzard code (details below). How do I force lua to call the specific one I want (The in AutoComplete.lua is the one I wish to use.)? Thanks!
_retail_\BlizzardInterfaceCode\Interface\FrameXML\AutoComplete.lua Line 144: function AutoComplete_Update(parent, text, cursorPosition) vs _retail_\BlizzardInterfaceCode\Interface\FrameXML\ChatFrame.lua Line 4893: AutoComplete_Update(self, target, self:GetUTF8CursorPosition() - strlenutf8(command) - 1); Line 4922: AutoComplete_Update(self, target, utf8Position - strlenutf8(command) - strlen(whitespace)) |
The first you listed is the function definition while the other two are calls to it.
That aside, without being able to see your code, it's impossible to debug it. |
There is only one function declaration for AutoComplete_Update and that is in AutoComplete_Update.lua. All other mentions of AutoComplete_Update are just calling the function from AutoComplete_Update.lua.
|
Thanks! I should have noticed that.
|
All times are GMT -6. The time now is 03:02 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI