View Single Post
Old 11-25-2010   #2
Dridzt
Hero Member
 
Dridzt's Avatar
 
Join Date: Nov 2005
Posts: 803
Default Re: Escape cancels rez in bg...

Create a folder:
NoEscape

Inside it create 2 text files:
NoEscape.toc
NoEscape.lua

Open them in turn with a text editor and copy the following:
NoEscape.toc
Code:
## Interface: 40000
## Title: NoEscape
## Notes: Disables ESC for some static popup dialogs.

NoEscape.lua
NoEscape.lua
Code:
local ESC_DISABLED = {
    "RESURRECT",
    "RESURRECT_NO_SICKNESS",
    "RESURRECT_NO_TIMER",
    "SKINNED_REPOP",
    "CONFIRM_SUMMON",
    "BFMGR_INVITED_TO_QUEUE_WARMUP",
    "BFMGR_INVITED_TO_QUEUE",
    "BFMGR_INVITED_TO_ENTER",
    "ARENA_TEAM_INVITE",
    "PARTY_INVITE",
}

for i,v in ipairs(ESC_DISABLED) do
    StaticPopupDialogs[v].hideOnEscape = nil
end
Save the files and copy the whole folder into \World of Warcraft\Interface\AddOns\

If you want to keep the Esc to cancel behavior for some of those dialogs
just put a -- infront of the dialog name
example:
Code:
-- "PARTY_INVITE",
to leave the group invite dialog unmodified.

Completely drycoded and untested so use at your own risk.
Dridzt is offline   Reply With Quote