From cdfd8d488f3dbddc6c4e9b6a268162b1a75f75eb Mon Sep 17 00:00:00 2001 From: Kevin Lyles Date: Fri, 20 Nov 2009 22:29:33 -0600 Subject: [PATCH] Added config options for choosing/forcing ideal gems to obey socket colors --- config.xml | 82 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) diff --git a/config.xml b/config.xml index 96f1613..8376f9b 100644 --- a/config.xml +++ b/config.xml @@ -201,6 +201,88 @@ + + + + + + + + + + + if self:GetChecked() then + ww_vars.options.breakSocketColors = false + self:GetParent().alwaysObeySocketColors:Enable() + else + ww_vars.options.breakSocketColors = true + self:GetParent().alwaysObeySocketColors:Disable() + end + ww_weightIdealCache = {} + + + GameTooltip:SetOwner(self,"ANCHOR_RIGHT") + GameTooltip:AddLine("Chooses ideal gems that obey their socket color (even if that gives a lower overall score)", 1, 1, 1) + GameTooltip:Show() + + + GameTooltip:Hide() + + + getglobal(self:GetName() .. "Text"):SetText(self:GetText()) + + + self:SetChecked(not ww_vars.options.breakSocketColors) + + + + + + + + + + + + + if self:GetChecked() then + ww_vars.options.neverBreakSocketColors = true + else + ww_vars.options.neverBreakSocketColors = false + end + ww_weightIdealCache = {} + + + self.text:SetTextColor(0.5, 0.5, 0.5) + + + self.text:SetTextColor(1, 0.82, 0) + + + GameTooltip:SetOwner(self,"ANCHOR_RIGHT") + GameTooltip:AddLine("Forces ideal gems to obey their socket color (even if the socket bonus has a 0 or negative score for that weight)", 1, 1, 1) + GameTooltip:Show() + + + GameTooltip:Hide() + + + self.text = getglobal(self:GetName() .. "Text") + self.text:SetText(self:GetText()) + + + self:SetChecked(ww_vars.options.neverBreakSocketColors) + if ww_vars.options.breakSocketColors then + self:Disable() + else + self:Enable() + end + + + -- 1.7.9.5