from retail

This commit is contained in:
Bunny67
2020-07-26 14:30:59 +03:00
parent 0e3999b8fd
commit ad5e1ed4d1
8 changed files with 121 additions and 71 deletions
@@ -760,7 +760,7 @@ function WeakAuras.CreateFrame()
end
end
if (type(self.pickedDisplay) == "string" and self.pickedDisplay == id)
or (type(self.pickedDisplay == "table") and id == tempGroup.id)
or (type(self.pickedDisplay) == "table" and id == tempGroup.id)
then
frame:UpdateOptions()
end
@@ -1184,6 +1184,13 @@ function WeakAuras.CreateFrame()
self:FillOptions()
end
frame.GetPickedDisplay = function(self)
if type(self.pickedDisplay) == "string" then
return WeakAuras.GetData(self.pickedDisplay)
end
return self.pickedDisplay
end
frame:SetClampedToScreen(true)
local w, h = frame:GetSize()
local left, right, top, bottom = w/2,-w/2, 0, h-25