Quantcast Type DELETE! - WoWInterface
 
Thread Tools Display Modes
08-14-15, 07:43 AM   #1
Deadlyz
An Aku'mai Servant
AddOn Author - Click to view addons
Join Date: Nov 2010
Posts: 36
Type DELETE!

Is there any addon that allows deleting epic/blue items without typing anything?

I'm really lazy.
__________________

My last movie: Rogue Sweethearts
  Reply With Quote
08-14-15, 09:19 AM   #2
bsmorgan
A Chromatic Dragonspawn
AddOn Author - Click to view addons
Join Date: Mar 2005
Posts: 187
I too am annoyed by the type DELETE dialog but I'd be careful eliminating the dialog completely. I believe a simple confirmation dialog (i.e. OK or Cancel) would be adequate.
  Reply With Quote
08-14-15, 01:24 PM   #3
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2007
Posts: 1,696
Lua Code:
  1. StaticPopupDialogs.DELETE_GOOD_ITEM.hasEditBox = false
  2. StaticPopupDialogs.DELETE_GOOD_ITEM.OnShow = function(self)
  3.     self.button1:Enable()
  4. end
  Reply With Quote
08-15-15, 12:00 AM   #4
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
And if you want to be even lazier and just press Enter instead of moving the mouse to click, you can add:

Code:
StaticPopupDialogs.DELETE_GOOD_ITEM.enterClicksFirstButton = 1
__________________
Author/maintainer of Grid, PhanxChat, oUF_Phanx, and many more.
Troubleshoot an addonTurn any code into an addonMore addon resources
Need help with your code? Post all of your actual code! Attach or paste your files.
Please don’t PM me about addon bugs or code questions. Post a comment or forum thread instead!
  Reply With Quote
08-15-15, 12:57 AM   #5
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 1,889
I'd honestly just sync it with StaticPopupDialogs["DELETE_ITEM"].
Code:
StaticPopupDialogs.DELETE_GOOD_ITEM=StaticPopupDialogs.DELETE_ITEM
__________________
ESOUI AddOns | WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)
  Reply With Quote
08-15-15, 03:29 AM   #6
Deadlyz
An Aku'mai Servant
AddOn Author - Click to view addons
Join Date: Nov 2010
Posts: 36
Nice, thanks!

Now how do I make it into an addon?
__________________

My last movie: Rogue Sweethearts
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Search/Requests » Type DELETE!

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off