Mercurial > wow > itemauditor
comparison Modules/Options.lua @ 57:9cb0bc93ed11
Added the version number to the title in ItemAuditor options.
| author | Asa Ayers <Asa.Ayers@Gmail.com> |
|---|---|
| date | Sun, 25 Jul 2010 12:52:14 -0700 |
| parents | 8afc1ac9bf58 |
| children | bdf3aba93aa9 |
comparison
equal
deleted
inserted
replaced
| 56:8afc1ac9bf58 | 57:9cb0bc93ed11 |
|---|---|
| 4 local currentFaction = UnitFactionGroup("player") | 4 local currentFaction = UnitFactionGroup("player") |
| 5 local AHFactions = { currentFaction, 'Neutral' } | 5 local AHFactions = { currentFaction, 'Neutral' } |
| 6 | 6 |
| 7 local craftingThresholds = {5000, 10000, 50000} | 7 local craftingThresholds = {5000, 10000, 50000} |
| 8 local craftingThresholdsDisplay = {} | 8 local craftingThresholdsDisplay = {} |
| 9 | |
| 10 local currentVersion = "@project-version@" | |
| 9 | 11 |
| 10 for key, value in pairs(craftingThresholds) do | 12 for key, value in pairs(craftingThresholds) do |
| 11 craftingThresholdsDisplay[key] = addon:FormatMoney(value, '', true) | 13 craftingThresholdsDisplay[key] = addon:FormatMoney(value, '', true) |
| 12 -- craftingThresholdsDisplay[key] = value | 14 -- craftingThresholdsDisplay[key] = value |
| 13 end | 15 end |
| 61 return DEFAULT_CHAT_FRAME | 63 return DEFAULT_CHAT_FRAME |
| 62 end | 64 end |
| 63 | 65 |
| 64 local options = { | 66 local options = { |
| 65 handler = addon, | 67 handler = addon, |
| 66 name = "ItemAuditor", | 68 name = "ItemAuditor "..currentVersion, |
| 67 type = 'group', | 69 type = 'group', |
| 68 args = { | 70 args = { |
| 69 prices = { | 71 prices = { |
| 70 name = "Prices", | 72 name = "Prices", |
| 71 desc = "Control how your minimum price is calculated.", | 73 desc = "Control how your minimum price is calculated.", |
