Go to Page... |
Compatibility: | Harrowstorm (5.3.5) |
Updated: | 02/24/20 02:40 AM |
Created: | 10/19/16 09:56 AM |
Monthly downloads: | 8,479 |
Total downloads: | 447,878 |
Favorites: | 377 |
MD5: |
## DependsOn: LibSlashCommander
local LSC = LibSlashCommander LSC:Register("/mycommand", function(input) d(input) end, "Prints the specified text")
LSC:Register({"/mycommand", "/mycmd"}, function(input) d(input) end, "Prints the specified text")
local LSC = LibSlashCommander local command = LSC:Register() command:AddAlias("/mycommand") command:AddAlias("/mycmd") command:SetCallback(function(input) d(input) end) command:SetDescription("Prints the specified text")
local subCommand = command:RegisterSubCommand() subCommand:AddAlias("fail") subCommand:SetCallback(function() error("as expected") end) subCommand:SetDescription("Produces an error")
command:SetAutoComplete({"foo", "bar", "baz"})
local MyAutoCompleteProvider = LSC.AutoCompleteProvider:Subclass() function MyAutoCompleteProvider:New() return LSC.AutoCompleteProvider.New(self) end function MyAutoCompleteProvider:GetResultList() return { foo = "foo", bar = "bar", baz = "baz", } end command:SetAutoComplete(MyAutoCompleteProvider:New())
function MyAutoCompleteProvider:GetResultFromLabel(label) return "always the same" end
File Name |
Version |
Size |
Uploader |
Date |
1.0 r6 |
10kB |
sirinsidiator |
05/20/19 09:00 AM |
|
1.0 r5 |
10kB |
sirinsidiator |
06/17/18 02:23 PM |
|
1.0 r4 |
9kB |
10/19/16 09:56 AM |
![]() |
Comment Options |
![]() |
|
Forum posts: 0
File comments: 3
Uploads: 0
|
How to disable default chat changing?
|
![]() |
![]() |
Orion33 |
View Public Profile |
Send a private message to Orion33 |
Find More Posts by Orion33 |
Add Orion33 to Your Buddy List |
tawniey |
View Public Profile |
Send a private message to tawniey |
Find More Posts by tawniey |
Add tawniey to Your Buddy List |
![]() |
||
Re: Error message, (live, not pts)
|
||
![]() |
![]() |
sirinsidiator |
View Public Profile |
Send a private message to sirinsidiator |
Find More Posts by sirinsidiator |
Add sirinsidiator to Your Buddy List |
![]() |
|
Forum posts: 7
File comments: 13
Uploads: 0
|
Error message, (live, not pts)
Hello!
I'm receiving this error message when using this: user:/AddOns/LibSlashCommander/LibSlashCommander/LibSlashCommander.lua:164: attempt to index a nil value stack traceback: user:/AddOns/LibSlashCommander/LibSlashCommander/LibSlashCommander.lua:164: in function 'Load' user:/AddOns/LibSlashCommander/LibSlashCommander/LibSlashCommander.lua:194: in function 'Init' user:/AddOns/LibSlashCommander/LibSlashCommander/LibSlashCommander.lua:656: in function '(main chunk)' |caaaaaa<Locals> MAJOR = "LibSlashCommander", MINOR = 6, lib = [table:1]{COMMAND_TYPE_EMOTE = 3, COMMAND_TYPE_CHAT_SWITCH = 2, WARNING_ALREADY_HAS_ALIAS = "Warning: Overwriting existing ...", COMMAND_TYPE_ADDON = 4, ERROR_CIRCULAR_HIERARCHY = "Circular hierarchy detected", ERROR_AUTOCOMPLETE_NOT_ACTIVE = "Tried to get autocomplete resu...", ERROR_ALREADY_HAS_PARENT = "Command already has a parent", ERROR_INVALID_TYPE = "Invalid argument type", COMMAND_TYPE_BUILT_IN = 1, ERROR_CALLED_WITHOUT_CALLBACK = "Tried to call command while no...", ERROR_HAS_NO_PARENT = "Command does not have a parent...", ERROR_AUTOCOMPLETE_RESULT_NOT_VALID = "Autocomplete provider returned..."}, RunAutoCompletion = user:/AddOns/LibSlashCommander/LibSlashCommander/LibSlashCommander.lua:45, GetCurrentCommandAndToken = user:/AddOns/LibSlashCommander/LibSlashCommander/LibSlashCommander.lua:52, Sanitize = user:/AddOns/LibSlashCommander/LibSlashCommander/LibSlashCommander.lua:61, OnTextEntryChanged = user:/AddOns/LibSlashCommander/LibSlashCommander/LibSlashCommander.lua:65, OnSetChannel = user:/AddOns/LibSlashCommander/LibSlashCommander/LibSlashCommander.lua:79, StartCommandAtIndex = user:/AddOns/LibSlashCommander/LibSlashCommander/LibSlashCommander.lua:83, AutocompleteOnTextChanged = user:/AddOns/LibSlashCommander/LibSlashCommander/LibSlashCommander.lua:88, OnAutoCompleteEntrySelected = user:/AddOns/LibSlashCommander/LibSlashCommander/LibSlashCommander.lua:95, GetTopMatches = user:/AddOns/LibSlashCommander/LibSlashCommander/LibSlashCommander.lua:110, GetAutoCompletionResults = user:/AddOns/LibSlashCommander/LibSlashCommander/LibSlashCommander.lua:118, GetDescriptionText = user:/AddOns/LibSlashCommander/LibSlashCommander/LibSlashCommander.lua:129, Unload = user:/AddOns/LibSlashCommander/LibSlashCommander/LibSlashCommander.lua:150, Load = user:/AddOns/LibSlashCommander/LibSlashCommander/LibSlashCommander.lua:160 </Locals>|r |
![]() |
![]() |
tawniey |
View Public Profile |
Send a private message to tawniey |
Find More Posts by tawniey |
Add tawniey to Your Buddy List |
![]() |
|
|
error on PTS
![]() |
![]() |
![]() |
Marazota |
View Public Profile |
Send a private message to Marazota |
Find More Posts by Marazota |
Add Marazota to Your Buddy List |
![]() |
||
Re: LIbstub embedded version 4
|
||
![]() |
![]() |
sirinsidiator |
View Public Profile |
Send a private message to sirinsidiator |
Find More Posts by sirinsidiator |
Add sirinsidiator to Your Buddy List |
![]() |
|
LIbstub embedded version 4
The libstub library embedded with this lib package is version 4, should it be the last version 5 or no problem ?
|
|
![]() |
![]() |
Anceane |
View Public Profile |
Send a private message to Anceane |
Send email to Anceane |
Find More Posts by Anceane |
Add Anceane to Your Buddy List |
![]() |
|||
Re: Re: even with out of date addon checked, this library would not load
The game was seeing both librairies but marking those as not a compatible version. So i guessed that updating API would perhaps do the trick. And it did it |
|||
![]() |
![]() |
Anceane |
View Public Profile |
Send a private message to Anceane |
Send email to Anceane |
Find More Posts by Anceane |
Add Anceane to Your Buddy List |
![]() |
||
Re: even with out of date addon checked, this library would not load
|
||
![]() |
![]() |
sirinsidiator |
View Public Profile |
Send a private message to sirinsidiator |
Send email to sirinsidiator |
Find More Posts by sirinsidiator |
Add sirinsidiator to Your Buddy List |
![]() |
|
even with out of date addon checked, this library would not load
Even with the out of date checked, to be able to use the addon Beammeup, i had to force update api on this library and the one called
https://www.esoui.com/downloads/file...=2171#comments Do i need to do more ? |
|
![]() |
![]() |
Anceane |
View Public Profile |
Send a private message to Anceane |
Send email to Anceane |
Find More Posts by Anceane |
Add Anceane to Your Buddy List |
![]() |
||
|
||
![]() |
![]() |
sirinsidiator |
View Public Profile |
Send a private message to sirinsidiator |
Send email to sirinsidiator |
Find More Posts by sirinsidiator |
Add sirinsidiator to Your Buddy List |
![]() |
|
|
Could you please add a check so that the auto-complete selection box closes itself once the slash command has been completed and there are no auto-completes available for the parameters?
For example, once I type "/script<SPACEBAR>", the auto-complete selection box should close because I've completed the slash command portion with the <SPACEBAR>, and for the "/script" command, there are no parameters to auto-complete. The reason I'm asking for this is because for a number of slash commands, I need to see or reference what is being shown in the chat box, and the auto-complete selection box covers up the chat. "/script" is the most prominent example because I use it to test/debug stuff which often requires looking at chat output, but there are probably other cases too. Thanks in advance. |
![]() |
![]() |
code65536 |
View Public Profile |
Send a private message to code65536 |
Send email to code65536 |
Find More Posts by code65536 |
Add code65536 to Your Buddy List |
![]() |
You have just downloaded by the author . If you like this AddOn why not consider supporting the author? This author has set up a donation account. Donations ensure that authors can continue to develop useful tools for everyone.