LiteBag

Last Updated: Aug 29, 2017 Game Version: 7.3.0

75,252

Jan 23, 2013

Owner: Xodiv

LiteBag is a minimal one-bag solution for inventory and bank.

About

LiteBag provides replacement inventory (bag) and bank frames that behave like the blizzard bank and bag frames, except all of the bank item slots are gathered into one frame, and all of the bag item slots are gathered into another frame.

LiteBag is designed to be simple and to use as many of the Blizzard core features as possible.

Features:

  • Provides one-bag support for inventory and bank, and wrappers the default reagent bank frame.
  • Item display/cooldown/click/drag/etc exactly like the default bags/bank.
  • Open/close automatically and manually exactly the same as the default frames.
  • Uses the default bag search and sort facilities.
  • Hold SHIFT to sort bags without the confirmation pop-up.
  • Supports the alternative currency "display on backpack" feature.
  • Shows up to 4 colored icons on items showing Equipment Set memberships.
  • Moveable inventory frame. Drag on title bar to move.
  • Scaleable inventory and bank, use the sliders in the options interface.
  • Resizeable inventory and bank, drag bottom-right corner.
  • Inventory frame snaps back to default backpack position if moved near to it.

Non-features:

  • Bank frame doesn't move (appears in the same place that the Blizzard bank does).
  • Doesn't change guild bank or reagent bank (they are already one frame).
  • Doesn't show inventory/bank of other characters (try BagSync or Altoholic).
  • Doesn't show your bank contents when you are not at the bank teller.
  • Doesn't do any filtering or sorting other than the default Blizzard mechanisms.
  • Doesn't display items by category or any other sort order.

Other Addons with LiteBag Support

If You Don't Like LiteBag

If you don't like LiteBag, that's cool! Mostly it does what I want, which is probably different from what you want. I love feedback and suggestions but I won't always implement them. My priority is making sure I can continue to maintain LiteBag, which mostly means keeping it fairly simple.

If you want something different you might find one of these other bag addons has what you are after: AdiBags; Bagnon; BaudBag; Inventorian; OneBag3.

If This AddOn Seems Abandoned

If more than two weeks go by after a major patch and this addon isn't updated, I've probably been hit by a bus. In that case I encourage anyone with the necessary ability to take over maintenance of the addon. It is released under the terms of the GNU General Public License, which means anyone can take it and do whatever they want with it, as long as they too release their code under the same terms.

For Authors of Bag Icon-Plugin Addons

To support LiteBag you should probably hook the function LiteBagItemButton_Update, which does the ItemButton updating for both bank and bag items. If you really really need to hook at the point the item/icon are set you can hook LiteBagItemButton_UpdateItem, but I strongly recommend against it. Guild Bank and Reagent Bank are not handed by LiteBag and you will have to hook the standard Blizzard frames for those.

LiteBagItemButton_Update has one argument, the button frame. It inherits from ContainerFrameItemButtonTemplate and anything that works on that will also work on the LiteBag buttons.

e.g.,

function MyHookLiteBag()
    if not LiteBagItemButton_Update then return end
    hooksecurefunc('LiteBagItemButton_Update', function (button)
            local slot = button:GetID()
            local bag = button:GetParent():GetID()
            -- your code
        end)
end

Comments

  • To post a comment, please or register a new account.
Posts Quoted:
Reply
Clear All Quotes