Add LFR instances to defaults directly from API for localization reasons.
This commit is contained in:
parent
53974a8640
commit
4a80527bf5
1 changed files with 11 additions and 5 deletions
|
@ -30,14 +30,20 @@ local defaults = {
|
||||||
[Z['Blackwing Descent']] = { abbreviation = 'BWD', enable = false, removed = false, },
|
[Z['Blackwing Descent']] = { abbreviation = 'BWD', enable = false, removed = false, },
|
||||||
[Z['Throne of the Four Winds']] = { abbreviation = '4W', enable = false, removed = false, },
|
[Z['Throne of the Four Winds']] = { abbreviation = '4W', enable = false, removed = false, },
|
||||||
},
|
},
|
||||||
lfrs = {
|
lfrs = {}
|
||||||
-- needs localized
|
|
||||||
['The Siege of Wyrmrest Temple'] = { abbreviation = 'SoWT', enable = true, removed = false, },
|
|
||||||
['Fall of Deathwing'] = { abbreviation = 'FoD', enable = true, removed = false, },
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
-- Setup LFR Defaults
|
||||||
|
local RFDungeonCount = GetNumRFDungeons()
|
||||||
|
|
||||||
|
for i = 1, RFDungeonCount do
|
||||||
|
id, instanceName = GetRFDungeonInfo(i)
|
||||||
|
|
||||||
|
defaults.profile.lfrs[instanceName] = { enable = true, removed = false, }
|
||||||
|
defaults.profile.lfrs[instanceName].abbreviation = string.sub(instanceName, 0, 1)
|
||||||
|
end
|
||||||
|
|
||||||
local options = {
|
local options = {
|
||||||
name = 'ChoreTracker',
|
name = 'ChoreTracker',
|
||||||
type = 'group',
|
type = 'group',
|
||||||
|
|
Loading…
Reference in a new issue