BetterBags

BetterBags

1M Downloads

Gear Slot categories/sorting

plachance14 opened this issue ยท 3 comments

commented

We discussed this in the discord, but some option either to seperate gear the goes in different slots into categoies, or to just sort the "armor" category by slot so all the helms, rings, trinkets, weapons, etc. are placed next to each other and then sub-sorted by the global sorting choice (alphabet, etc.) would be awesome! Thanks for the great addon!

commented

Thanks! I'll give that a shot later today!

commented

@plachance14 here's code you could put into an addon to give you each slot as an available custom category until this is implemented (I imagine the implementation in the main addon will be cleaner than this)

local addon = LibStub('AceAddon-3.0'):GetAddon("BetterBags")
local categories = addon:GetModule('Categories')
local L = addon:GetModule('Localization')

-- Gear Slots
categories:RegisterCategoryFunction("Gear Slots", function (data)
	if (data.itemInfo.itemEquipLoc) then
		return L:G(_G[data.itemInfo.itemEquipLoc])
	end
	return nil
end)

image

commented

Implemented as Equipment Location
image

Further refinements will ongoing