Skip to content
Open
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 @@ -1307,6 +1307,14 @@ function ItemsTabClass:Draw(viewPort, inputEvents)

self:UpdateSockets()

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
self.controls.scrollBarH:Draw(viewPort)
Expand Down Expand Up @@ -1424,10 +1432,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
end

-- Returns the slot control and equipped jewel for the given node ID
Expand Down