Refactor progress handling

probably some regressions
This commit is contained in:
NoM0Re
2025-01-22 03:37:10 +01:00
parent a643b275ba
commit 23c7da5ea6
29 changed files with 2037 additions and 1263 deletions
@@ -39,16 +39,18 @@ local methods = {
if mode == "one" then
self.firstDropdown.frame:Show()
self.secondDropDown.frame:Hide()
self.firstDropdown.frame:SetAllPoints(self.frame)
self.firstDropdown.frame:ClearAllPoints()
self.firstDropdown.frame:SetPoint("TOPLEFT", self.frame)
self.firstDropdown.frame:SetPoint("TOPRIGHT", self.frame)
else
local halfWidth = self.frame:GetWidth() / 2
self.firstDropdown.frame:Show()
self.secondDropDown.frame:Show()
self.firstDropdown.frame:ClearAllPoints()
self.firstDropdown.frame:SetPoint("TOPLEFT", self.frame)
self.firstDropdown.frame:SetPoint("BOTTOMRIGHT", self.frame, "BOTTOMLEFT", halfWidth, 0)
self.firstDropdown.frame:SetPoint("TOPRIGHT", self.frame, "TOPLEFT", halfWidth, 0)
self.secondDropDown.frame:SetPoint("TOPLEFT", self.frame, halfWidth, 0)
self.secondDropDown.frame:SetPoint("BOTTOMRIGHT", self.frame, "BOTTOMRIGHT")
self.secondDropDown.frame:SetPoint("TOPRIGHT", self.frame, "TOPRIGHT")
end
end,
["OnAcquire"] = function(widget)
@@ -154,8 +156,11 @@ local methods = {
self.firstDropdown = nil
self.secondDropDown = nil
end,
["SetLabel"] = function(self, ...)
self.firstDropdown:SetLabel(...)
["SetLabel"] = function(self, v)
if v == "" then
v = " "
end
self.firstDropdown:SetLabel(v)
end,
["SetValue"] = function(self, value)
for displayName, treeValue in pairs(self.userdata.tree) do