diff --git a/Interface/AddOns/SVUI/libs/LibActionButton-1.0/LibActionButton-1.0.lua b/Interface/AddOns/SVUI/libs/LibActionButton-1.0/LibActionButton-1.0.lua index cdc1bd1..80256bf 100644 --- a/Interface/AddOns/SVUI/libs/LibActionButton-1.0/LibActionButton-1.0.lua +++ b/Interface/AddOns/SVUI/libs/LibActionButton-1.0/LibActionButton-1.0.lua @@ -1028,9 +1028,9 @@ end function UpdateButtonState(self) if self:IsCurrentlyActive() or self:IsAutoRepeat() then - self:SetChecked(1) + self:SetChecked(true) else - self:SetChecked(0) + self:SetChecked(false) end lib.callbacks:Fire("OnButtonState", self) end diff --git a/Interface/AddOns/SVUI/packages/actionbar/SVBar.lua b/Interface/AddOns/SVUI/packages/actionbar/SVBar.lua index cecfa3e..9be7bdd 100644 --- a/Interface/AddOns/SVUI/packages/actionbar/SVBar.lua +++ b/Interface/AddOns/SVUI/packages/actionbar/SVBar.lua @@ -1074,7 +1074,7 @@ do button:SetBackdropBorderColor(0.4, 0.8, 0) end icon:SetVertexColor(1, 1, 1) - button:SetChecked(1) + button:SetChecked(true) else if maxForms > 1 and currentForm > 0 then button:SetBackdropBorderColor(0, 0, 0) @@ -1088,7 +1088,7 @@ do end end - button:SetChecked(0) + button:SetChecked(false) end if isCastable then icon:SetDesaturated(false) @@ -1208,7 +1208,7 @@ do local shine = _G[name.."Shine"] local checked = button:GetCheckedTexture() local actionName, subtext, actionIcon, isToken, isActive, autoCastAllowed, autoCastEnabled = GetPetActionInfo(i) - button:SetChecked(0) + button:SetChecked(false) button:SetBackdropBorderColor(0, 0, 0) checked:SetAlpha(0) if(not isToken) then @@ -1231,11 +1231,11 @@ do auto:Hide() end if (isActive and actionName ~= "PET_ACTION_FOLLOW") then - button:SetChecked(1) + button:SetChecked(true) checked:SetAlpha(1) button:SetBackdropBorderColor(0.4, 0.8, 0) else - button:SetChecked(0) + button:SetChecked(false) checked:SetAlpha(0) button:SetBackdropBorderColor(0, 0, 0) end @@ -1258,7 +1258,7 @@ do if(not PetHasActionBar() and actionIcon and actionName ~= "PET_ACTION_FOLLOW") then PetActionButton_StopFlash(button) SetDesaturation(icon, 1) - button:SetChecked(0) + button:SetChecked(false) end end end diff --git a/Interface/AddOns/SVUI/system/alerts.lua b/Interface/AddOns/SVUI/system/alerts.lua index c265e29..984461f 100644 --- a/Interface/AddOns/SVUI/system/alerts.lua +++ b/Interface/AddOns/SVUI/system/alerts.lua @@ -261,7 +261,7 @@ SV.SystemAlert["CONFIRM_LOSE_BINDING_CHANGES"] = { if SVUI_KeyBindPopupCheckButton:GetChecked()then SVUI_KeyBindPopupCheckButton:SetChecked() else - SVUI_KeyBindPopupCheckButton:SetChecked(1) + SVUI_KeyBindPopupCheckButton:SetChecked(true) end end, timeout = 0, diff --git a/Interface/AddOns/SVUI_CraftOMatic/SVUI_CraftOMatic.lua b/Interface/AddOns/SVUI_CraftOMatic/SVUI_CraftOMatic.lua index 8225d2c..be81afe 100644 --- a/Interface/AddOns/SVUI_CraftOMatic/SVUI_CraftOMatic.lua +++ b/Interface/AddOns/SVUI_CraftOMatic/SVUI_CraftOMatic.lua @@ -187,25 +187,6 @@ CORE FUNCTIONS ########################################################## ]]-- function PLUGIN:CraftingReset() - if((not SV.db[Schema].farming) or (not SV.db[Schema].fishing) (not SV.db[Schema].cooking)) then - SV.db[Schema] = { - ["enable"] = true, - ["fontSize"] = 12, - ["farming"] = { - ["buttonsize"] = 35, - ["buttonspacing"] = 3, - ["onlyactive"] = false, - ["droptools"] = true, - ["toolbardirection"] = "HORIZONTAL", - }, - ["fishing"] = { - ["autoequip"] = true, - }, - ["cooking"] = { - ["autoequip"] = true, - }, - } - end self.TitleWindow:Clear(); self.LogWindow:Clear(); self.TitleWindow:AddMessage("Crafting Modes", 1, 1, 0); @@ -408,6 +389,26 @@ BUILD FUNCTION function PLUGIN:Load() if(not SV.db[Schema].enable) then return end + if((not SV.db[Schema].farming) or (not SV.db[Schema].fishing) or (not SV.db[Schema].cooking)) then + SV.db[Schema] = { + ["enable"] = true, + ["fontSize"] = 12, + ["farming"] = { + ["buttonsize"] = 35, + ["buttonspacing"] = 3, + ["onlyactive"] = false, + ["droptools"] = true, + ["toolbardirection"] = "HORIZONTAL", + }, + ["fishing"] = { + ["autoequip"] = true, + }, + ["cooking"] = { + ["autoequip"] = true, + }, + } + end + lastClickTime = nil; self.WornItems = {}; self.InModeGear = false; diff --git a/Interface/AddOns/SVUI_StyleOMatic/components/addons/Clique.lua b/Interface/AddOns/SVUI_StyleOMatic/components/addons/Clique.lua index ac2eca7..be6254d 100644 --- a/Interface/AddOns/SVUI_StyleOMatic/components/addons/Clique.lua +++ b/Interface/AddOns/SVUI_StyleOMatic/components/addons/Clique.lua @@ -84,7 +84,7 @@ local CliqueConfigPage1_OnShow = function(self) else _G["CliqueRow"..i.."Bind"]:SetPoint("RIGHT", _G["CliqueRow"..i], -9,0) end - _G["CliqueRow"..i]:GetHighlightTexture():SetDesaturated(1) + _G["CliqueRow"..i]:GetHighlightTexture():SetDesaturated(true) end end CliqueRow1:ClearAllPoints()