(3 Kb)
Updated: 01-14-07 02:19 AM
File Info
Updated:01-14-07 02:19 AM


Version: 3.2.0
by: Saeris [More]


This addon modifies the loot frame such that the most relevant portion will always be under your cursor. The positioning shows preference to the first loot item, then the second, third, and fourth, and then the "Page Down" button if applicable. In addition to this, the loot frame will be shown above all other frames, so that it is always on top and visible. Also, the loot frame can be dragged around the screen with the mouse, and will be automatically hidden when there is no more loot within the window.

Feedback and Inquiries

I welcome feedback for any of my addons, including this one. However, if the feedback is a bug report or feature request, please use the methods on this page (the "Bugs" and "Features" buttons below the "Download" button in the top right) to alert me, instead of posting in the "Comments" section of this page, as it will take me longer to reply to you if you post there. For feedback or inquiries not related to bugs or features, such as information about translating this addon to another language or a request for a detailed explanation of a certain bit of code, please contact me directly via one of the methods listed in the "Preamble" section of my author portal's introduction text. Following these guidelines will ensure that I read and reply to your message.

History of Changes

See the readme file in this addon's folder, or my author portal, for an explanation of the versioning system.

3.2.0 (1/14/07):
- Re-enabled automatic closing of empty loot windows, now that the CloseLoot function is no longer protected as of patch 2.0.3.

3.1.0 (12/14/06):
- Temporarily disabled automatic closing of empty loot windows, due to the CloseLoot function accidentally being protected by Blizzard (and therefore uncallable by addons).

3.0.0 (12/13/06):
- Rewritten for efficiency and maintainability, and compliance with the new Burning Crusade scripting API.

- Removed the loot button OnEnter tooltip positioning hooks, because the tooltip now handles this behaviour itself with the "clampToScreen" attribute, which prevents it from even being shown offscreen.

See the readme file in this addon's folder for earlier changes.

Optional Files (0)

Post A Reply Comment Options
Unread 02-24-07, 04:15 PM  
An Aku'mai Servant
AddOn Author - Click to view AddOns

Forum posts: 31
File comments: 8
Uploads: 1

I just figured I'd thank you and this seemed an appropriate place to do it because of Dridzt's question. Truthfully, I like all of your addons that are rewrites of other mods (Lootlink, NicheLoot, etc.) better than the originals, and I believe that some of them particularly needed someone like you to rewrite them (Lootlink specifically ).

So, simply put, thanks for all your hard work.
Report comment to moderator  
Reply With Quote
Unread 12-14-06, 11:49 PM  
A Murloc Raider
Saeris's Avatar
AddOn Author - Click to view AddOns

Forum posts: 6
File comments: 126
Uploads: 85
A fair question. The majority of my addons are not original concepts, because most of the truly novel ideas were already proposed and implemented before the game's first year anniversary, but they are all original code. I write them because I want to add functionality to, or increase the efficiency of, the initial concept. The latter is something of a fascination for me, as I like to see just how efficiently something can be written while still keeping adequate maintainability and expandability.

In the particular case of NicheLoot, the differences can be summarized as follows:

NicheLoot prevents the LootFrame from going offscreen by simply calling LootFrame:SetClampedToScreen(true), which allows the UI engine itself to manage the frame position. QuickLoot does not keep the frame from going offscreen at all, and FruityLoots manages the frame's position itself, which is arguably less efficient than allowing the UI engine to handle it.

NicheLoot keeps the LootFrame visible above all other frames by setting its strata to "DIALOG", which is the highest strata layer in the UI at runtime. QuickLoot does not do this at all. FruityLoots uses the same method as NicheLoot and is equal in that regard.

NicheLoot allows the LootFrame to be dragged around the screen. QuickLoot does not allow this. FruityLoots does, but it does not tell the UI to refrain from remembering the LootFrame's position once dragging stops, as NicheLoot does. This means that once you log out, the UI writes the LootFrame's position to your configuration files, and has to read those values back in when you next log in. None of that is necessary, because the LootFrame is always moved to the location directly under the cursor when it is first shown. Also, if you decided to disable the addon, your LootFrame could become stuck wherever its location was last saved.

NicheLoot performs all of its actions without hooking any functions from the LootFrame.lua file. (Hooking functions is rather expensive, programmatically.) QuickLoot hooks two functions, LootFrame_OnEvent and LootFrame_Update. FruityLoots does not hook any functions, instead using Ace2 to perform the necessary actions. This is more efficient than my method, but only if the user is using at least one other addon which depends on Ace2. You would need a lot of Ace2-compatible addons to make the overall memory cost of the library itself worthwhile, but when considering only this limited section of code, it is more efficient. This is because a single function (the Ace2 event dispatch function) can be used to perform actions for multiple addons, where they would normally each need their own function.

Those are all of the differences. A similar list (in most cases much longer) could be conjured for all of my other addons, but the contents are primarily technical details which users don't care about, which is why I leave such comparisons out of the public documentation. In the code itself, some of it is documented with comments here and there, usually to remind me why I wrote something the way I did.

In the end, I'm not looking to "out-do" anyone. I write addons the way I do because that is my personality: I am always looking to improve or expand a current idea, simply because it can be done, not because there is anything wrong with existing concepts.
Report comment to moderator  
Reply With Quote
Unread 12-14-06, 09:54 PM  
A Pyroguard Emberseer
Dridzt's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1251
File comments: 781
Uploads: 82
I don't know how to ask this without the question coming out all wrong...
but I still need to ask.

The majority of your addons seem like rewrites of popular addons.
In some cases you state in the addon description what it is you're doing differently (better?).

What is the reason to have NicheLoot in my addons folder instead of
QuickLoot by Telo or FruityLoots by Neriak or another addon predating yours?

I mean no offense by it, it's a legitimate question I think.

Report comment to moderator  
Reply With Quote
Post A Reply

Category Jump: