m
no edit summary
(→See Also: added) |
mNo edit summary |
||
| Line 69: | Line 69: | ||
* The actual '''SLASH_''<CommandId>''''<Number>''''' values should be localizable if you plan on your addon being translated, but the command ID will remain the same. | * The actual '''SLASH_''<CommandId>''''<Number>''''' values should be localizable if you plan on your addon being translated, but the command ID will remain the same. | ||
* Be prudent about how many aliases you make for your command, and try and pick something that's unlikely to collide with someone else's (including Blizzard's!) | * Be prudent about how many aliases you make for your command, and try and pick something that's unlikely to collide with someone else's (including Blizzard's!) | ||
== Notes == | |||
There's a second parameter to the SlashCmdList["''<CommandId>''"] function that is rarely used. It is the chat frame edit box frame that the slash command originated from. | |||
SLASH_BLAH1 = "/blah" | |||
SlashCmdList["BLAH"] = function(msg, editBox) | |||
-- change the text on the editBox. | |||
editBox:Show() | |||
editBox:SetText("Blah blah blah!") | |||
end | |||
== See Also == | == See Also == | ||