Apply Patch

This commit is contained in:
2026-10-30 20:06:32 +00:00
parent 439156479a
commit 48d45f8fe6
57 changed files with 862 additions and 15212 deletions
+13 -1
View File
@@ -234,7 +234,19 @@ settings.load = function(self)
settings.category[category].text:SetAllPoints()
settings.category[category].text:SetText(category)
for title, module in ShaguTweaks.spairs(entries) do
local orderedTitles = {}
for title in ShaguTweaks.spairs(entries) do
if title ~= "Modern Class Colors" then table.insert(orderedTitles, title) end
end
if entries["Modern Class Colors"] then
local position = table.getn(orderedTitles) + 1
for i, title in ipairs(orderedTitles) do
if title == T["Unit Frame Class Colors"] then position = math.min(i + 2, position); break end
end
table.insert(orderedTitles, position, "Modern Class Colors")
end
for _, title in ipairs(orderedTitles) do
local module = entries[title]
if not settings.entries[title] then
settings.entries[title] = CreateFrame("CheckButton", "AdvancedSettingsGUI" .. title, settings.category[category], "OptionsCheckButtonTemplate")
settings.entries[title]:SetHeight(24)