diff --git a/src/Classes/ExtBuildListControl.lua b/src/Classes/ExtBuildListControl.lua index 3b89d62d..a8b63503 100644 --- a/src/Classes/ExtBuildListControl.lua +++ b/src/Classes/ExtBuildListControl.lua @@ -242,7 +242,8 @@ function ExtBuildListControlClass:Draw(viewPort, noTooltip) return end - if not main.showPublicBuilds then + --if not main.showPublicBuilds then + if true then return end @@ -284,7 +285,7 @@ function ExtBuildListControlClass:Draw(viewPort, noTooltip) end end - local function addSeperator(y, fillH) + local function addSeparator(y, fillH) y = y + 4 SetDrawColor(0.5, 0.5, 0.5) self:DrawImage(nil, x - 9, y, self.width() - (y > fillH and 2 or 115), 1) @@ -318,7 +319,7 @@ function ExtBuildListControlClass:Draw(viewPort, noTooltip) end -- decorator line - currentHeight = addSeperator(currentHeight, portraitHeight) + currentHeight = addSeparator(currentHeight, portraitHeight) -- main skill SetDrawColor(1, 1, 1) @@ -328,7 +329,7 @@ function ExtBuildListControlClass:Draw(viewPort, noTooltip) currentHeight = currentHeight + 20 end -- decorator line - currentHeight = addSeperator(currentHeight, portraitHeight) + currentHeight = addSeparator(currentHeight, portraitHeight) end -- author @@ -350,7 +351,7 @@ function ExtBuildListControlClass:Draw(viewPort, noTooltip) currentHeight = currentHeight + 16 -- decorator line - currentHeight = addSeperator(currentHeight, portraitHeight) + currentHeight = addSeparator(currentHeight, portraitHeight) -- stats local dpsText = "DPS: 0" @@ -386,7 +387,7 @@ function ExtBuildListControlClass:Draw(viewPort, noTooltip) self:DrawString(x + dpsWidth + lifeWidth + 40, currentHeight, "LEFT", 14, self.font, ehpText) currentHeight = currentHeight + 16 -- decorator line - currentHeight = addSeperator(currentHeight, portraitHeight) + currentHeight = addSeparator(currentHeight, portraitHeight) currentHeight = currentHeight - 5 end @@ -396,7 +397,7 @@ function ExtBuildListControlClass:Draw(viewPort, noTooltip) SetDrawColor(1, 1, 1) self:DrawString(x, currentHeight, "LEFT", 14, self.font, metadata.key .. ": " .. metadata.value) currentHeight = currentHeight + 16 - currentHeight = addSeperator(currentHeight, portraitHeight) + currentHeight = addSeparator(currentHeight, portraitHeight) end currentHeight = currentHeight - 4 end diff --git a/src/Modules/Build.lua b/src/Modules/Build.lua index f4e6e3f1..305e905f 100644 --- a/src/Modules/Build.lua +++ b/src/Modules/Build.lua @@ -350,14 +350,14 @@ function buildMode:Init(dbFileName, buildName, buildXML, convertBuild, importLin self.controls.buildLoadouts:SelByValue(value) end) - self.controls.similarBuilds = new("ButtonControl", {"LEFT",self.controls.buildLoadouts,"RIGHT"}, 8, 0, 100, 20, "Similar Builds", function() - self:OpenSimilarPopup() - end) - self.controls.similarBuilds.tooltipFunc = function(tooltip) - tooltip:Clear() - tooltip:AddLine(16, "Search for builds similar to your current character.") - tooltip:AddLine(16, "For best results, make sure to select your main item set, tree, and skills before opening the popup.") - end + --self.controls.similarBuilds = new("ButtonControl", {"LEFT",self.controls.buildLoadouts,"RIGHT"}, 8, 0, 100, 20, "Similar Builds", function() + -- self:OpenSimilarPopup() + --end) + --self.controls.similarBuilds.tooltipFunc = function(tooltip) + -- tooltip:Clear() + -- tooltip:AddLine(16, "Search for builds similar to your current character.") + -- tooltip:AddLine(16, "For best results, make sure to select your main item set, tree, and skills before opening the popup.") + --end -- List of display stats -- This defines the stats in the side bar, and also which stats show in node/item comparisons diff --git a/src/Modules/BuildList.lua b/src/Modules/BuildList.lua index 7678a58e..83fac2dd 100644 --- a/src/Modules/BuildList.lua +++ b/src/Modules/BuildList.lua @@ -21,7 +21,8 @@ function listMode:Init(selBuildName, subPath) self.subPath = subPath or self.subPath self.controls.buildList.controls.path:SetSubPath(self.subPath) self.controls.buildList:SelByFileName(selBuildName and selBuildName..".xml") - if main.showPublicBuilds then + --if main.showPublicBuilds then + if false then self.controls.ExtBuildList = self:getPublicBuilds() else self.controls.ExtBuildList = nil @@ -71,14 +72,16 @@ function listMode:Init(selBuildName, subPath) return main.screenH - 80 end local buildListWidth = function () - if main.showPublicBuilds then + --if main.showPublicBuilds then + if false then return math.min((main.screenW / 2), 900) else return 900 end end local buildListOffset = function () - if main.showPublicBuilds then + --if main.showPublicBuilds then + if false then local offset = math.min(450, main.screenW / 4) return offset - 450 else @@ -89,7 +92,8 @@ function listMode:Init(selBuildName, subPath) self.controls.buildList.width = buildListWidth self.controls.buildList.x = buildListOffset - if main.showPublicBuilds then + --if main.showPublicBuilds then + if false then self.controls.ExtBuildList = self:getPublicBuilds() end