Skip to content

Commit

Permalink
Preliminary 10.0 update
Browse files Browse the repository at this point in the history
  • Loading branch information
AcidWeb committed Oct 26, 2022
1 parent 60c8499 commit 34d9cc8
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 39 deletions.
38 changes: 21 additions & 17 deletions RECrystallize.lua
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,7 @@ function RE:OnEvent(self, event, ...)
hooksecurefunc("BattlePetToolTip_Show", function(speciesID, level, breedQuality, maxHealth, power, speed) RE:TooltipPetAddPrice(sFormat("|cffffffff|Hbattlepet:%s:%s:%s:%s:%s:%s:0000000000000000:0|h[XYZ]|h|r", speciesID, level, breedQuality, maxHealth, power, speed)) end)
hooksecurefunc("FloatingBattlePet_Show", function(speciesID, level, breedQuality, maxHealth, power, speed) RE:TooltipPetAddPrice(sFormat("|cffffffff|Hbattlepet:%s:%s:%s:%s:%s:%s:0000000000000000:0|h[XYZ]|h|r", speciesID, level, breedQuality, maxHealth, power, speed)) end)

--[[
local SetRecipeReagentItem = _G.GameTooltip.SetRecipeReagentItem
function _G.GameTooltip:SetRecipeReagentItem(...)
local link = GetRecipeReagentItemLink(...)
Expand All @@ -269,6 +270,7 @@ function RE:OnEvent(self, event, ...)
if link then return self:SetHyperlink(link) end
return SetRecipeResultItem(self, ...)
end
]]--

if ElvUI then
RE.IsSkinned = ElvUI[1].private.skins.blizzard.auctionhouse
Expand Down Expand Up @@ -376,24 +378,26 @@ function RE:Scan()
end
else
local item = Item:CreateFromItemID(itemID)
inProgress[item] = true

item:ContinueOnItemLoad(function()
count, quality, _, _, _, _, _, price, _, _, _, _, _, _, itemID, status = select(3, GetReplicateItemInfo(i))
inProgress[item] = nil
if status and count and price and itemID and type(quality) == "number" and count > 0 and price > 0 and itemID > 0 then
link = GetReplicateItemLink(i)
if link then
progress = progress + 1
RE.AHButton:SetText(progress.." / "..num)
RE.DBScan[i] = {["Price"] = price / count, ["ItemID"] = itemID, ["ItemLink"] = link, ["Quality"] = quality}
if not item:IsItemEmpty() then
inProgress[item] = true

item:ContinueOnItemLoad(function()
count, quality, _, _, _, _, _, price, _, _, _, _, _, _, itemID, status = select(3, GetReplicateItemInfo(i))
inProgress[item] = nil
if status and count and price and itemID and type(quality) == "number" and count > 0 and price > 0 and itemID > 0 then
link = GetReplicateItemLink(i)
if link then
progress = progress + 1
RE.AHButton:SetText(progress.." / "..num)
RE.DBScan[i] = {["Price"] = price / count, ["ItemID"] = itemID, ["ItemLink"] = link, ["Quality"] = quality}
end
end
end
if not next(inProgress) then
inProgress = {}
RE:EndScan()
end
end)
if not next(inProgress) then
inProgress = {}
RE:EndScan()
end
end)
end
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: 90207
## Interface: 100000
## Title: |cFF74D06CRE|rCrystallize
## Notes: Provide Auction House scanner and add item prices to tooltips.
## Version: 1.10.6
## Version: 1.11.0
## Author: AcidWeb
## SavedVariables: RECrystallizeSettings, RECrystallizeDatabase
## X-WoWI-ID: 25496
Expand Down
37 changes: 17 additions & 20 deletions TaintLess.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Ui><Script><![CDATA[--[[
TaintLess [20-10-19]
TaintLess [22-09-15]
https://www.townlong-yak.com/addons/taintless
All rights reserved.
Expand All @@ -19,14 +19,11 @@ local function purgeKey(t, k)
until issecurevariable(t, k)
end
-- https://www.townlong-yak.com/bugs/Mx7CWN-RefreshOverread
-- 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
hooksecurefunc("UIDropDownMenu_InitializeHelper", function()
if UIDD_REFRESH_OVERREAD_PATCH_VERSION ~= 3 then
return
end
for i=1, UIDROPDOWNMENU_MAXLEVELS do
for i=1, UIDD_REFRESH_OVERREAD_PATCH_VERSION == 3 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")
Expand All @@ -36,28 +33,28 @@ if (tonumber(UIDD_REFRESH_OVERREAD_PATCH_VERSION) or 0) < 3 then
end)
end
-- https://www.townlong-yak.com/bugs/Kjq4hm-DisplayModeTaint
-- https://www.townlong-yak.com/addons/taintless/fixes/DisplayModeTaint
if (tonumber(UIDROPDOWNMENU_OPEN_PATCH_VERSION) or 0) < 1 then
UIDROPDOWNMENU_OPEN_PATCH_VERSION = 1
hooksecurefunc("UIDropDownMenu_InitializeHelper", function(frame)
if UIDROPDOWNMENU_OPEN_PATCH_VERSION ~= 1 then
return
end
if UIDROPDOWNMENU_OPEN_MENU and UIDROPDOWNMENU_OPEN_MENU ~= frame
if UIDROPDOWNMENU_OPEN_PATCH_VERSION == 1
and UIDROPDOWNMENU_OPEN_MENU and UIDROPDOWNMENU_OPEN_MENU ~= frame
and not issecurevariable(UIDROPDOWNMENU_OPEN_MENU, "displayMode") then
purgeKey(_G, "UIDROPDOWNMENU_OPEN_MENU")
purgeKey(_G, "UIDROPDOWNMENU_OPEN_MENU")
end
end)
end
-- https://www.townlong-yak.com/bugs/gXwH4P-IOFrameSelection
if (tonumber(IOFRAME_SELECTION_PATCH_VERSION) or 0) < 1 then
IOFRAME_SELECTION_PATCH_VERSION = 1
InterfaceOptionsFrame:HookScript("OnHide", function()
if IOFRAME_SELECTION_PATCH_VERSION == 1 then
InterfaceOptionsFrameCategories.selection = nil
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
InterfaceOptionsFrame:HookScript("OnHide", function()
if IOFRAME_SELECTION_PATCH_VERSION == 3 then
InterfaceOptionsFrameCategories.selection = nil
end
end)
end
end
]]></Script></Ui>

0 comments on commit 34d9cc8

Please sign in to comment.