Mercurial > wow > askmrrobot
diff CombatLog.lua @ 61:cf2b6b9a8337 v23
6.2 update, shopping list bug fixes, ui scale option
author | yellowfive |
---|---|
date | Tue, 23 Jun 2015 00:27:21 -0700 |
parents | 01b63b8ed811 |
children | e638168c3395 |
line wrap: on
line diff
--- a/CombatLog.lua Sun Jun 07 15:20:25 2015 -0700 +++ b/CombatLog.lua Tue Jun 23 00:27:21 2015 -0700 @@ -54,7 +54,7 @@ chkLfr:SetPoint("TOPLEFT", line.frame, "BOTTOMLEFT", w + 20, -30) container:AddChild(chkLfr) - return lbl + return lbl, chkNormal end -- renders the main UI for the Combat Log tab @@ -173,18 +173,20 @@ _autoChecks = {} -- go through all supported instances, rendering in a left->right pattern, 2 per row - local autoSections = {} + local autoLbls = {} + local autoChks = {} for i, instanceId in ipairs(Amr.InstanceIdsOrdered) do - local autoSection = renderAutoLogSection(instanceId, container) + local autoLbl, autoChk = renderAutoLogSection(instanceId, container) if i == 1 then - autoSection:SetPoint("TOPLEFT", _chkAutoAll.frame, "BOTTOMLEFT", -1, -15) + autoLbl:SetPoint("TOPLEFT", _chkAutoAll.frame, "BOTTOMLEFT", -1, -15) elseif i % 2 == 0 then - autoSection:SetPoint("TOPLEFT", autoSections[i - 1].frame, "TOPRIGHT", 40, 0) + autoLbl:SetPoint("TOPLEFT", autoLbls[i - 1].frame, "TOPRIGHT", 40, 0) else - autoSection:SetPoint("TOPLEFT", autoSections[i - 2].frame, "BOTTOMLEFT", 0, -15) + autoLbl:SetPoint("TOPLEFT", autoChks[i - 2].frame, "BOTTOMLEFT", 0, -30) end - table.insert(autoSections, autoSection) + table.insert(autoLbls, autoLbl) + table.insert(autoChks, autoChk) end autoSections = nil