From a261ed6043adbda7ca4c620c962b5eaa128921fe Mon Sep 17 00:00:00 2001 From: tekkub Date: Tue, 29 Dec 2009 17:28:46 -0700 Subject: [PATCH] And so it begins --- tekKrush.lua | 13 +++++++++++++ tekKrush.toc | 14 ++++++++++++++ 2 files changed, 27 insertions(+) create mode 100755 tekKrush.lua create mode 100755 tekKrush.toc diff --git a/tekKrush.lua b/tekKrush.lua new file mode 100755 index 0000000..565f772 --- /dev/null +++ b/tekKrush.lua @@ -0,0 +1,13 @@ +local f = CreateFrame("Frame") +f:RegisterEvent("CONFIRM_DISENCHANT_ROLL") +f:SetScript("OnEvent", function(self, event, id, rollType) + for i=1,STATICPOPUP_NUMDIALOGS do + local frame = _G["StaticPopup"..i] + if frame.which == "CONFIRM_LOOT_ROLL" and frame.data == id and frame.data2 == rollType and frame:IsVisible() then StaticPopup_OnClick(frame, 1) end + end +end) + + +-- StaticPopupDialogs["LOOT_BIND"].OnCancel = function(self, slot) +-- if GetNumPartyMembers() == 0 and GetNumRaidMembers() == 0 then ConfirmLootSlot(slot) end +-- end diff --git a/tekKrush.toc b/tekKrush.toc new file mode 100755 index 0000000..010dfc5 --- /dev/null +++ b/tekKrush.toc @@ -0,0 +1,14 @@ +## Interface: 30300 + +## Title: tekKrush +## Notes: Yes, I really want to destroy that item, stop asking. +## Author: Tekkub Stoutwrithe +## Version: Alpha +## X-Website: http://tekkub.net/ +## X-Email: tekkub-wow@googlegroups.com +## X-Category: Misc + +## LoadManagers: AddonLoader +## X-LoadOn-Group: true + +tekKrush.lua