Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions src/Classes/ItemsTab.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1309,6 +1309,14 @@ function ItemsTabClass:Draw(viewPort, inputEvents)
-- Update weapon slots in case we got Giant's Blood from somewhere
self.slots["Weapon 2"]:Populate()
self.slots["Weapon 2 Swap"]:Populate()

if main.portraitMode then
self.controls.itemList:SetAnchor("TOPRIGHT", self.lastSlot, "BOTTOMRIGHT", 0, 40)
else
self.controls.itemList:SetAnchor("TOPLEFT", self.controls.setManage, "TOPRIGHT", 20, 20)
end
self.controls.craftDisplayItem:SetAnchor("TOPLEFT", main.portraitMode and self.controls.setManage or self.controls.itemList, "TOPRIGHT", 20, main.portraitMode and 0 or -20)
self.anchorDisplayItem:SetAnchor("TOPLEFT", main.portraitMode and self.controls.setManage or self.controls.itemList, "TOPRIGHT", 20, main.portraitMode and 0)

self:DrawControls(viewPort)
if self.controls.scrollBarH:IsShown() then
Expand Down Expand Up @@ -1427,10 +1435,6 @@ function ItemsTabClass:UpdateSockets()
self.sockets[nodeId].label = "Socket #"..index
self.lastSlot = self.sockets[nodeId]
end

if main.portraitMode then
self.controls.itemList:SetAnchor("TOPRIGHT",self.lastSlot,"BOTTOMRIGHT", 0, 40)
end
self.initSockets = false
end

Expand Down
Loading