Description:
Enables add-ons to setup custom autocomplete suggestions for any editbox. This can be used as an Ace GUI Widget or on the base game's editbox objects.
You can control the list of values from which autocomplete suggestions are pulled and the maximum number of suggestions to present at a time.
Examples:
With Ace GUI:
local valueList = {"Suggestion 1", "Suggestion 2","Another Suggestion","One More Suggestion"}; local maxButtonCount = 20; local text = AceGUI:Create('EditBox-AutoComplete'); text:SetValueList(valueList); text:SetButtonCount(maxButtonCount);
Without Ace GUI:
local editbox = ...; local valueList = {"Suggestion 1", "Suggestion 2","Another Suggestion","One More Suggestion"}; local maxButtonCount = 20; SetupAutoComplete( editbox, valueList, maxButtonCount );
Installation:
To setup this library for use in your addons:
- Copy the files listed below into your add-on's directory
- Lib-EditBox-AutoComplete.lua
- Lib-EditBox-AutoComplete.xml
- Add the xml file to your toc. No need to include the lua in your toc.
Used In Add-ons:
'What's Next?': https://www.curseforge.com/wow/addons/whatsnext
- Used to aid players in selecting an ability from the set of all abilities in the game.
My Other Add-ons
- Keystone Roll-Call - Accumulates, displays, and reports all known keystones for the week, automatically compiled from guild, party, and raid members.
- What's Next? - Analyses battlefield conditions and suggests abilities, items, or macros to use given a set of conditions from the user.
- Sudoku - An in-game Sudoku puzzle interface.
- Library EditBox AutoComplete - Add custom autocomplete suggestions to any editbox.