r37339 | arkayenro | 2007-05-28 02:57:58 -0400 (Mon, 28 May 2007) | 2 lines
1. Does AI load first of you Ace2 addons? If so, it will be listed because it loads the ace2 libs first (and will be listed even tho other addons cause the usage)
2. You have a real old version of AI, AI shouldn't take any cpu if not visible.
3. Seeing that much usage while you just stand there... old comp?
I don't know how protractor works. One thing that is obvious tho is that the numbers adds up to ~100% and I doubt your comp use 100% cpu while playing wow. So, if it uses 50% cpu, then it would be more likely that AI use 38.2% of that. Have you tried any other profiling addon? Result from those?
My numbers with profiling turned on:
You're absolutely right. ArkInventory loads Ace2, and does all of it's processing for all other addons. Thus, my processing would be inaccurate. Problem spotted.
Now, if only something had told me this before I posted here...
The following could be used to add a simple search function:
function Search(f,n) --arg1 is the name of the frame to search (ARKINV_MainFrame1), arg2 is the string to search for. Case-sensitive!
for b=0,4 do
for s=1,GetContainerNumSlots(b) do
if GetContainerItemLink(b,s) then
if string.find(GetContainerItemLink(b,s),n) then
Making the inventory show/hide instead of the backpack at bank,mailbox,etc - all you would need to do is use the hooks I posted below - you could also remove the bindings.xml file entirely, along with the code to show/hide at the mailbox, and users could simply bind to open backpack or open all bags.
edit: Actually, it would be best NOT to hook OpenAllBags() so people can still see what bag and slot things are!!
The only other thing it needs is the following categories.
Trinkets (Seperate from equipment)
Herbs/Ore/Gems/Etc (Tradeskill Items)