- Home
- Downloads
-
Addons & Mods
Featured
World of Warcraft
6,105 Addons
-
Popular Downloads
- Top World of Warcraft Addons
- Top Minecraft Server Mods
- Top Rift Addons
- Top Skyrim Mods
- Top World of Tanks Skins
- Top StarCraft II Maps
- Top Terraria Maps
- Top Runes of Magic Addons
- Top Warhammer Online Addons
- Top The Secret World Mods
- Top Age of Conan Addons
-
- Curse Client
- Premium
- News
- Giveaways
- Forums
- Store
LibSlash
- 1 Like
- Warhammer Online
- 327 Monthly Downloads
- Supports: 1.3.5
- 481,995 Total Downloads
- Updated 05/19/2010
- Created 08/19/2008
- 1,226 Favorites
- Project Site
- Comments
- Release Type: Mature
- License: MIT License
- Newest File: v3.0-release
About LibSlash
A basic library for registering slash commands in the WAR interface.
If you're downloading this because an addon you want to use requires it, just extract it into the interface\addons directory, and that's all you need to do.
With LibSlash installed, you'll also be able to use /addon or /uimod to open the Addons window in-game.
If you're writing an addon and want to utilize LibSlash, place it in the proper addons directory along with your other addons. Then, add it as a dependency in your addon's .mod file, like so:
<Dependencies>
<Dependency name="LibSlash" />
</Dependencies>
This will ensure that LibSlash is loaded before your addon, so that its functions will be available for use.
To register a slash command handler, call LibSlash.RegisterSlashCmd() with the slash command you want to register (a string, NOT INCLUDING THE /) and a function to serve as the handler:
LibSlash.RegisterSlashCmd("myslash", function(input) MyAddonHandleSlash(input) end)
The single argument passed to the handler is a string containing the rest of the chat line entered after the initial slash command, so the above code would call MyAddonHandleSlash with an argument of "testing" if I typed "/myslash testing" at the command line.
Alternatively, LibSlash.RegisterWSlashCmd() can be used to register a handler to receive a wstring version of the chat line, instead of having it automatically translated to a string.
To unregister a slash command, use LibSlash.UnregisterSlashCmd("myslash") - the only argument it takes is a string specifying the slash command to unregister. You can also use LibSlash.IsSlashCmdRegistered("myslash") to see if a slash command is already registered, possibly by another addon.
Both the register and unregister functions will return true on success, or false on failure for any reason such as attempting to register a slash command which is already registered, or other silly things.
------------------------------------------------------------------------
r56 | aiiane | 2010-05-19 18:15:17 +0000 (Wed, 19 May 2010) | 1 line
Changed paths:
A /tags/v3.0-release (from /trunk:55)
Tagging as v3.0-release
------------------------------------------------------------------------
r55 | aiiane | 2010-05-19 18:12:20 +0000 (Wed, 19 May 2010) | 1 line
Changed paths:
M /trunk/LibSlash.mod
A /trunk/LibSlash.xml
A /trunk/tint_square.tga
Added tint_square to replace texture lost in 1.3.5.
------------------------------------------------------------------------
| File Name | Release Type | Game Version | Downloads | Date |
|---|---|---|---|---|
| v3.0-release | Release | 1.3.5 | 61,834 | 05/19/2010 |
| v2.93-release | Release | 1.3.4 | 33,734 | 10/16/2009 |
| v2.92-release | Release | 1.30b | 34,795 | 08/18/2009 |
| v2.91-release | Release | 1.3 | 36,787 | 07/09/2009 |
| v2.9-release | Release | 1.3 | 23,271 | 06/26/2009 |
| v2.8-release | Release | 1.2.1 | 25,167 | 06/16/2009 |
| v2.7-release | Release | 1.2.1 | 67,869 | 04/16/2009 |
| v2.6-release | Release | Beta 3.0 | 846 | 02/03/2009 |
| v2.5-release | Release | Beta 3.0 | 200 | 02/02/2009 |
| v2.4-release | Release | Beta 3.0 | 22 | 11/10/2008 |
| v2.3-release | Release | Beta 3.0 | 65 | 10/12/2008 |
| v2.2-release | Release | Beta 3.0 | 3 | 10/05/2008 |
| v2.1-release | Release | Beta 3.0 | 2 | 10/02/2008 |
| v2.0-release | Release | Beta 3.0 | 1 | 09/28/2008 |
| v1.9-release | Release | Beta 3.0 | 1 | 09/26/2008 |
| v1.8-release | Release | Beta 3.0 | 1 | 09/23/2008 |
| v1.7-release | Release | Beta 3.0 | 1 | 09/22/2008 |
| v1.6-release | Release | Beta 3.0 | 1 | 09/13/2008 |
| v1.5-release | Release | Beta 3.0 | 26 | 09/11/2008 |
| v1.4-release | Release | Beta 3.0 | 10 | 09/09/2008 |
| v1.3-release | Release | Beta 3.0 | 1 | 09/03/2008 |
| v1.2-release | Release | Beta 3.0 | 2 | 08/23/2008 |
| v1.1-release | Release | Beta 3.0 | 40 | 08/20/2008 |
| v1.0-release | Release | Beta 3.0 | 419 | 08/20/2008 |
Top Downloads
-
- Enemy
- Buffs & Debuffs, Unit Frames, Combat, and PvP
- 395 Monthly Downloads
-
- LibSlash
- Development Tools
- 327 Monthly Downloads
-
- Squared
- Unit Frames
- 248 Monthly Downloads
-
- Twister
- Action Bars, Combat, Class, and Buffs & Debuffs
- 247 Monthly Downloads
-
- BuffHead2
- PvP, Combat, and Buffs & Debuffs
- 205 Monthly Downloads
Comments
Go to your Warhammer folder and create a new folder 'interface' directly under that. Then within 'interface' create a new folder called addons. Extract all your downloaded mods into the NEW addons folder. Hope this helps.
is somebody can help me ?
thank you