getglobal(this:GetName() .. "ItemHighlight"):SetDesaturated(true) getglobal(this:GetName() .. "Background"):SetVertexColor(0.0, 0.0, 0.75, 0.5) getglobal(this:GetName() .. "SparkTexture"):SetVertexColor(0.0, 0.0, 0.75, 1) this.Sort = "Category" ATSW_SortCheckbox_OnClick() this.Sort = "Difficulty" ATSW_SortCheckbox_OnClick() this.Sort = "Name" ATSW_SortCheckbox_OnClick() this.Sort = "Custom" ATSW_SortCheckbox_OnClick() this:ClearFocus() this:ClearFocus() local text = this:GetText() ATSWSearchBox_OnTextChanged(text) if text == "" then ATSWSearchBoxClear:Hide() else ATSWSearchBoxClear:Show() ATSWSearchLabel:Hide() ATSWSearchIcon:Hide() end local text = this:GetText() this:HighlightText(0, 0) if text == "" then ATSWSearchLabel:Show() ATSWSearchIcon:Show() else ATSWSearchLabel:Hide() ATSWSearchIcon:Hide() end this:HighlightText() ATSWSearchLabel:Hide() ATSWSearchIcon:Hide() if this:GetChecked() then PlaySound("igMainMenuOptionCheckBoxOn") else PlaySound("igMainMenuOptionCheckBoxOff") end ATSW_ShowAttributes(this:GetChecked() and true or false) if ATSWFrame:IsVisible() then ATSW_UpdateRecipes() end PlaySound("igMainMenuOption") ATSWSearchHelpButton:SetButtonState("PUSHED", true) PlaySound("igMainMenuOptionCheckBoxOn") ATSWSearchHelpButton:SetButtonState("NORMAL", false) ATSWSubClassDropDown_OnLoad() ATSWSubClassDropDown_OnShow() ATSWInvSlotDropDown_OnLoad() ATSWInvSlotDropDown_OnShow() this:SetAlpha(0.7) this:ClearFocus() this:ClearFocus() ATSW_UpdateCreateButton() if this:GetNumber() == 0 then ATSWAmountBox:SetText(ATSW_ALL) elseif this:GetNumber()>100 then this:SetNumber(100) end ATSW_Amount[ATSW_realm][ATSW_player][ATSW_Profession[ATSW_realm][ATSW_player]] = this:GetNumber() this:HighlightText(0, 0) this:HighlightText() if arg1 == 1 then --Up ATSWFrameIncrement_OnClick() elseif arg1 == -1 then --Down ATSWFrameDecrement_OnClick() end SetCursor("Interface\\AddOns\\AdvancedTradeSkillWindow2\\Textures\\MouseWheelCursor") ResetCursor() ATSW_OnLoad() ATSW_OnEvent() if not ATSW_SwitchingFrames then CloseATSW() end ATSW_OnUpdate(arg1) PlaySound("igMainMenuOption") ATSWReagentsButton:SetButtonState("PUSHED", true) PlaySound("igMainMenuOptionCheckBoxOn") ATSWReagentsButton:SetButtonState("NORMAL", false) if this:GetChecked() then PlaySound("igMainMenuOptionCheckBoxOn") ATSW_Options.Unified=true ATSWOFSeparateButton:SetChecked(false) end if ATSWFrame:IsVisible() then ATSW_UpdateRecipes() end this:SetChecked() if this:GetChecked() then PlaySound("igMainMenuOptionCheckBoxOn") ATSW_Options.Unified=false ATSWOFUnifiedButton:SetChecked(false) end if ATSWFrame:IsVisible() then ATSW_UpdateRecipes() end this:SetChecked() this:SetBackdropBorderColor (0.4, 0.4, 0.4) this:SetBackdropColor (0.15, 0.15, 0.15) getglobal(this:GetName() .. "Title"):SetText(ATSWOFTOTALDISPLAY_TEXT) if this:GetChecked() then PlaySound("igMainMenuOptionCheckBoxOn") else PlaySound("igMainMenuOptionCheckBoxOff") end ATSW_Options.ConsiderBank = this:GetChecked() and true or false DEFAULT_CHAT_FRAME:AddMessage("ATSW_Options.ConsiderBank: " .. tostring(ATSW_Options.ConsiderBank)) if ATSWFrame:IsVisible() then ATSW_UpdateRecipes() end if this:GetChecked() then PlaySound("igMainMenuOptionCheckBoxOn") else PlaySound("igMainMenuOptionCheckBoxOff") end ATSW_Options.ConsiderAlts = this:GetChecked() and true or false if ATSWFrame:IsVisible() then ATSW_UpdateRecipes() end if this:GetChecked() then PlaySound("igMainMenuOptionCheckBoxOn") else PlaySound("igMainMenuOptionCheckBoxOff") end ATSW_Options.ConsiderMerchants = this:GetChecked() and true or false if ATSWFrame:IsVisible() then ATSW_UpdateRecipes() end this:SetBackdropBorderColor (0.4, 0.4, 0.4) this:SetBackdropColor (0.15, 0.15, 0.15) getglobal(this:GetName() .. "Title"):SetText(ATSWOFTOTALINCLUDE_TEXT) if this:GetChecked() then PlaySound("igMainMenuOptionCheckBoxOn") else PlaySound("igMainMenuOptionCheckBoxOff") end ATSW_Options.AutoBuy = this:GetChecked() and true or false if ATSWFrame:IsVisible() then ATSW_UpdateRecipes() end if this:GetChecked() then PlaySound("igMainMenuOptionCheckBoxOn") else PlaySound("igMainMenuOptionCheckBoxOff") end ATSW_Options.RecipeTooltip = this:GetChecked() and true or false if this:GetChecked() then PlaySound("igMainMenuOptionCheckBoxOn") else PlaySound("igMainMenuOptionCheckBoxOff") end ATSW_Options.DisplayShoppingList = this:GetChecked() and true or false this:SetBackdropBorderColor (0.4, 0.4, 0.4) this:SetBackdropColor (0.15, 0.15, 0.15) getglobal(this:GetName() .. "Title"):SetText(ATSWOFADDONCOMPAT_TEXT) local AtlasLootTexturePath = "Interface\\AddOns\\AdvancedTradeSkillWindow2\\Textures\\Options\\AtlasLootMinimap" local Name = getglobal(this:GetName() .. "Name") Name:SetNormalTexture(AtlasLootTexturePath) Name:SetText("AtlasLoot") Name:Disable() getglobal(this:GetName() .. "Effect"):SetTexture(AtlasLootTexturePath .. "Effect") getglobal(this:GetName() .. "Effect"):SetPoint("CENTER", 165, -70) getglobal(this:GetName() .. "EffectDescription"):SetText(ATSWOFALDESCRIPTION) local Version = getglobal(this:GetName() .. "NameVersion") local Installed = getglobal(this:GetName() .. "Installed") if ATSW_CheckForAtlasLootLoaded() then Version:SetText(GetAddOnMetadata("AtlasLoot", "Version")) this:SetAlpha(1) Installed:Show() else Version:SetText("") this:SetAlpha(0.4) Installed:Hide() end this:SetBackdropBorderColor (0.4, 0.4, 0.4) this:SetBackdropColor (0.25, 0.25, 0.25) PlaySound("igMainMenuOpen") if ATSWFrame:IsVisible() or ATSWCSFrame:IsVisible() then CloseATSW() end HideUIPanel(ATSWConfigFrame) PlaySound("igMainMenuQuit") this.small = 1 this.info = {} this.info.collapse = true this.info.showSmallerCoins = false getglobal(this:GetName() .. "ItemHighlight"):SetDesaturated(true) FauxScrollFrame_OnVerticalScroll(ATSW_TRADESKILL_HEIGHT, ATSW_UpdateAuctionList)