Skip to content
Open
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
10 changes: 10 additions & 0 deletions src/Classes/CompareTab.lua
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,7 @@ function CompareTabClass:InitControls()
-- ============================================================
self.controls.cmpSkillLabel = new("LabelControl", {"TOPLEFT", self.controls.subTabAnchor, "TOPLEFT"}, {0, -32, 0, 16}, "^7Skill:")
self.controls.cmpSkillLabel.shown = setsEnabled
self.controls.cmpSkillLabel.anchor.collapse = true

-- Socket group dropdown
self.controls.cmpSocketGroup = new("DropDownControl", {"LEFT", self.controls.cmpSkillLabel, "RIGHT"}, {4, 0, 200, 20}, {}, function(index, value)
Expand All @@ -355,6 +356,7 @@ function CompareTabClass:InitControls()
self.controls.cmpSocketGroup.shown = setsEnabled
self.controls.cmpSocketGroup.maxDroppedWidth = 500
self.controls.cmpSocketGroup.enableDroppedWidth = true
self.controls.cmpSocketGroup.anchor.collapse = true

-- Active skill within group
self.controls.cmpMainSkill = new("DropDownControl", {"LEFT", self.controls.cmpSocketGroup, "RIGHT"}, {4, 0, 225, 20}, {}, function(index, value)
Expand All @@ -368,6 +370,7 @@ function CompareTabClass:InitControls()
end
end)
self.controls.cmpMainSkill.shown = false
self.controls.cmpMainSkill.anchor.collapse = true

-- Skill part (multi-part skills)
self.controls.cmpSkillPart = new("DropDownControl", {"LEFT", self.controls.cmpMainSkill, "RIGHT"}, {4, 0, 200, 20}, {}, function(index, value)
Expand All @@ -385,10 +388,12 @@ function CompareTabClass:InitControls()
end
end)
self.controls.cmpSkillPart.shown = false
self.controls.cmpSkillPart.anchor.collapse = true

-- Stage count
self.controls.cmpStageCountLabel = new("LabelControl", {"LEFT", self.controls.cmpSkillPart, "RIGHT"}, {6, 0, 0, 16}, "^7Stages:")
self.controls.cmpStageCountLabel.shown = function() return self.controls.cmpStageCount.shown end
self.controls.cmpStageCountLabel.anchor.collapse = true
self.controls.cmpStageCount = new("EditControl", {"LEFT", self.controls.cmpStageCountLabel, "RIGHT"}, {4, 0, 52, 20}, "", nil, "%D", 5, function(buf)
local entry = self:GetActiveCompare()
if entry then
Expand All @@ -404,10 +409,12 @@ function CompareTabClass:InitControls()
end
end)
self.controls.cmpStageCount.shown = false
self.controls.cmpStageCount.anchor.collapse = true

-- Mine count
self.controls.cmpMineCountLabel = new("LabelControl", {"LEFT", self.controls.cmpStageCount, "RIGHT"}, {6, 0, 0, 16}, "^7Mines:")
self.controls.cmpMineCountLabel.shown = function() return self.controls.cmpMineCount.shown end
self.controls.cmpMineCountLabel.anchor.collapse = true
self.controls.cmpMineCount = new("EditControl", {"LEFT", self.controls.cmpMineCountLabel, "RIGHT"}, {4, 0, 52, 20}, "", nil, "%D", 5, function(buf)
local entry = self:GetActiveCompare()
if entry then
Expand All @@ -423,6 +430,7 @@ function CompareTabClass:InitControls()
end
end)
self.controls.cmpMineCount.shown = false
self.controls.cmpMineCount.anchor.collapse = true

-- Minion selector
self.controls.cmpMinion = new("DropDownControl", {"LEFT", self.controls.cmpMineCount, "RIGHT"}, {6, 0, 140, 20}, {}, function(index, value)
Expand All @@ -447,6 +455,7 @@ function CompareTabClass:InitControls()
end
end)
self.controls.cmpMinion.shown = false
self.controls.cmpMinion.anchor.collapse = true

-- Minion skill selector
self.controls.cmpMinionSkill = new("DropDownControl", {"LEFT", self.controls.cmpMinion, "RIGHT"}, {4, 0, 140, 20}, {}, function(index, value)
Expand All @@ -464,6 +473,7 @@ function CompareTabClass:InitControls()
end
end)
self.controls.cmpMinionSkill.shown = false
self.controls.cmpMinionSkill.anchor.collapse = true

-- ============================================================
-- Calcs view skill detail controls (per-build, independent of sidebar & regular Calcs tab)
Expand Down
Loading