Skip to content

Commit be9e770

Browse files
author
LocalIdentity
committed
Remove 'Find Timeless Jewel" button
The find timeless jewel button doesn't need to show at the bottom of the tree unless we figure out the function GGG uses to generate the mods on the tree for each seed.
1 parent 6bd949b commit be9e770

File tree

2 files changed

+248
-8
lines changed

2 files changed

+248
-8
lines changed

src/Classes/TreeTab.lua

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ local TreeTabClass = newClass("TreeTab", "ControlHost", function(self, build)
143143
t_insert(self.treeVersions, value)
144144
end
145145
self.controls.versionText = new("LabelControl", { "LEFT", self.controls.reset, "RIGHT" }, { 8, 0, 0, 16 }, "Version:")
146-
self.controls.versionSelect = new("DropDownControl", { "LEFT", self.controls.versionText, "RIGHT" }, { 8, 0, 100, 20 }, self.treeVersions, function(index, selected)
146+
self.controls.versionSelect = new("DropDownControl", { "LEFT", self.controls.versionText, "RIGHT" }, { 8, 0, 60, 20 }, self.treeVersions, function(index, selected)
147147
if selected.value ~= self.build.spec.treeVersion then
148148
self:OpenVersionConvertPopup(selected.value, true)
149149
end
@@ -162,12 +162,13 @@ local TreeTabClass = newClass("TreeTab", "ControlHost", function(self, build)
162162

163163
self.tradeLeaguesList = { }
164164
-- Find Timeless Jewel Button
165-
self.controls.findTimelessJewel = new("ButtonControl", { "LEFT", self.controls.treeSearch, "RIGHT" }, { 8, 0, 150, 20 }, "Find Timeless Jewel", function()
166-
self:FindTimelessJewel()
167-
end)
165+
-- Add button back if/when we figure out how to serch for them again
166+
--self.controls.findTimelessJewel = new("ButtonControl", { "LEFT", self.controls.treeSearch, "RIGHT" }, { 8, 0, 150, 20 }, "Find Timeless Jewel", function()
167+
--self:FindTimelessJewel()
168+
--end)
168169

169170
-- Show Node Power Checkbox
170-
self.controls.treeHeatMap = new("CheckBoxControl", { "LEFT", self.controls.findTimelessJewel, "RIGHT" }, { 130, 0, 20 }, "Show Node Power:", function(state)
171+
self.controls.treeHeatMap = new("CheckBoxControl", { "LEFT", self.controls.treeSearch, "RIGHT" }, { 130, 0, 20 }, "Show Node Power:", function(state)
171172
self.viewer.showHeatMap = state
172173
self.controls.treeHeatMapStatSelect.shown = state
173174

@@ -330,7 +331,7 @@ function TreeTabClass:Draw(viewPort, inputEvents)
330331
+ (self.isComparing and (self.controls.compareSelect.width + self.controls.compareSelect.x) or 0)
331332

332333
local widthSecondLineControls = self.controls.treeSearch.width + 8
333-
+ self.controls.findTimelessJewel.width + self.controls.findTimelessJewel.x
334+
--+ self.controls.findTimelessJewel.width + self.controls.findTimelessJewel.x
334335
+ self.controls.treeHeatMap.width + 130
335336
+ self.controls.nodePowerMaxDepthSelect.width + self.controls.nodePowerMaxDepthSelect.x
336337
+ (self.isCustomMaxDepth and (self.controls.nodePowerMaxDepthCustom.width + self.controls.nodePowerMaxDepthCustom.x) or 0)
@@ -348,8 +349,9 @@ function TreeTabClass:Draw(viewPort, inputEvents)
348349
end
349350

350351
-- Check second line
352+
-- Revert comments if we add back find Timeless Jewel function
351353
if viewPort.width >= widthSecondLineControls + rightMargin then
352-
self.controls.treeHeatMap:SetAnchor("LEFT", self.controls.findTimelessJewel, "RIGHT", 130, 0)
354+
self.controls.treeHeatMap:SetAnchor("LEFT", self.controls.treeSearch, "RIGHT", 130, 0)
353355
else
354356
linesHeight = linesHeight * 2
355357
self.controls.treeHeatMap:SetAnchor("TOPLEFT", self.controls.treeSearch, "BOTTOMLEFT", 124, 4)

0 commit comments

Comments
 (0)