Remove remote build list functionality pending redesign (#7995)

* Remove remote build list functionality pending redesign

* Fix spelling
This commit is contained in:
Wires77
2024-07-28 14:54:52 -05:00
committed by GitHub
parent 0a64c94dfa
commit 170617876b
3 changed files with 24 additions and 19 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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