Skip to content

Commit

Permalink
10.1.5 update
Browse files Browse the repository at this point in the history
  • Loading branch information
AcidWeb committed Jul 12, 2023
1 parent 886d4db commit 6c5c913
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 39 deletions.
5 changes: 3 additions & 2 deletions RECrystallize.lua
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,9 @@ function RE:OnEvent(self, event, ...)
RE.WarningTimer:Cancel()
end
elseif event == "ADDON_LOADED" and ... == "RECrystallize" then
self:UnregisterEvent("ADDON_LOADED")
ProfessionsFrame_LoadUI()

if not _G.RECrystallizeDatabase then
_G.RECrystallizeDatabase = {}
end
Expand Down Expand Up @@ -289,8 +292,6 @@ function RE:OnEvent(self, event, ...)
else
RE.IsSkinned = false
end

self:UnregisterEvent("ADDON_LOADED")
end
end

Expand Down
4 changes: 2 additions & 2 deletions RECrystallize.toc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## Interface: 100100
## Interface: 100105
## Title: |cFF74D06CRE|rCrystallize
## Notes: Provide Auction House scanner and add item prices to tooltips.
## Version: 2.0.2
## Version: 2.0.3
## Author: AcidWeb
## SavedVariables: RECrystallizeSettings, RECrystallizeDatabase
## IconTexture: Interface\AddOns\RECrystallize\RELogo
Expand Down
98 changes: 63 additions & 35 deletions TaintLess.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Ui><Script><![CDATA[--[[
TaintLess [22-11-27]
TaintLess [23-05-18]
https://www.townlong-yak.com/addons/taintless
All rights reserved.
Expand Down Expand Up @@ -33,51 +33,74 @@ local function purgeKey(t, k)
end
end
local patch do
local q, skips = {}, securecall(function()
local cb, r, _, an = select(4,GetBuildInfo()), {moon="haunted"}
r.moon, _, an = nil, issecurevariable(r, "moon")
for m, v, clo, chi in (GetAddOnMetadata(an, "X-TaintLess-DisableMitigations") or ""):gmatch("([%a_]+)=(%d+):?(%d*):?(%d*)") do
if (clo == "" or cb >= clo+0) and (chi == "" or chi+0 >= cb) then
r[m] = v + 0
end
end
return r
end)
function patch(name, version, impl)
if name == nil then
for qf, v in pairs(q) do
securecall(qf, v)
end
elseif not ((tonumber(_G[name]) or 0) >= version or skips and skips[name] == version) then
_G[name], q[impl] = version, version
end
end
end
-- https://www.townlong-yak.com/addons/taintless/fixes/RefreshOverread
if (tonumber(UIDD_REFRESH_OVERREAD_PATCH_VERSION) or 0) < 3 then
UIDD_REFRESH_OVERREAD_PATCH_VERSION = 3
patch("UIDD_REFRESH_OVERREAD_PATCH_VERSION", 3, function(V)
hooksecurefunc("UIDropDownMenu_InitializeHelper", function()
for i=1, UIDD_REFRESH_OVERREAD_PATCH_VERSION == 3 and UIDROPDOWNMENU_MAXLEVELS or 0 do
for i=1, UIDD_REFRESH_OVERREAD_PATCH_VERSION == V and UIDROPDOWNMENU_MAXLEVELS or 0 do
for j=1+_G["DropDownList" .. i].numButtons, UIDROPDOWNMENU_MAXBUTTONS do
local b, _ = _G["DropDownList" .. i .. "Button" .. j]
_ = issecurevariable(b, "checked") or purgeKey(b, "checked")
_ = issecurevariable(b, "notCheckable") or purgeKey(b, "notCheckable")
end
end
end)
end
end)
-- https://www.townlong-yak.com/addons/taintless/fixes/DisplayModeTaint
if (tonumber(UIDROPDOWNMENU_OPEN_PATCH_VERSION) or 0) < 1 then
UIDROPDOWNMENU_OPEN_PATCH_VERSION = 1
patch("UIDROPDOWNMENU_OPEN_PATCH_VERSION", 1, function(V)
hooksecurefunc("UIDropDownMenu_InitializeHelper", function(frame)
if UIDROPDOWNMENU_OPEN_PATCH_VERSION == 1
if UIDROPDOWNMENU_OPEN_PATCH_VERSION == V
and UIDROPDOWNMENU_OPEN_MENU and UIDROPDOWNMENU_OPEN_MENU ~= frame
and not issecurevariable(UIDROPDOWNMENU_OPEN_MENU, "displayMode") then
purgeKey(_G, "UIDROPDOWNMENU_OPEN_MENU")
end
end)
end
end)
-- https://www.townlong-yak.com/addons/taintless/fixes/IOFrameSelection
if (tonumber(IOFRAME_SELECTION_PATCH_VERSION) or 0) < 3 then
IOFRAME_SELECTION_PATCH_VERSION = 3
if InterfaceOptionsFrame then
patch("IOFRAME_SELECTION_PATCH_VERSION", 5, function(V)
if type(InterfaceOptionsFrame) == "table" and type(InterfaceOptionsFrame.HookScript) == "function" then
InterfaceOptionsFrame:HookScript("OnHide", function()
if IOFRAME_SELECTION_PATCH_VERSION == 3 then
if IOFRAME_SELECTION_PATCH_VERSION == V then
InterfaceOptionsFrameCategories.selection = nil
end
end)
end
end
end)
-- https://www.townlong-yak.com/addons/taintless/fixes/EditModeOpenDrop
if EditModeManagerFrame and FriendsFrameStatusDropDown and (tonumber(EDITMAN_OPENDROP_PATCH_VERSION) or 0) < 1 then
EDITMAN_OPENDROP_PATCH_VERSION = 1
patch("EDITMAN_OPENDROP_PATCH_VERSION", 3, function(V)
if not (type(EditModeManagerFrame) == "table" and
type(EditModeManagerFrame.GetAttribute) == "function" and
type(FriendsFrameStatusDropDown) == "table") then
return
end
hooksecurefunc(EditModeManagerFrame, "GetAttribute", function(_, attr)
if attr ~= "UIPanelLayout-checkFit" or EDITMAN_OPENDROP_PATCH_VERSION ~= 1
or (issecurevariable(DropDownList1, "maxWidth") and issecurevariable("UIDROPDOWNMENU_MENU_LEVEL")) then
elseif InCombatLockdown() and FriendsFrameStatusDropDown:IsProtected() then
if attr ~= "UIPanelLayout-checkFit" or EDITMAN_OPENDROP_PATCH_VERSION ~= V
or (issecurevariable(DropDownList1, "maxWidth") and issecurevariable("UIDROPDOWNMENU_MENU_LEVEL"))
or InCombatLockdown() and FriendsFrameStatusDropDown:IsProtected() then
elseif FriendsFrameStatusDropDown:IsVisible() then
FriendsFrameStatusDropDown:Hide()
FriendsFrameStatusDropDown:Show()
Expand All @@ -91,40 +114,45 @@ if EditModeManagerFrame and FriendsFrameStatusDropDown and (tonumber(EDITMAN_OPE
FriendsFrameStatusDropDown:SetParent(op)
end
end)
end
end)
-- https://www.townlong-yak.com/addons/taintless/fixes/ObjectiveTrackerUpdate
if ObjectiveTrackerFrame and (tonumber(OBJTRACK_DELAYUPDATE_PATCH_VERSION) or 0) < 1 then
OBJTRACK_DELAYUPDATE_PATCH_VERSION = 1
patch("OBJTRACK_DELAYUPDATE_PATCH_VERSION", 3, function(V)
if not (type(ObjectiveTrackerFrame) == "table" and
type(ObjectiveTrackerFrame.HeaderMenu) == "table" and
type(ObjectiveTrackerFrame.HeaderMenu.Title) == "table") then
return
end
local counter, didDelayUpdate, delayFrameCount = (CreateFrame("Frame", nil, ObjectiveTrackerFrame))
counter:Hide()
counter:SetScript("OnUpdate", function()
if OBJTRACK_DELAYUPDATE_PATCH_VERSION == 1 then
if OBJTRACK_DELAYUPDATE_PATCH_VERSION == V and delayFrameCount then
delayFrameCount = delayFrameCount + 1
else
counter:Hide()
end
end)
hooksecurefunc("ObjectiveTracker_Update", function()
if OBJTRACK_DELAYUPDATE_PATCH_VERSION == 1 and didDelayUpdate then
if OBJTRACK_DELAYUPDATE_PATCH_VERSION == V and didDelayUpdate then
didDelayUpdate = nil
purgeKey(ObjectiveTrackerFrame, "isUpdating")
end
end)
hooksecurefunc(ObjectiveTrackerFrame.HeaderMenu.Title, "ClearAllPoints", function()
if OBJTRACK_DELAYUPDATE_PATCH_VERSION == 1 and not ObjectiveTrackerFrame.isUpdating then
if issecurevariable(ObjectiveTrackerFrame, "isOnLeftSideOfScreen") then
if delayFrameCount then
delayFrameCount = nil
counter:Hide()
end
elseif (delayFrameCount or 0) < 4 then
ObjectiveTrackerFrame.isUpdating, didDelayUpdate, delayFrameCount = 86, 1, delayFrameCount or 0
counter:Show()
else
if OBJTRACK_DELAYUPDATE_PATCH_VERSION ~= V or ObjectiveTrackerFrame.isUpdating then
elseif issecurevariable(ObjectiveTrackerFrame, "isOnLeftSideOfScreen") then
if delayFrameCount then
delayFrameCount = nil
counter:Hide()
end
elseif 4 > (delayFrameCount or 0) then
ObjectiveTrackerFrame.isUpdating, didDelayUpdate, delayFrameCount = 86, 1, delayFrameCount or 0
counter:Show()
else
counter:Hide()
end
end)
end
end)
patch()
]]></Script></Ui>

0 comments on commit 6c5c913

Please sign in to comment.