WoWInterface SVN BrokerItemRack

Compare Revisions

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

Rev 10 → Rev 11

Broker_ItemRack/Broker_ItemRack.toc
7,7 → 7,7
## X-Embeds: Ace3
## X-Category: Miscellaneous
## SavedVariables: Broker_ItemRackConfig
## Version: 1.5
## Version: 1.6
 
embeds.xml
LibDataBroker-1.1.lua
Broker_ItemRack/Broker_ItemRack.lua
132,7 → 132,7
local tip1, frame, tip2
if self and self:GetName() then
-- get anchor according to frame 'self'
tip1, frame, tip2 = GetTipAnchor(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())
151,24 → 151,7
-- 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