Get an Epic Experience with Premium

LibSlash

Development Tools Login to Add Favorites
  • 1 Like
  • Warhammer Online
  • 336 Monthly Downloads
  • Supports: 1.3.5
  • 481,987 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
or

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.
------------------------------------------------------------------------

Comments

First Previous Page 2 of 10 Next Last
  • #133
    You should know that disabling LibSlash will cause a lot of other addons not to load. Thus, there's a high chance that LibSlash itself is not what's causing your problems, but rather one of the addons that doesn't load if LibSlash is disabled.
  • #128
    Aliane,
    As of patch 1.2 the addon now locks all the items in the bag. I have tested all the addons i have and seems the bags lock only when i have libslash even if i dont use any other addons. If you can find time in your schedule to fix that issue or provide some help on it, it would be greatly appreciated. Overall keep up the good work. Thank you.
  • #129
    Um, there is absolutely zero code in LibSlash that deals with inventory items... are you sure?
  • #131
    Problem fixed Aiiane. I did whant someone suggested below with Auction Stats and Assist mod and id did the trick. But i am still suprised it will lock when i have only lib slash running and no other add ons. Thank you for your response and keep up the good work.
  • #130
    Thats was my though exactly so originally i thought it had to do with a waagh bar bag plugin. But i have turn off all my mods leavin only libslash and my bags were locked. Only when i turn off lib slash my bags become unlocked. Weird.
  • #127
    libslash is kind of screwy after 1.2, please fix it aiiane
  • #125
    Since 1.2 that the Advanced button does nothing.
    I'm looking for the debug window and the EA_ Native addons list there, but can't find a way to make them show.
  • #126
    You can use /debug to show the debug window; not sure on the rest.
  • #123
    Aiiane,

    It's been an interesting ride since closed beta with add-ons, but you've kept it solid, and reliable. I don't often stop to comment, but just wanted to let you know I'm grateful for all your work.

    Keep up the superb work, and community activity, You've made WAR a better place with your add-ons, and hard work. Thank you.

    Regards,

    Haxsys
  • #124
    I just installed the latest, after removing the old one via the Curse client. No issues here.
  • #122
    I'd suggest running a full file check; some individuals have been experiencing issues since the last update that aren't common to all users.
  • #121
    LibSlash does not affect bags. You have another addon which *uses* LibSlash (and thus is being turned off when you turn off LibSlash) which is causing your problem. Figure out which addon that is.
  • #118
    i have the same problem with my bag, i'm lvl10 and i have 3 bags but if i enable libslash, i lose 1 bag and just have 2. i can't find my 3' bag only if i disable libslash ( and reload the game. reloading the ui dont work)
    is somebody can help me ?
    thank you
  • #120
    That's because of the /reloadui command which is bugged, it has nothing to do with LibSlash.


    Install this addon:
    http://war.curse.com/downloads/war-addons/details/chatlocationfix.aspx
    and the problem should be gone.
  • #117
    i have the same problem with my bag, i'm lvl10 and i have 3 bags but if i enable libslash, i lose 1 bag and just have 2. i can't find my 3' bag only if i disable libslash ( and reload the game. reloading the ui dont work)
    is somebody can help me ?
    thank you
  • To post a comment, please login or register a new account.
Login to Curse

Don't have an account? Create One.

Get an epic experience with Curse Premium
  • Faster addon downloads
  • Premium-Only Beta Giveaways
  • Ad-Free Curse experience
  • Premium Curse Client
  • and many More Features
  • Learn More »

Infinite Crisis NA

Get Your Preferred Access Code!