-- normal docking if display provides a frame |
ItemRack.DockWindows(tip1, self, tip2, Broker_ItemRackConfig.MenuOrientation); |
ItemRack.BuildMenu(20) |
ItemRackMenuFrame:SetFrameStrata("FULLSCREEN"); |
-- "hack" to reiterate an altered version of ItemRack's original function |
-- in case the display does not provide a native frame |
-- but rather a parent |
elseif self:GetParent() and self:GetParent():GetName() then |
ItemRackMenuFrame:ClearAllPoints() |
ItemRack.currentDock = tip2..tip1 |
ItemRackMenuFrame:SetPoint(tip1,self,tip2,ItemRack.DockInfo[ItemRack.currentDock].xoff,ItemRack.DockInfo[ItemRack.currentDock].yoff) |
ItemRackMenuFrame:SetParent(self:GetParent()) |
ItemRackMenuFrame:SetFrameStrata("FULLSCREEN"); |
ItemRack.mainDock = tip2 |
ItemRack.menuDock = tip1 |
ItemRack.menuOrient = Broker_ItemRackConfig.MenuOrientation |
ItemRack.menuDockedTo = self:GetParent():GetName() |
ItemRack.MenuMouseoverFrames[self:GetParent():GetName()] = 1 -- add frame to mouseover candidates |
ItemRack.ReflectLock(not ItemRack.menuMovable) |
ItemRack.ReflectMenuScale() |
ItemRack.BuildMenu(20) |
ItemRackMenuFrame:SetFrameStrata("FULLSCREEN"); |
end |
|
end |