Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- classCacheHeader = {
- order = 51,
- type = "header",
- name = L["Class Cache"]
- },
- classCacheInfo = {
- order = 52,
- type = "description",
- name = L["Enable class information caching for coloring names in chat and nameplates."]
- },
- classCacheSpacer = {
- order = 53,
- type = "description",
- name = " "
- },
- classCacheEnable = {
- order = 54,
- type = "toggle",
- name = L["Enable"],
- get = function(info) return E.private.general.classCache end,
- set = function(info, value)
- E.private.general.classCache = value
- CC:ToggleModule()
- end
- },
- classCacheStoreInDB = {
- order = 55,
- type = "toggle",
- name = L["Store cache in DB"],
- desc = L["If cache stored in DB it will be available between game sessions but increase memory usage.\nIn other way it will be wiped on relog or UI reload."],
- get = function(info) return E.db.general.classCacheStoreInDB end,
- set = function(info, value)
- E.db.general.classCacheStoreInDB = value
- CC:SwitchCacheType()
- end,
- disabled = function() return not E.private.general.classCache end
- },
- classCacheRequestInfo = {
- order = 56,
- type = "toggle",
- name = L["Request info for nameplates"],
- desc = L["Information will be requested via /who."],
- get = function(info) return E.db.general.classCacheRequestInfo end,
- set = function(info, value)
- E.db.general.classCacheRequestInfo = value
- end,
- disabled = function() return not E.private.general.classCache end
- },
- wipeClassCacheGlobal = {
- order = 57,
- type = "execute",
- name = L["Wipe DB Cache"],
- func = function()
- CC:WipeCache(true)
- GameTooltip:Hide()
- end,
- disabled = function() return not CC:GetCacheSize(true) end
- },
- wipeClassCacheLocal = {
- order = 58,
- type = "execute",
- name = L["Wipe Session Cache"],
- func = function()
- CC:WipeCache()
- GameTooltip:Hide()
- end,
- disabled = function() return not CC:GetCacheSize() end
- }
- }
- },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement