comparison Modules/Config.lua @ 216:70daa765e275

Now using the best item count addon available when the selected is unavailable, rather than a random.
author Zerotorescue
date Sun, 06 Feb 2011 14:00:41 +0100
parents a7c02f65b072
children 24e71ed0a422
comparison
equal deleted inserted replaced
215:fbd52851dcd1 216:70daa765e275
722 elseif currentAddon.GetCharacterCount then 722 elseif currentAddon.GetCharacterCount then
723 t = t .. " This addon supports |cfffed000only local|r item counts."; 723 t = t .. " This addon supports |cfffed000only local|r item counts.";
724 end 724 end
725 725
726 if preferedAddon ~= selectedAddonName then 726 if preferedAddon ~= selectedAddonName then
727 t = t .. "\n\n|cffff0000You have selected |cfffed000" .. preferedAddon .. "|r|cffff0000 as your item count addon, but this appears to be disabled and thus a random alternative was selected.|r"; 727 t = t .. "\n\n|cffff0000You have selected |cfffed000" .. preferedAddon .. "|r|cffff0000 as your item count addon, but this appears to be disabled and thus the best alternative was selected.|r";
728 end 728 end
729 end 729 end
730 730
731 return t; 731 return t;
732 end, 732 end,
778 }, 778 },
779 itemCountAddon = { 779 itemCountAddon = {
780 order = 20, 780 order = 20,
781 type = "select", 781 type = "select",
782 name = "Prefered item count addon", 782 name = "Prefered item count addon",
783 desc = "Select the addon you prefer data for this group to be retrieved from. A random supported addon will be used if the selected addon can not be found.", 783 desc = "Select the addon you prefer data for this group to be retrieved from. The best supported addon will be used if the selected addon can not be found.",
784 values = function() 784 values = function()
785 local temp = {}; 785 local temp = {};
786 for name, value in pairs(addon.supportedAddons.itemCount) do 786 for name, value in pairs(addon.supportedAddons.itemCount) do
787 temp[name] = name; 787 temp[name] = name;
788 end 788 end
1736 elseif currentAddon.GetCharacterCount then 1736 elseif currentAddon.GetCharacterCount then
1737 t = t .. " This addon supports |cfffed000only local|r item counts."; 1737 t = t .. " This addon supports |cfffed000only local|r item counts.";
1738 end 1738 end
1739 1739
1740 if preferedAddon ~= selectedAddonName then 1740 if preferedAddon ~= selectedAddonName then
1741 t = t .. "\n\n|cffff0000You have selected |cfffed000" .. preferedAddon .. "|r|cffff0000 as your item count addon, but this appears to be disabled and thus a random alternative was selected.|r"; 1741 t = t .. "\n\n|cffff0000You have selected |cfffed000" .. preferedAddon .. "|r|cffff0000 as your item count addon, but this appears to be disabled and thus the best alternative was selected.|r";
1742 end 1742 end
1743 end 1743 end
1744 1744
1745 return t; 1745 return t;
1746 end, 1746 end,
1774 }, 1774 },
1775 itemCountAddon = { 1775 itemCountAddon = {
1776 order = 20, 1776 order = 20,
1777 type = "select", 1777 type = "select",
1778 name = "Prefered item count addon", 1778 name = "Prefered item count addon",
1779 desc = "Select the addon you prefer data to be retrieved from. A random supported addon will be used if the selected addon can not be found.", 1779 desc = "Select the addon you prefer data to be retrieved from. The best supported addon will be used if the selected addon can not be found.",
1780 values = function() 1780 values = function()
1781 local temp = {}; 1781 local temp = {};
1782 for name, value in pairs(addon.supportedAddons.itemCount) do 1782 for name, value in pairs(addon.supportedAddons.itemCount) do
1783 temp[name] = name; 1783 temp[name] = name;
1784 end 1784 end