This commit is contained in:
Crum
2019-01-12 02:18:46 -06:00
parent 79a61c59a8
commit eebdf23364
14 changed files with 417 additions and 251 deletions
+7 -8
View File
@@ -598,9 +598,8 @@ function B:Layout(isBank)
f.Bags[bagID][slotID]:ClearAllPoints()
end
local anchorPoint, relativePoint
if lastButton then
anchorPoint, relativePoint = (self.db.reverseSlots and "BOTTOM" or "TOP"), (self.db.reverseSlots and "TOP" or "BOTTOM")
local anchorPoint, relativePoint = (self.db.reverseSlots and "BOTTOM" or "TOP"), (self.db.reverseSlots and "TOP" or "BOTTOM")
if isSplit and newBag and slotID == 1 then
E:Point(f.Bags[bagID][slotID], anchorPoint, lastRowButton, relativePoint, 0, self.db.reverseSlots and (buttonSpacing + bagSpacing) or -(buttonSpacing + bagSpacing))
lastRowButton = f.Bags[bagID][slotID]
@@ -620,7 +619,7 @@ function B:Layout(isBank)
E:Point(f.Bags[bagID][slotID], anchorPoint, lastButton, relativePoint, self.db.reverseSlots and -buttonSpacing or buttonSpacing, 0)
end
else
anchorPoint = self.db.reverseSlots and "BOTTOMRIGHT" or "TOPLEFT"
local anchorPoint = self.db.reverseSlots and "BOTTOMRIGHT" or "TOPLEFT"
E:Point(f.Bags[bagID][slotID], anchorPoint, f.holderFrame, anchorPoint)
lastRowButton = f.Bags[bagID][slotID]
numContainerRows = numContainerRows + 1
@@ -1336,7 +1335,7 @@ function B:PLAYER_ENTERING_WORLD()
end
function B:updateContainerFrameAnchors()
local frame, xOffset, yOffset, screenHeight, freeScreenHeight, leftMostPoint, column
local xOffset, yOffset, screenHeight, freeScreenHeight, leftMostPoint, column
local screenWidth = GetScreenWidth()
local containerScale = 1
local leftLimit = 0
@@ -1357,7 +1356,7 @@ function B:updateContainerFrameAnchors()
local frameHeight
for _, frameName in ipairs(ContainerFrame1.bags) do
frameHeight = _G[frameName]:GetHeight()
local frameHeight = _G[frameName]:GetHeight()
if freeScreenHeight < frameHeight then
-- Start a new column
@@ -1390,7 +1389,7 @@ function B:updateContainerFrameAnchors()
local bagsPerColumn = 0
for index, frameName in ipairs(ContainerFrame1.bags) do
frame = _G[frameName]
local frame = _G[frameName]
frame:SetScale(1)
if index == 1 then
@@ -1465,12 +1464,12 @@ function B:ProgressQuickVendor()
if not item then return nil, true end --No more to sell
local bag, slot, itemPrice, itemLink = unpack(item)
local stackPrice
local stackCount = select(2, GetContainerItemInfo(bag, slot)) or 1
local stackPrice = 0
if B.SellFrame.Info.delete then
PickupContainerItem(bag, slot)
DeleteCursorItem()
else
local stackCount = select(2, GetContainerItemInfo(bag, slot)) or 1
stackPrice = (itemPrice or 0) * stackCount
if E.db.bags.vendorGrays.details and itemLink then
E:Print(format("%s|cFF00DDDDx%d|r %s", itemLink, stackCount, B:FormatMoney(stackPrice)))