Skip to content

Commit 754a11b

Browse files
committed
Remove UI elements too
1 parent 2be4616 commit 754a11b

File tree

1 file changed

+2
-29
lines changed

1 file changed

+2
-29
lines changed

src/Classes/ItemsTab.lua

Lines changed: 2 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -381,40 +381,13 @@ holding Shift will put it in the second.]])
381381
self.controls.displayItemSectionEnchant = new("Control", {"TOPLEFT",self.controls.displayItemSectionSockets,"BOTTOMLEFT"}, {0, 0, 0, function()
382382
return (self.controls.displayItemAnoint:IsShown() or self.controls.displayItemAnoint2:IsShown() or self.controls.displayItemCorrupt:IsShown() ) and 28 or 0
383383
end})
384-
self.controls.displayItemAnoint = new("ButtonControl", {"TOPLEFT",self.controls.displayItemSectionEnchant,"TOPLEFT",true}, {0, 0, 100, 20}, "Anoint...", function()
384+
self.controls.displayItemAnoint = new("ButtonControl", {"TOPLEFT",self.controls.displayItemSectionEnchant,"TOPLEFT"}, {0, 0, 100, 20}, "Anoint...", function()
385385
self:AnointDisplayItem(1)
386386
end)
387387
self.controls.displayItemAnoint.shown = function()
388388
return self.displayItem and (self.displayItem.base.type == "Amulet" or self.displayItem.canBeAnointed)
389389
end
390-
self.controls.displayItemAnoint2 = new("ButtonControl", {"TOPLEFT",self.controls.displayItemAnoint,"TOPRIGHT",true}, {8, 0, 100, 20}, "Anoint 2...", function()
391-
self:AnointDisplayItem(2)
392-
end)
393-
self.controls.displayItemAnoint2.shown = function()
394-
return self.displayItem and
395-
(self.displayItem.base.type == "Amulet" or self.displayItem.canBeAnointed) and
396-
self.displayItem.canHaveTwoEnchants and
397-
#self.displayItem.enchantModLines > 0
398-
end
399-
self.controls.displayItemAnoint3 = new("ButtonControl", {"TOPLEFT",self.controls.displayItemAnoint2,"TOPRIGHT",true}, {8, 0, 100, 20}, "Anoint 3...", function()
400-
self:AnointDisplayItem(3)
401-
end)
402-
self.controls.displayItemAnoint3.shown = function()
403-
return self.displayItem and
404-
(self.displayItem.base.type == "Amulet" or self.displayItem.canBeAnointed) and
405-
self.displayItem.canHaveThreeEnchants and
406-
#self.displayItem.enchantModLines > 1
407-
end
408-
self.controls.displayItemAnoint4 = new("ButtonControl", {"TOPLEFT",self.controls.displayItemAnoint3,"TOPRIGHT",true}, {8, 0, 100, 20}, "Anoint 4...", function()
409-
self:AnointDisplayItem(4)
410-
end)
411-
self.controls.displayItemAnoint4.shown = function()
412-
return self.displayItem and
413-
(self.displayItem.base.type == "Amulet" or self.displayItem.canBeAnointed) and
414-
self.displayItem.canHaveFourEnchants and
415-
#self.displayItem.enchantModLines > 2
416-
end
417-
self.controls.displayItemCorrupt = new("ButtonControl", {"TOPLEFT",self.controls.displayItemAnoint4,"TOPRIGHT",true}, {8, 10, 100, 20}, "Corrupt...", function()
390+
self.controls.displayItemCorrupt = new("ButtonControl", {"TOPLEFT",self.controls.displayItemAnoint,"TOPRIGHT",true}, {8, 0, 100, 20}, "Corrupt...", function()
418391
self:CorruptDisplayItem()
419392
end)
420393
self.controls.displayItemCorrupt.shown = function()

0 commit comments

Comments
 (0)