mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
- 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:
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user