Advertisement
Guest User

Untitled

a guest
Jul 28th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.11 KB | None | 0 0
  1. classCacheHeader = {
  2. order = 51,
  3. type = "header",
  4. name = L["Class Cache"]
  5. },
  6. classCacheInfo = {
  7. order = 52,
  8. type = "description",
  9. name = L["Enable class information caching for coloring names in chat and nameplates."]
  10. },
  11. classCacheSpacer = {
  12. order = 53,
  13. type = "description",
  14. name = " "
  15. },
  16. classCacheEnable = {
  17. order = 54,
  18. type = "toggle",
  19. name = L["Enable"],
  20. get = function(info) return E.private.general.classCache end,
  21. set = function(info, value)
  22. E.private.general.classCache = value
  23. CC:ToggleModule()
  24. end
  25. },
  26. classCacheStoreInDB = {
  27. order = 55,
  28. type = "toggle",
  29. name = L["Store cache in DB"],
  30. 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."],
  31. get = function(info) return E.db.general.classCacheStoreInDB end,
  32. set = function(info, value)
  33. E.db.general.classCacheStoreInDB = value
  34. CC:SwitchCacheType()
  35. end,
  36. disabled = function() return not E.private.general.classCache end
  37. },
  38. classCacheRequestInfo = {
  39. order = 56,
  40. type = "toggle",
  41. name = L["Request info for nameplates"],
  42. desc = L["Information will be requested via /who."],
  43. get = function(info) return E.db.general.classCacheRequestInfo end,
  44. set = function(info, value)
  45. E.db.general.classCacheRequestInfo = value
  46. end,
  47. disabled = function() return not E.private.general.classCache end
  48. },
  49. wipeClassCacheGlobal = {
  50. order = 57,
  51. type = "execute",
  52. name = L["Wipe DB Cache"],
  53. func = function()
  54. CC:WipeCache(true)
  55. GameTooltip:Hide()
  56. end,
  57. disabled = function() return not CC:GetCacheSize(true) end
  58. },
  59. wipeClassCacheLocal = {
  60. order = 58,
  61. type = "execute",
  62. name = L["Wipe Session Cache"],
  63. func = function()
  64. CC:WipeCache()
  65. GameTooltip:Hide()
  66. end,
  67. disabled = function() return not CC:GetCacheSize() end
  68. }
  69. }
  70. },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement