From af98abc0b9d03504525324e411575dd3772d7880 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Jastrz=C4=99bski?= Date: Wed, 17 Jan 2024 08:25:34 +0100 Subject: [PATCH] TOC bump --- REFlex.lua | 2 +- REFlex.toc | 4 ++-- TaintLess.xml | 30 ++++++++++++++++++++++++++++++ 3 files changed, 33 insertions(+), 3 deletions(-) diff --git a/REFlex.lua b/REFlex.lua index 3d8da00..2cfad4b 100644 --- a/REFlex.lua +++ b/REFlex.lua @@ -63,7 +63,7 @@ local SendAddonMessage = _G.C_ChatInfo.SendAddonMessage local PlaySound = _G.PlaySound local ElvUI = _G.ElvUI -RE.Version = 3311 +RE.Version = 3312 RE.LastSquash = 1602662400 RE.FoundNewVersion = false diff --git a/REFlex.toc b/REFlex.toc index 8f244b0..6576e1e 100644 --- a/REFlex.toc +++ b/REFlex.toc @@ -1,7 +1,7 @@ -## Interface: 100200 +## Interface: 100205 ## Title: |cFF74D06CRE|rFlex ## Notes: Collect statistics of played arena matches and battlegrounds. -## Version: 3.3.11 +## Version: 3.3.12 ## Author: AcidWeb ## SavedVariablesPerCharacter: REFlexSettings, REFlexDatabase, REFlexHonorDatabase ## AddonCompartmentFunc: REFlex_CompartmentOnClick diff --git a/TaintLess.xml b/TaintLess.xml index d6fdc05..1464301 100644 --- a/TaintLess.xml +++ b/TaintLess.xml @@ -122,4 +122,34 @@ patch("OBJTRACK_DELAYUPDATE_PATCH_VERSION", 5, function(V) end) end) +-- https://www.townlong-yak.com/addons/taintless/fixes/CUFProfilesSetSelectedValue +patch("CUF_PROFILE_ACTIVATE_PATCH_VERSION", 1, function(V) + if not (type(SetActiveRaidProfile) == "function" and type(CompactUnitFrameProfiles) == "table" and + type(ScriptErrorsFrameMixin) == "table" and type(ScriptErrorsFrameMixin.DisplayMessageInternal) == "function") then + return + end + local o, dd = {}, CreateFrame("Frame") do + local s, sk, sv = 1, {"seen", "order", "order", "count"}, {{}, {}, newproxy(true), _G} + getmetatable(sv[3]).__len = function() + return "UIDROPDOWNMENU_MENU_LEVEL" + end + setmetatable(o, {__index=function(t,k) + s, sv[2][1] = k == sk[s] and s+1 or 1 + return sv[s-1] + end}) + function dd.initialize() end + dd:Hide() + end + hooksecurefunc("SetActiveRaidProfile", function() + if CUF_PROFILE_ACTIVATE_PATCH_VERSION ~= V or + (issecurevariable("UIDROPDOWNMENU_MENU_LEVEL") and issecurevariable(DropDownList1, "numButtons")) then + return + end + pcall(UIDropDownMenu_InitializeHelper, dd) + purgeKey(_G, "UIDROPDOWNMENU_OPEN_MENU") + purgeKey(_G, "UIDROPDOWNMENU_INIT_MENU") + pcall(ScriptErrorsFrameMixin.DisplayMessageInternal, o, "", 0, 0, 0, "") + end) +end) + ]]> \ No newline at end of file