- fixed an error introduced in 1.7.2 where the playerinfo's dropdown menu was trying to use the target's data instead of the player's data

- prevented the issue coming up in the future for petinfo as well
This commit is contained in:
Parnic
2010-10-27 13:47:36 +00:00
parent c67036a5e0
commit 48970abafb
2 changed files with 12 additions and 6 deletions

View File

@ -16,11 +16,15 @@ function PetInfo.prototype:GetDefaultSettings()
return settings
end
local function IcePetDropdown()
ToggleDropDownMenu(1, nil, PetFrameDropDown, "cursor")
end
function PetInfo.prototype:CreateFrame(redraw)
PetInfo.super.prototype.CreateFrame(self, redraw)
self.frame.menu = function()
ToggleDropDownMenu(1, nil, PetFrameDropDown, "cursor")
if not self.frame.menu or self.frame.menu ~= IcePetDropdown then
self.frame.menu = IcePetDropdown
end
end

View File

@ -51,13 +51,15 @@ function PlayerInfo.prototype:GetOptions()
return opts
end
local function IcePlayerDropdown()
ToggleDropDownMenu(1, nil, PlayerFrameDropDown, "cursor")
end
function PlayerInfo.prototype:CreateFrame(redraw)
PlayerInfo.super.prototype.CreateFrame(self, redraw)
if not self.frame.menu then
self.frame.menu = function()
ToggleDropDownMenu(1, nil, PlayerFrameDropDown, "cursor")
end
if not self.frame.menu or self.frame.menu ~= IcePlayerDropdown then
self.frame.menu = IcePlayerDropdown
end
end