Skip to content

Commit

Permalink
Fix bag position
Browse files Browse the repository at this point in the history
  • Loading branch information
Karl-HeinzSchneider committed Dec 3, 2023
1 parent 16e3300 commit 5dadd95
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions Modules/Actionbar.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2042,8 +2042,14 @@ function Module.HookBags()
-- from '\BlizzardInterfaceCode\Interface\FrameXML\ContainerFrame_Shared.lua'
local UpdateContainerFrameAnchorsModified = function()
-- CHANGE
local CONTAINER_OFFSET_X = 0
local CONTAINER_OFFSET_Y = 92
local CONTAINER_OFFSET_X_DF = 0
local CONTAINER_OFFSET_Y_DF = 92

if Module.db.profile.changeSides then
else
CONTAINER_OFFSET_X_DF = CONTAINER_OFFSET_X
-- CONTAINER_OFFSET_Y_DF = CONTAINER_OFFSET_Y
end

local frame, xOffset, yOffset, screenHeight, freeScreenHeight, leftMostPoint, column
local screenWidth = GetScreenWidth()
Expand All @@ -2053,9 +2059,9 @@ function Module.HookBags()

while (containerScale > CONTAINER_SCALE) do
screenHeight = GetScreenHeight() / containerScale
-- Adjust the start anchor for bags depending on the multibars
xOffset = CONTAINER_OFFSET_X / containerScale
yOffset = CONTAINER_OFFSET_Y / containerScale
-- Adjust the start anchor for bags depending on the multibars
xOffset = CONTAINER_OFFSET_X_DF / containerScale
yOffset = CONTAINER_OFFSET_Y_DF / containerScale
-- freeScreenHeight determines when to start a new column of bags
freeScreenHeight = screenHeight - yOffset
leftMostPoint = screenWidth - xOffset
Expand All @@ -2082,8 +2088,8 @@ function Module.HookBags()

screenHeight = GetScreenHeight() / containerScale
-- Adjust the start anchor for bags depending on the multibars
xOffset = CONTAINER_OFFSET_X / containerScale
yOffset = CONTAINER_OFFSET_Y / containerScale
xOffset = CONTAINER_OFFSET_X_DF / containerScale
yOffset = CONTAINER_OFFSET_Y_DF / containerScale
-- freeScreenHeight determines when to start a new column of bags
freeScreenHeight = screenHeight - yOffset
column = 0
Expand Down

0 comments on commit 5dadd95

Please sign in to comment.