Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion EllesmereUIQoL/EUI_QoL_Options.lua
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,18 @@ initFrame:SetScript("OnEvent", function(self)
if not EllesmereUIDB then EllesmereUIDB = {} end
EllesmereUIDB.ahCurrentExpansion = v
end },
{ type="toggle", text="Crafting Current Expansion Only",
tooltip="Automatically enables the 'Current Expansion Only' filter whenever you open the Place Crafter Order window.",
getValue=function()
return EllesmereUIDB and EllesmereUIDB.craftingCurrentExpansion or false
end,
setValue=function(v)
if not EllesmereUIDB then EllesmereUIDB = {} end
EllesmereUIDB.craftingCurrentExpansion = v
end }
); y = y - h

_, h = W:DualRow(parent, y,
{ type="toggle", text="Hide Talking Head",
tooltip="Hides the large NPC dialogue popup that appears during quests and dungeons.",
getValue=function()
Expand All @@ -236,7 +248,8 @@ initFrame:SetScript("OnEvent", function(self)
setValue=function(v)
if not EllesmereUIDB then EllesmereUIDB = {} end
EllesmereUIDB.hideTalkingHead = v
end }
end },
{ type="label", text="" }
); y = y - h

-- Row 5: Show Coordinates on Map (left, with cog) | empty
Expand Down Expand Up @@ -1243,6 +1256,7 @@ initFrame:SetScript("OnEvent", function(self)
EllesmereUIDB.quickSignup = false
EllesmereUIDB.persistSignupNote = false
EllesmereUIDB.ahCurrentExpansion = false
EllesmereUIDB.craftingCurrentExpansion = false
EllesmereUIDB.healthMacroEnabled = false
EllesmereUIDB.healthMacroPrio1 = 1
EllesmereUIDB.healthMacroPrio2 = 2
Expand Down
36 changes: 36 additions & 0 deletions EllesmereUIQoL/EllesmereUIQoL.lua
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,42 @@ qolFrame:SetScript("OnEvent", function(self)
end)
end

---------------------------------------------------------------------------
-- Crafting Current Expansion Only (Place Crafter Order window)
---------------------------------------------------------------------------
do
local hooked = false
local function HookBrowseFilters()
if hooked then return end
local browse = ProfessionsCustomerOrdersFrame and ProfessionsCustomerOrdersFrame.BrowseOrders
if not browse or not browse.SetDefaultFilters then return end
hooked = true
-- SetDefaultFilters runs every time the window opens (via Init), resetting
-- the filter table; re-apply Current Expansion Only afterward when enabled.
hooksecurefunc(browse, "SetDefaultFilters", function(self)
if not (EllesmereUIDB and EllesmereUIDB.craftingCurrentExpansion) then return end
if not (Enum and Enum.AuctionHouseFilter and Enum.AuctionHouseFilter.CurrentExpansionOnly) then return end
local fd = self.SearchBar and self.SearchBar.FilterDropdown
if fd and fd.filters then
fd.filters[Enum.AuctionHouseFilter.CurrentExpansionOnly] = true
end
end)
end

local coFrame = CreateFrame("Frame")
coFrame:RegisterEvent("ADDON_LOADED")
coFrame:SetScript("OnEvent", function(self, event, addonName)
if addonName == "Blizzard_ProfessionsCustomerOrders" then
self:UnregisterEvent("ADDON_LOADED")
HookBrowseFilters()
end
end)

if C_AddOns and C_AddOns.IsAddOnLoaded and C_AddOns.IsAddOnLoaded("Blizzard_ProfessionsCustomerOrders") then
HookBrowseFilters()
end
end

---------------------------------------------------------------------------
-- Auto Sell Junk + Auto Repair
---------------------------------------------------------------------------
Expand Down