Skip to content
Open
Show file tree
Hide file tree
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
9 changes: 9 additions & 0 deletions src/Classes/ItemsTab.lua
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,15 @@ holding Shift will put it in the second.]])
self:SetDisplayItem()
end)

self.controls.displayItemBuySimilar = new("ButtonControl",
{ "LEFT", self.controls.removeDisplayItem, "RIGHT", true },
{ 8, 0, 100, 20 }, "Buy similar", function()
local itemSlot = self:GetComparisonSlotNameForItem(self.displayItem)
buySimilar.openPopup(self.displayItem, itemSlot, self.build)
end)
self.controls.displayItemBuySimilar.shown = function()
return self.displayItem
end
-- Section: Variant(s)

self.controls.displayItemSectionVariant = new("Control", {"TOPLEFT",self.controls.addDisplayItem,"BOTTOMLEFT"}, {0, 8, 0, function()
Expand Down
9 changes: 9 additions & 0 deletions src/Classes/ItemsTab.lua.rej
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
diff a/src/Classes/ItemsTab.lua b/src/Classes/ItemsTab.lua (rejected hunks)
@@ -14,6 +14,7 @@ local m_min = math.min
local m_ceil = math.ceil
local m_floor = math.floor
local m_modf = math.modf
+local buySimilar = LoadModule("Classes/CompareBuySimilar")

local gemTooltip = LoadModule("Classes/GemTooltip")
local rarityDropList = {