Quantcast WoWInterface - View Single Post - Type DELETE!
Thread: Type DELETE!
View Single Post
08-18-15, 01:01 PM   #11
Talyrius
An Onyxian Warder
 
Talyrius's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 361
Originally Posted by Deadlyz View Post
Is it possible to only show this text when deleting items that actually require typing anything?



Thanks!
Yes, remove the dialogs you don't want from the table.

Lua Code:
  1. local itemDialogs = {
  2.   "DELETE_ITEM", -- "Do you want to destroy %s?"
  3.   "DELETE_GOOD_ITEM", -- "Do you want to destroy %s?\n\nType \"DELETE\" into the field to confirm."
  4.   "DELETE_QUEST_ITEM", -- "Do you want to destroy %s?\n\n|cffff2020Destroying this item will also abandon any related quests.|r"
  5.   "DELETE_GOOD_QUEST_ITEM", -- "Do you want to destroy %s?\n|cffff2020Destroying this item will also abandon any related quests.|r\n\nType \"DELETE\" into the field to confirm."
  6. }
  Reply With Quote