Quantcast
How to specify which module a matching interface name call goes to - WoWInterface
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
10-27-20, 12:51 AM   #1
Zimzarina
A Murloc Raider
Join Date: Aug 2019
Posts: 4
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))
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » How to specify which module a matching interface name call goes to

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off