mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 14:50:13 -05:00
- http://www.wowace.com/addons/ice-hud/tickets/145-hunter-pet-dismiss-error/ blacklisted the "dismiss pet" menu entry in pet right-click menus. Hunters should use the Dismiss Pet spell instead.
This commit is contained in:
@ -590,6 +590,7 @@ end
|
|||||||
local BLACKLISTED_UNIT_MENU_OPTIONS = {
|
local BLACKLISTED_UNIT_MENU_OPTIONS = {
|
||||||
SET_FOCUS = "ICEHUD_SET_FOCUS",
|
SET_FOCUS = "ICEHUD_SET_FOCUS",
|
||||||
CLEAR_FOCUS = "ICEHUD_CLEAR_FOCUS",
|
CLEAR_FOCUS = "ICEHUD_CLEAR_FOCUS",
|
||||||
|
PET_DISMISS = "ICEHUD_PET_DISMISS",
|
||||||
LOCK_FOCUS_FRAME = true,
|
LOCK_FOCUS_FRAME = true,
|
||||||
UNLOCK_FOCUS_FRAME = true,
|
UNLOCK_FOCUS_FRAME = true,
|
||||||
}
|
}
|
||||||
@ -606,6 +607,12 @@ UnitPopupButtons["ICEHUD_CLEAR_FOCUS"] = {
|
|||||||
dist = 0,
|
dist = 0,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
UnitPopupButtons["ICEHUD_PET_DISMISS"] = {
|
||||||
|
text = L["Use your Dismiss Pet spell to dismiss a pet"],
|
||||||
|
tooltipText = L["Blizzard currently does not provide a proper way to right-click dismiss a pet with custom unit frames."],
|
||||||
|
dist = 0,
|
||||||
|
}
|
||||||
|
|
||||||
local munged_unit_menus = {}
|
local munged_unit_menus = {}
|
||||||
local function munge_unit_menu(menu)
|
local function munge_unit_menu(menu)
|
||||||
local result = munged_unit_menus[menu]
|
local result = munged_unit_menus[menu]
|
||||||
|
Reference in New Issue
Block a user