Skip to content

xod-wow/LiteBag

Folders and files

NameName
Last commit message
Last commit date

Latest commit

5627a2b · Apr 23, 2025
May 24, 2022
Aug 2, 2024
Aug 18, 2024
Aug 17, 2024
Aug 17, 2024
Aug 2, 2024
Nov 25, 2022
Aug 18, 2024
Nov 25, 2022
Aug 3, 2024
Jun 9, 2023
Apr 4, 2025
Nov 25, 2022
Aug 2, 2024
Jun 9, 2023
Jul 25, 2024
Jul 1, 2024
Jun 30, 2024
Nov 25, 2022
Jul 29, 2024
Jul 1, 2024
Jan 18, 2024
Jun 30, 2024
Aug 2, 2024
May 9, 2023
Aug 2, 2024
Jun 1, 2013
Apr 23, 2025
Aug 18, 2024
Nov 19, 2023
Nov 25, 2022
Nov 25, 2022
Aug 4, 2024
Jun 30, 2024
Jul 1, 2024
Jul 15, 2024
Jun 21, 2024
Jul 1, 2024

Repository files navigation

LiteBag World of Warcraft Addon

For the addon, see:

For Authors of Bag Icon-Plugin Addons

To support LiteBag you can hook into ItemButton update and create as follows:

  1. Update:

    LiteBag_RegisterHook('LiteBagItemButton_Update', YourUpdateFunction)
    

    and optionally LiteBag_AddPluginEvent(eventName) if you need LiteBag to update on additional events. Your function will be called once for every itembutton, with the itembutton as the argument.

  2. Create:

    LiteBag_RegisterHook(`LiteBagItemButton_Create', YourFunction)
    

Guild Bank and Reagent Bank are not handed by LiteBag and you will have to hook the standard Blizzard frames for those.

The itembuttons inherit ContainerFrameItemButtonTemplate and anything that works on that will also work on the LiteBag buttons.

E.g.,

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