WoWInterface SVN BrokerItemRack

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 11 to Rev 12
    Reverse comparison

Rev 11 → Rev 12

trunk/Broker_ItemRack/Broker_ItemRack.lua
128,16 → 128,21
GameTooltip:Hide()
 
if (button == "LeftButton") then
 
-- Workaround for displays using generic frame references (thanks Adirelle)
-- We basically create a custom frame (if it doesn't exist) to hold our menu and anchor it to the DO
local anchorFrame = _G["Broker_ItemRack_MenuFrame"]
if not anchorFrame then
anchorFrame = CreateFrame("Frame", "Broker_ItemRack_MenuFrame")
end
 
anchorFrame:ClearAllPoints()
anchorFrame:SetAllPoints(self)
 
 
local tip1, frame, tip2
if self and self:GetName() then
-- get anchor according to frame 'self'
tip1, frame, tip2 = GetTipAnchor(self)
-- get anchor according to parent
elseif self:GetParent() and self:GetParent():GetName() then
tip1, frame, tip2 = GetTipAnchor(self:GetParent())
end
 
tip1, frame, tip2 = GetTipAnchor(anchorFrame)
 
-- correct itemrack menu frame position
if tip1 == "TOP" and tip2 == "BOTTOM" then
tip1 = "TOPLEFT"
146,13 → 151,14
tip1 = "BOTTOMRIGHT"
tip2 = "TOPRIGHT"
end
 
if self and self:GetName() then
-- normal docking if display provides a frame
ItemRack.DockWindows(tip1, self, tip2, Broker_ItemRackConfig.MenuOrientation);
ItemRack.BuildMenu(20)
ItemRackMenuFrame:SetFrameStrata("FULLSCREEN");
end
 
ItemRack.DockWindows(tip1, anchorFrame, tip2, Broker_ItemRackConfig.MenuOrientation);
ItemRack.BuildMenu(20)
-- scaling and strata settings so our menu is always visible
ItemRackMenuFrame:SetFrameStrata("FULLSCREEN_DIALOG");
local BRItemRackMenuScale = ItemRackUser.MenuScale or 1
anchorFrame:SetScale(BRItemRackMenuScale)
anchorFrame:SetFrameStrata("FULLSCREEN_DIALOG");
 
end
 
trunk/Broker_ItemRack/Broker_ItemRack.toc
7,7 → 7,7
## X-Embeds: Ace3
## X-Category: Miscellaneous
## SavedVariables: Broker_ItemRackConfig
## Version: 1.6
## Version: 1.7
 
embeds.xml
LibDataBroker-1.1.lua