| Updated: | 08-06-09 01:53 AM |
| Created: | 05-29-09 09:55 AM |
| Downloads: | 1,284 |
| Favorites: | 13 |
| MD5: |
File Name |
Version |
Size |
Author |
Date |
Type |
1.1.1 |
888B |
06-01-09 04:11 AM |
Patch |
![]() |
Comment Options |
|
|
||
http://www.wowinterface.com/download...3-_DevPad.html
__________________
spiralofhope.com |
||
|
|
|
|
|
|
A Deviate Faerie Dragon
Forum posts: 11
File comments: 5
Uploads: 0
|
Such a simple and useful little button that I never knew I'd want, but most certainly do!
Thank you for this spiffy addon! ![]() |
|
|
|
|
|
|
Wow, Im impressed
![]() I planed to get rid of those Libs too, but dont have that much experience with WoW-API right now. Thank you soo much, this is gonna help alot on other projects Im working on. |
|
|
|
|
|
||
What I meant by the code comment was, you've got about 70 LoC (tiny addon, that's great) but you load up 5 libs (AceAddon, AceConsole, CBH/AceEvent, AceLocale), you don't use AceConsole or AceLocale, and you could handle your event dispatching with a single line of code since you already have a frame. Digging a little further, I see that you're only using the event handler to show and hide your frame, which the frame renderer will manage for you if you anchor the frame correctly. This is what your addon looks like if you clean out all the unneeded bits: Code:
local butt = CreateFrame("Button", "TakeAllButton", LootFrame, "UIPanelButtonTemplate")
butt:SetPoint("BOTTOM", LootFrame, "BOTTOMRIGHT", -194, -17)
butt:SetFrameStrata("DIALOG")
butt:SetWidth(100)
butt:SetHeight(24)
butt:SetText("Take all")
butt:SetScript("OnClick", function()
for i = 1,GetNumLootItems() do LootSlot(i) end
if LootFrame:IsShown() then CloseLoot() end
end)
__________________
I have reached enlightment. Thank you bacon! |
||
|
|
|
|
|||
And I know that shift-loot will loot everything as well. This addon might be unnecessary in your eyes but for other ppl its not. Its a matter of the gameplay. If you dont like it, dont use it.
Last edited by JoSchY : 05-31-09 at 01:38 PM.
|
|||
|
|
|
|
|
|
A Kobold Labourer
Forum posts: 1
File comments: 52
Uploads: 0
|
I would love to see this addon compatible with XLoot. Would an integration be possible?
Kind regards X-buZZ
Last edited by X-buZZ : 05-31-09 at 01:12 PM.
|
|
|
|
|
||
__________________
I have reached enlightment. Thank you bacon! |
||
|
|
|
|
||
|
Re: Button location
http://www.wowinterface.com/download...tion.html#info Make sure you install 1.0.1 first I forgot a Lib with the first release. |
||
|
|
|
|
|
|
A Kobold Labourer
Forum posts: 0
File comments: 10
Uploads: 0
|
Button location
Is it possible to have the button at the top of the loot window? Because I have 'open loot window at mouse' and it's kind of counterintuitive for me to move my mouse all the way down of the loot window to click it rather than just being able to click the button straight away when the window opens.
|
|
|
|
|
||
After the Beta ended I got back to play WoW but had a little trouble with familiarization back to it. Thats why I programmed this. In certain cases I dont want to Loot everything or just want to have a look at the loot first, before taking it. |
||
|
|
|
|
|
|
Just out of curiousity, how is this different than turning autoloot on?
|
|
|
|
![]() |