Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hide legacy Tattoos from dropdown by default #8122

Merged
merged 4 commits into from
Aug 14, 2024
Merged
Show file tree
Hide file tree
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
9 changes: 8 additions & 1 deletion src/Classes/TreeTab.lua
Original file line number Diff line number Diff line change
Expand Up @@ -744,7 +744,7 @@ function TreeTabClass:ModifyNodePopup(selectedNode)
if (nodeName:match(node.targetType:gsub("^Small ", "")) or (node.targetValue ~= "" and nodeValue:match(node.targetValue)) or
(node.targetType == "Small Attribute" and (nodeName == "Intelligence" or nodeName == "Strength" or nodeName == "Dexterity"))
or (node.targetType == "Keystone" and treeNodes[selectedNode.id].type == node.targetType))
and node.MinimumConnected <= numLinkedNodes then
and node.MinimumConnected <= numLinkedNodes and (node.legacy == false or node.legacy == self.showLegacyTattoo) then
local combine = false
for id, desc in pairs(node.stats) do
combine = (id:match("^local_display.*") and #node.stats == (#node.sd - 1)) or combine
Expand Down Expand Up @@ -846,6 +846,13 @@ function TreeTabClass:ModifyNodePopup(selectedNode)
controls.totalTattoos = new("LabelControl", nil, 0, 95, 0, 16, "^7Tattoo Count: ".. getTattooCount() .."/50" )
main:OpenPopup(600, 105, "Replace Modifier of Node", controls, "save")
constructUI(modGroups[1])

-- Show Legacy Tattoos
controls.showLegacyTattoo = new("CheckBoxControl", { "LEFT", controls.totalTattoos, "RIGHT" }, 205, 0, 20, "Show Legacy Tattoos:", function(state)
self.showLegacyTattoo = state
buildMods(selectedNode)
end)
controls.showLegacyTattoo.state = self.showLegacyTattoo
end

function TreeTabClass:SaveMasteryPopup(node, listControl)
Expand Down
Loading
Loading