It's been a while but there is a new update out.
The changelog for 0.12beta is a bit longer this time:
Code:
FEATURES:
* ITEMS CAN BE USED NOW!
Yeah, this is big news. Thanks to additions to the API in 1.9 you
can now left and right click on items in ImhoBags to use/move/sell/love
them the same way as the default windows do. Items which you cannot interact
with (e.g. wrong character) are dimmed and don't react to input.
* Added a new menu to access all inventory locations from
a centeral location without the need to memorize all slash commands.
* The command to open this menu is /imhobags menu
Put the command into a macro to have a convenient menu
popup whenever you click the macro button.
* The items in each group can now be sorted either by name, icon or rarity.
Sorting items by icon may result in items of similar type to be arranged
together, for example all cloth items followed by all wood, followed
by all herbs and so on. I suggest experimenting which sort option suites
you best.
* Hovering your mouse over a money display in a item window shows
a summary of all the money you have on the current shard.
* There is now a public API in the "ImhoBags" global table with events
other addon authors can make use of.
CHANGES:
* Mounts and Pets are now grouped under collectibles like artifacts.
* Account-bound items received a different red/blue indicator symbol.
FIXES:
* Some tweaks to update performance. Further improvements are still underway.
* Many small fixes.
ISSUES:
* The mail database is cleared everytime the Trion mail window is opened.
* Item tooltips may show up in the top-left corner of the screen.
* Some items may not show up in the item windows due to broken values in the API.
* Equipped and wardrobe items cannot be draged until the character/wardrobe window
has been opened at least once with the respective set.
Note to Addon developers:
There is a new public API which can be used by other addons and might get extended in the future as required. Currently it contains hooks for the new Command.Item.Standard.* stuff:
Code:
ImhoBags.Event.Item.Standard.Right(params)
ImhoBags.Event.Item.Standard.Left(params)
ImhoBags.Event.Item.Standard.Drag(params)
ImhoBags.Event.Item.Standard.Drop(params)
They all receive the following single argument:
Code:
params = {
id = itemid/slotid,
cancel = false,
} The id member is usually the itemid (as returned by Inspect.Item.Detail().id). The only event where it can become a slotid is in the Drop event if dropping an item on an empty slot instead of on another item. So you need to account for both if you use this event.
The cancel value controls whether ImhoBags should call the default item action afterwards. If any event handler sets this value to true (and stays true) ImhoBags will not perform the appropriate Command.Item.Standard* action.
If you intend on using these events you need to do three things:- Make ImhoBags an optional dependency by adding the following line to your Dependencies table in your RiftAddon.toc file:
Code:
ImhoBags = { "optional", "before" } - Test for ImhoBags presence and version on startup:
Code:
local info = Inspect.Addon.Detail("ImhoBags")
if(info and info.toc.publicAPI) then
-- ImhoBags is available and has the necessary version to contain the API
-- (publicAPI holds the API version for future updates)
end - Use the mentioned events as you would any other with the typical table.insert mechanic.
I will create a page on the addon's CurseForge site with a proper description.
Bookmarks