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
16 changes: 12 additions & 4 deletions src/Classes/ItemsTab.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2215,9 +2215,15 @@ function ItemsTabClass:CorruptDisplayItem(modType)
buildImplicitList("ScourgeDownside")
controls.implicit3Label.shown = true
controls.implicit3.shown = true
main.popups[1].height = 147
controls.close.y = 117
controls.save.y = 117
if self.displayItem.rarity == "UNIQUE" or self.displayItem.rarity == "RELIC" then
controls.implicit4Label.shown = true
controls.implicit4.shown = true
main.popups[1].height = 165
controls.close.y = 135
controls.save.y = 135
end
controls.implicit2.y = 85
buildList(controls.implicit3, controls.implicit4, "ScourgeDownside")
Expand All @@ -2229,6 +2235,9 @@ function ItemsTabClass:CorruptDisplayItem(modType)
controls.implicit4Label.shown = false
controls.implicit4.shown = false
controls.implicit2.y = 65
main.popups[1].height = 129
controls.close.y = 99
controls.save.y = 99
end
buildList(controls.implicit, controls.implicit2, currentModType)
buildList(controls.implicit2, controls.implicit, currentModType)
Expand Down Expand Up @@ -2260,19 +2269,18 @@ function ItemsTabClass:CorruptDisplayItem(modType)
controls.implicit4.shown = false
buildList(controls.implicit, controls.implicit2, currentModType)
buildList(controls.implicit2, controls.implicit, currentModType)
controls.save = new("ButtonControl", nil, -45, 135, 80, 20, modType, function()
controls.save = new("ButtonControl", nil, -45, 99, 80, 20, modType, function()
self:SetDisplayItem(corruptItem())
main:ClosePopup()
end)
controls.save.tooltipFunc = function(tooltip)
tooltip:Clear()
self:AddItemTooltip(tooltip, corruptItem(), nil, true)
end
controls.close = new("ButtonControl", nil, 45, 135, 80, 20, "Cancel", function()
controls.close = new("ButtonControl", nil, 45, 99, 80, 20, "Cancel", function()
main:ClosePopup()
end)
-- how do I access this to resize it?
main:OpenPopup(540, 165, modType .. " Item", controls)
main:OpenPopup(540, 129, modType .. " Item", controls)
end

-- Opens the custom modifier popup
Expand Down