From 0eb98aae0ec14d35e56ab9420ee67b00cdda1794 Mon Sep 17 00:00:00 2001 From: Kevin Lyles Date: Tue, 24 Nov 2009 19:46:23 -0600 Subject: [PATCH] Added templates for a bordered frame and a header Converted ww_config to use said templates --- config.xml | 549 +++++++++++++++++++++++++++++++++--------------------------- 1 file changed, 305 insertions(+), 244 deletions(-) diff --git a/config.xml b/config.xml index 8376f9b..fc8dc0e 100644 --- a/config.xml +++ b/config.xml @@ -13,9 +13,31 @@ + + + + + + + + + + + + + + + + + + + + + + - + @@ -27,64 +49,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - if self:GetChecked() then - ww_vars.options.normalizeWeights = true - else - ww_vars.options.normalizeWeights = false - end - ww_weightCache = {} - ww_weightIdealCache = {} - - - GameTooltip:SetOwner(self,"ANCHOR_RIGHT") - GameTooltip:AddLine("Divides item scores by the total of all stats' values in that weight", 1, 1, 1) - GameTooltip:Show() - - - GameTooltip:Hide() - - - getglobal(self:GetName() .. "Text"):SetText(self:GetText()) - - - self:SetChecked(ww_vars.options.normalizeWeights) - - - - - - - - - - - - - - - if self:GetChecked() then - ww_vars.options.tooltip.hideHints = true - else - ww_vars.options.tooltip.hideHints = false - end - - - GameTooltip:SetOwner(self,"ANCHOR_RIGHT") - GameTooltip:AddLine("Hides modifier key hints in tooltips", 1, 1, 1) - GameTooltip:Show() - - - GameTooltip:Hide() - - - getglobal(self:GetName() .. "Text"):SetText(self:GetText()) - - - self:SetChecked(ww_vars.options.tooltip.hideHints) - - - - - - - - - - + + - - - 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.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 + + + + + + + + + + + + + + if self:GetChecked() then + ww_vars.options.normalizeWeights = true + else + ww_vars.options.normalizeWeights = false + end + ww_weightCache = {} + ww_weightIdealCache = {} + + + GameTooltip:SetOwner(self,"ANCHOR_RIGHT") + GameTooltip:AddLine("Divides item scores by the total of all stats' values in that weight", 1, 1, 1) + GameTooltip:Show() + + + GameTooltip:Hide() + + + getglobal(self:GetName() .. "Text"):SetText(self:GetText()) + + + self:SetChecked(ww_vars.options.normalizeWeights) + + + + + + - + + - - - 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 - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + if self:GetChecked() then + ww_vars.options.tooltip.hideHints = true + else + ww_vars.options.tooltip.hideHints = false + end + + + GameTooltip:SetOwner(self,"ANCHOR_RIGHT") + GameTooltip:AddLine("Hides modifier key hints in tooltips", 1, 1, 1) + GameTooltip:Show() + + + GameTooltip:Hide() + + + getglobal(self:GetName() .. "Text"):SetText(self:GetText()) + + + self:SetChecked(ww_vars.options.tooltip.hideHints) + + + + + -- 1.7.9.5