Mercurial > wow > inventory
comparison Modules/Config.lua @ 156:314943963155
Added initial guild bank data excluding (for addons like DataStore). This setting is currently not stored on relog.
author | Zerotorescue |
---|---|
date | Sat, 22 Jan 2011 02:57:08 +0100 |
parents | 5081056cade1 |
children | e136c99fe5bb |
comparison
equal
deleted
inserted
replaced
155:5081056cade1 | 156:314943963155 |
---|---|
1780 end | 1780 end |
1781 end, | 1781 end, |
1782 }, | 1782 }, |
1783 }, | 1783 }, |
1784 }, | 1784 }, |
1785 guildSelection = { | |
1786 order = 15, | |
1787 type = "group", | |
1788 inline = true, | |
1789 name = "Filter item count data", | |
1790 args = { | |
1791 description = { | |
1792 order = 0, | |
1793 type = "description", | |
1794 name = "Change which data sources are used in the item counts.", | |
1795 hidden = function() return addon.db.profile.defaults.hideHelp; end, | |
1796 }, | |
1797 header = { | |
1798 order = 5, | |
1799 type = "header", | |
1800 name = "", | |
1801 hidden = function() return addon.db.profile.defaults.hideHelp; end, | |
1802 }, | |
1803 guilds = { | |
1804 order = 20, | |
1805 type = "multiselect", | |
1806 width = "double", | |
1807 name = "Include guild bank data", | |
1808 desc = "Select which guild data should be included in the item counts.", | |
1809 values = function() | |
1810 local temp = {}; | |
1811 | |
1812 local currentAddon, selectedAddonName = addon:GetItemCountAddon(groupName); | |
1813 | |
1814 if currentAddon.GetGuildNames then | |
1815 local guilds = currentAddon.GetGuildNames(); | |
1816 | |
1817 if guilds and type(guilds) == "table" then | |
1818 for guildName, state in pairs(guilds) do | |
1819 temp[guildName] = guildName; | |
1820 end | |
1821 end | |
1822 end | |
1823 | |
1824 return temp; | |
1825 end, | |
1826 get = function(i, v) | |
1827 local currentAddon, selectedAddonName = addon:GetItemCountAddon(groupName); | |
1828 | |
1829 return currentAddon.GetGuildNames and currentAddon.GetGuildNames()[v]; | |
1830 end, | |
1831 set = function(i, v, e) | |
1832 local currentAddon, selectedAddonName = addon:GetItemCountAddon(groupName); | |
1833 | |
1834 if currentAddon.SetGuildState then | |
1835 currentAddon:SetGuildState(v, e); | |
1836 end | |
1837 end, -- can't be nil or the defaults will be used | |
1838 dialogControl = "Dropdown", -- this is not standard, normal multiselect control gives us a list of all chars with toggle-boxes. UGLY! We want a multiselect-box instead. | |
1839 }, | |
1840 }, | |
1841 }, | |
1785 export = { | 1842 export = { |
1786 order = 30, | 1843 order = 20, |
1787 type = "group", | 1844 type = "group", |
1788 inline = true, | 1845 inline = true, |
1789 name = "Export groups", | 1846 name = "Export groups", |
1790 args = { | 1847 args = { |
1791 localItemData = { | 1848 localItemData = { |