


Diff -git a/a b/a index c0a8ce4.1d24859 100644 - a/a +++ b/a -2,25 +2,26 local SousChef = SousChef local u = SousChef.Utility local m = SousChef.Media +- SousChef:UpdateProvisioningTable() adds the Quality checkbox to the provisioner window and overrides the filtering function to incorporate it function SousChef:UpdateProvisioningTable() - self.qualit圜heckBox = SousChef_ControllerOnlyQuality - local function OnFilterChanged() 圜hecked = ZO_CheckButton_IsChecked(self.qualit圜heckBox) PROVISIONER:DirtyRecipeTree() end + - set up the quality checkbox + self.qualit圜heckBox = SousChef_ControllerOnlyQuality self.qualit圜heckBox:SetParent(ZO_ProvisionerTopLevel) ZO_CheckButton_SetLabelText(self.qualit圜heckBox, "Quality") ZO_CheckButton_SetToggleFunction(self.qualit圜heckBox, OnFilterChanged) ZO_CraftingUtils_ConnectCheckBoxToCraftingProcess(self.qualit圜heckBox) ZO_CheckButton_SetCheckState(self.qualit圜heckBox, 圜hecked) - Nudge to the left + - make room for the checkbox ZO_ProvisionerTopLevelHaveSkills:ClearAnchors() ZO_ProvisionerTopLevelHaveSkills:SetAnchor( LEFT, ZO_ProvisionerTopLevelHaveIngredients, RIGHT, 180 ) + - incorporate new checkbox into the filter SousChef.filter = PROVISIONER.DoesRecipePassFilter - PROVISIONER.DoesRecipePassFilter = function(control, specialIngredientType, numCreatable, provisionerLevelReq, qualityReq) if ZO_CheckButton_IsChecked(self.qualit圜heckBox) and qualityReq ") - menubtn.window = wm:CreateTopLevelWindow(controlName."Window") - local window = menubtn.window -window:SetParent(menubtn) - window:SetAnchor(TOPLEFT, menubtn, TOPRIGHT) - window:SetDimensions(555, 300) - window:SetClampedToScreen(true) - window:SetClampedToScreenInsets(-5, -20, 5, 5) - window.bg = wm:CreateControlFromVirtual(controlName."WindowBG", window, "ZO_DefaultBackdrop") - window:SetHidden(true) - ttings = wm:CreateControlFromVirtual(controlName."WindowSettings", window, "ZO_ScrollContainer") - local settings = ttings - settings:SetAnchor(TOPLEFT, window, TOPLEFT, 10, 10) - settings:SetAnchor(BOTTOMRIGHT, window, BOTTOMRIGHT, -5, -5) - local scroll = settings:GetNamedChild("ScrollChild") - scroll.panel = panelID - btn:SetHandler("OnClicked", function() - if window:IsHidden() then -if this submenu isn't open yet, then.
