Thread Tools Display Modes
Prev Previous Post   Next Post Next
03/17/18, 03:40 PM   #1
Phuein
 
Phuein's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2018
Posts: 132
[SOLVED] Remove /slash command from autocomplete?

I added a /slash command to my addon, and then added a menu toggle to turn it on/off. When off, it's an invalid command. But the autocomplete menu still shows it! I don't want to request a UI restart. How can I remove it from autocomplete?

Code:
SLASH_COMMANDS["/myspecialcommand"] = nil
tl;dr Removes the command, but not the autocomplete.

I searched for a while but couldn't find an answer. References:
https://wiki.esoui.com/API#libraries.5Cutility
(Scroll down a bit for autocomplete section)
http://esoapi.uesp.net/100018/src/li...plete.lua.html
(Saw the Add function, but not a Remove function. Tried it, didn't work.)

Last edited by Phuein : 03/20/18 at 09:33 AM.
  Reply With Quote
 

ESOUI » Developer Discussions » Lua/XML Help » Remove /slash command from autocomplete?


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