Thread: Type DELETE!
View Single Post
09-02-15, 01:30 AM   #23
gmarco
An Onyxian Warder
 
gmarco's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 362
I asked because I liked the idea so much ... and having it in a macro is not so confortable.

BTW, a minimalistic approach could be (suppose the addon name will be LazyDelete):

LazyDelete.toc

Lua Code:
  1. ## Interface: 60200
  2. ## Title: LazyDelete
  3. ## Notes: Remove the need to type DELETE to destroy items
  4. ## Author: Your Name
  5. ## Version: 1.0-2015090201
  6.  
  7. core.lua


core.lua

Lua Code:
  1. StaticPopupDialogs.DELETE_GOOD_ITEM=StaticPopupDialogs.DELETE_ITEM
  2. print("LazyDelete is ON")


It should suffices :-)
__________________
This is Unix-Land. In quiet nights, you can hear the Windows machines reboot.
  Reply With Quote