Advertisement
Cokedriver

Config.lua

May 1st, 2012
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 76.60 KB | None | 0 0
  1. local BasicUI = LibStub("AceAddon-3.0"):GetAddon("BasicUI");
  2. local db;
  3.  
  4. -- Set Up Locale
  5. local L = setmetatable({}, { __index = function(t,k)
  6. local v = tostring(k)
  7. rawset(t, k, v)
  8. return v
  9. end })
  10.  
  11. StaticPopupDialogs["CFG_RELOAD"] = {
  12. text = L["One or more of the changes you have made require you to Reload the UI."],
  13. button1 = ACCEPT,
  14. button2 = CANCEL,
  15. OnAccept = function() ReloadUI() end,
  16. timeout = 0,
  17. whileDead = 1,
  18. OnReload
  19. }
  20.  
  21. -- Return the Options table
  22. local options = nil;
  23. function BasicUI:GetOptions()
  24. if not options then
  25. options = {
  26. name = "|cff00B4FFBasic|rUI",
  27. handler = BasicUI,
  28. type = "group",
  29. childGroups = "tree",
  30. args = {
  31. Header = {
  32. order = 1,
  33. type = "header",
  34. name = L["Welcome to |cff00B4FFBasic|rUI Config Area!"],
  35. width = "full",
  36. },
  37. Text = {
  38. order = 2,
  39. type = "header",
  40. name = L["When changes are made a Reload of the UI is needed."],
  41. width = "full",
  42. },
  43. sep1 = {
  44. type = "description",
  45. name = " ",
  46. order = 3,
  47. },
  48. Text2 = {
  49. order = 4,
  50. type = "description",
  51. name = L["Special Thanks for |cff00B4FFBasic|rUI goes out to: Neav, Tuks, Elv, Baine, Treeston, and many more."],
  52. width = "full",
  53. fontSize = "large",
  54. },
  55. Text3 = {
  56. order = 5,
  57. type = "description",
  58. name = L["Thank you all for your AddOns, coding help, and support in creating |cff00B4FFBasic|rUI."],
  59. width = "full",
  60. fontSize = "large",
  61. },
  62. sep2 = {
  63. type = "description",
  64. name = " ",
  65. order = 6,
  66. },
  67. media = {
  68. name = L["|cff00B4FFMedia|r"],
  69. desc = L["Media Module for |cff00B4FFBasic|rUI."],
  70. order = 0,
  71. type = "group",
  72. childGroups = "tree",
  73. get = function(info) return db.media[ info[#info] ] end,
  74. set = function(info, value) db.media[ info[#info] ] = value; StaticPopup_Show("CFG_RELOAD") end,
  75. args = {
  76. font = {
  77. name = L["|cff00B4FFBasic|rUI Font"],
  78. desc = L["The font that the core of the UI will use"],
  79. order = 1,
  80. type = 'select',
  81. width = "full",
  82. dialogControl = 'LSM30_Font', --Select your widget here
  83. values = AceGUIWidgetLSMlists.font,
  84. },
  85. fontSize = {
  86. name = L["Game Font Size"],
  87. desc = L["Controls the Size of the Game Font"],
  88. order = 2,
  89. type = "range",
  90. min = 0, max = 30, step = 1,
  91. },
  92. fontxSmall = {
  93. name = L["Font Extra Small"],
  94. desc = L["Controls the Size of the Extra Small Font"],
  95. order = 3,
  96. type = "range",
  97. min = 0, max = 30, step = 1,
  98. },
  99. fontSmall = {
  100. name = L["Font Small"],
  101. desc = L["Controls the Size of the Small Font"],
  102. order = 4,
  103. type = "range",
  104. min = 0, max = 30, step = 1,
  105. },
  106. fontMedium = {
  107. name = L["Font Medium"],
  108. desc = L["Controls the Size of Medium Font"],
  109. order = 5,
  110. type = "range",
  111. min = 0, max = 30, step = 1,
  112. },
  113. fontLarge = {
  114. name = L["Font Large"],
  115. desc = L["Controls the Size of the Large Font"],
  116. order = 6,
  117. type = "range",
  118. min = 0, max = 30, step = 1,
  119. },
  120. fontHuge = {
  121. name = L["Font Huge"],
  122. desc = L["Controls the Size of the Huge Font"],
  123. order = 7,
  124. type = "range",
  125. min = 0, max = 30, step = 1,
  126. },
  127. },
  128. },
  129. general = {
  130. name = L["|cff00B4FFGeneral|r"],
  131. desc = L["General Modules for |cff00B4FFBasic|rUI."],
  132. order = 1,
  133. type = "group",
  134. childGroups = "tree",
  135. get = function(info) return db.general[ info[#info] ] end,
  136. set = function(info, value) db.general[ info[#info] ] = value; StaticPopup_Show("CFG_RELOAD") end,
  137. args = {
  138. autogreed = {
  139. name = L["Autogreed"],
  140. desc = L["Enables Automatically rolling greed on green items when in a instance."],
  141. order = 1,
  142. type = "toggle",
  143. },
  144. cooldown = {
  145. name = L["Cooldown"],
  146. desc = L["Enables cooldown counts on action buttons."],
  147. order = 2,
  148. type = "toggle",
  149. },
  150. slidebar = {
  151. name = L["AddOn SlideBar"],
  152. desc = L["Enables the Minimap AddOn Button SlideBar."],
  153. order = 3,
  154. type = "toggle",
  155. },
  156. buttons = {
  157. name = L["Actionbar Buttons"],
  158. desc = L["Actionbar Button Modifications."],
  159. order = 4,
  160. type = "group",
  161. guiInline = true,
  162. get = function(info) return db.general.buttons[ info[#info] ] end,
  163. set = function(info, value) db.general.buttons[ info[#info] ] = value; StaticPopup_Show("CFG_RELOAD") end,
  164. args = {
  165. enable = {
  166. name = L["Enable"],
  167. desc = L["Enables Actionbar Button Module"],
  168. order = 1,
  169. type = "toggle",
  170. },
  171. showHotKeys = {
  172. name = L["Show Hot Keys"],
  173. desc = L["If Checked Hot Keys will Show."],
  174. order = 2,
  175. disabled = function() return not db.general.buttons.enable end,
  176. type = "toggle",
  177. },
  178. showMacronames = {
  179. name = L["Show Macro Names"],
  180. desc = L["If Checked Macros Will Show."],
  181. order = 3,
  182. disabled = function() return not db.general.buttons.enable end,
  183. type = "toggle",
  184. },
  185. color = {
  186. name = L["Actionbar Button Color"],
  187. desc = L["Enables Actionbar Button Color Modifications."],
  188. order = 4,
  189. type = "group",
  190. guiInline = true,
  191. get = function(info) return db.general.buttons.color[ info[#info] ] end,
  192. set = function(info, value) db.general.buttons.color[ info[#info] ] = value; StaticPopup_Show("CFG_RELOAD") end,
  193. args = {
  194. enable = {
  195. name = L["Enable"],
  196. desc = L["Enables Coloring"],
  197. order = 2,
  198. type = "toggle",
  199. },
  200. OutOfRange = {
  201. name = L["Out of Range"],
  202. desc = L["Picks the Out of Range Button Fade Color."],
  203. order = 3,
  204. disabled = function() return not db.general.buttons.enable or not db.general.buttons.color.enable end,
  205. type = "color",
  206. get = function(info)
  207. local rc = db.general.buttons.color[ info[#info] ]
  208. return rc.r, rc.g, rc.b
  209. end,
  210. set = function(info, r, g, b)
  211. db.general.buttons.color[ info[#info] ] = {}
  212. local rc = db.general.buttons.color[ info[#info] ]
  213. rc.r, rc.g, rc.b = r, g, b
  214. end,
  215. },
  216. OutOfMana = {
  217. name = L["Out of Mana"],
  218. desc = L["Picks the Out of Mana Button Fade Color."],
  219. order = 4,
  220. disabled = function() return not db.general.buttons.enable or not db.general.buttons.color.enable end,
  221. type = "color",
  222. get = function(info)
  223. local mc = db.general.buttons.color[ info[#info] ]
  224. return mc.r, mc.g, mc.b
  225. end,
  226. set = function(info, r, g, b)
  227. db.general.buttons.color[ info[#info] ] = {}
  228. local mc = db.general.buttons.color[ info[#info] ]
  229. mc.r, mc.g, mc.b = r, g, b
  230. end,
  231. },
  232. NotUsable = {
  233. name = L["Not Usable"],
  234. desc = L["Picks the Not Usable Button Fade Color."],
  235. order = 5,
  236. disabled = function() return not db.general.buttons.enable or not db.general.buttons.color.enable end,
  237. type = "color",
  238. get = function(info)
  239. local nu = db.general.buttons.color[ info[#info] ]
  240. return nu.r, nu.g, nu.b
  241. end,
  242. set = function(info, r, g, b)
  243. db.general.buttons.color[ info[#info] ] = {}
  244. local nu = db.general.buttons.color[ info[#info] ]
  245. nu.r, nu.g, nu.b = r, g, b
  246. end,
  247. },
  248. },
  249. },
  250. },
  251. },
  252. mail = {
  253. name = L["Mail"],
  254. desc = L["Enables Mailbox Modifications."],
  255. order = 6,
  256. type = "group",
  257. guiInline = true,
  258. get = function(info) return db.general.mail[ info[#info] ] end,
  259. set = function(info, value) db.general.mail[ info[#info] ] = value; StaticPopup_Show("CFG_RELOAD") end,
  260. args = {
  261. enable = {
  262. name = L["Enable"],
  263. desc = L["Enables Mail Module"],
  264. order = 1,
  265. type = "toggle",
  266. },
  267. openall = {
  268. name = L["Open All"],
  269. desc = L["Enables Open All Collect Button on Mailbox"],
  270. order = 2,
  271. disabled = function() return not db.general.mail.enable end,
  272. type = "toggle",
  273. },
  274. BlackBook = {
  275. name = L["BlackBook"],
  276. desc = L["Enables Send Mail Drop Down Menu. (Barrowed from Postal) "],
  277. order = 3,
  278. disabled = function() return not db.general.mail.enable end,
  279. type = "group",
  280. guiInline = true,
  281. get = function(info) return db.general.mail.BlackBook[ info[#info] ] end,
  282. set = function(info, value) db.general.mail.BlackBook[ info[#info] ] = value; StaticPopup_Show("CFG_RELOAD") end,
  283. args = {
  284. enable = {
  285. name = L["Enable"],
  286. desc = L["Enables BlackBook Module"],
  287. order = 1,
  288. type = "toggle",
  289. },
  290. AutoFill = {
  291. name = L["Auto Fill"],
  292. desc = L["AutoFill Names"],
  293. order = 2,
  294. disabled = function() return not db.general.mail.enable or not db.general.mail.BlackBook.enable end,
  295. type = "toggle",
  296. },
  297. AutoCompleteAlts = {
  298. name = L["Auto Complete Alts"],
  299. desc = L["Mailing list of Alts."],
  300. order = 3,
  301. disabled = function() return not db.general.mail.enable or not db.general.mail.BlackBook.enable end,
  302. type = "toggle",
  303. },
  304. AutoCompleteRecent = {
  305. name = L["Auto Complete Recent"],
  306. desc = L["Mailing list of Recently Mailed People."],
  307. order = 4,
  308. disabled = function() return not db.general.mail.enable or not db.general.mail.BlackBook.enable end,
  309. type = "toggle",
  310. },
  311. AutoCompleteContacts = {
  312. name = L["Auto Complete Contacts"],
  313. desc = L["Mailing list of Contacts."],
  314. order = 5,
  315. disabled = function() return not db.general.mail.enable or not db.general.mail.BlackBook.enable end,
  316. type = "toggle",
  317. },
  318. AutoCompleteFriends = {
  319. order = 6,
  320. name = L["Auto Complete Friends"],
  321. desc = L["Mailing list of Friends."],
  322. type = "toggle",
  323. disabled = function() return not db.general.mail.enable or not db.general.mail.BlackBook.enable end,
  324. },
  325. AutoCompleteGuild = {
  326. order = 7,
  327. name = L["Auto Complete Guild"],
  328. desc = L["Mailing list of Guildies."],
  329. type = "toggle",
  330. disabled = function() return not db.general.mail.enable or not db.general.mail.BlackBook.enable end,
  331. },
  332. ExcludeRandoms = {
  333. order = 8,
  334. name = L["Exclude Randoms"],
  335. desc = L["Mailing list of Random People."],
  336. type = "toggle",
  337. disabled = function() return not db.general.mail.enable or not db.general.mail.BlackBook.enable end,
  338. },
  339. DisableBlizzardAutoComplete = {
  340. order = 9,
  341. name = L["Disable Blizzard Auto Complete"],
  342. desc = L["Disable blizzards Auto Complete when Typing."],
  343. type = "toggle",
  344. disabled = function() return not db.general.mail.enable or not db.general.mail.BlackBook.enable end,
  345. },
  346. UseAutoComplete = {
  347. order = 10,
  348. name = L["Use Auto Complete"],
  349. desc = L["Enable Auto Complete when Typing"],
  350. type = "toggle",
  351. disabled = function() return not db.general.mail.enable or not db.general.mail.BlackBook.enable end,
  352. },
  353. },
  354. },
  355. },
  356. },
  357. scale = {
  358. type = "group",
  359. order = 8,
  360. name = L["Scale"],
  361. desc = L["Adjust the scale of Blizzards Unit Frames."],
  362. guiInline = true,
  363. get = function(info) return db.general.scale[ info[#info] ] end,
  364. set = function(info, value) db.general.scale[ info[#info] ] = value; StaticPopup_Show("CFG_RELOAD") end,
  365. args = {
  366. enable = {
  367. order = 1,
  368. name = L["Enable"],
  369. desc = L["Enables Scale Module"],
  370. type = "toggle",
  371. },
  372. playerFrame = {
  373. order = 2,
  374. name = L["Player Frame"],
  375. desc = L["Controls the scaling of Blizzard's Player Frame"],
  376. type = "range",
  377. min = 0.5, max = 2, step = 0.05,
  378. disabled = function() return not db.general.scale.enable end,
  379. },
  380. targetFrame = {
  381. order = 3,
  382. name = L["Target Frame"],
  383. desc = L["Controls the scaling of Blizzard's Target Frame"],
  384. type = "range",
  385. min = 0.5, max = 2, step = 0.05,
  386. disabled = function() return not db.general.scale.enable end,
  387. },
  388. focusFrame = {
  389. order = 3,
  390. name = L["Focus Frame"],
  391. desc = L["Controls the scaling of Blizzard's Focus Frame"],
  392. type = "range",
  393. min = 0.5, max = 2, step = 0.05,
  394. disabled = function() return not db.general.scale.enable end,
  395. },
  396. partyFrame = {
  397. order = 4,
  398. name = L["Party Frame"],
  399. desc = L["Controls the scaling of Blizzard's Party Frames"],
  400. type = "range",
  401. min = 0.5, max = 2, step = 0.05,
  402. disabled = function() return not db.general.scale.enable end,
  403. },
  404. partypetFrame = {
  405. order = 5,
  406. name = L["Party Pet Frame"],
  407. desc = L["Controls the scaling of Blizzard's Party Pet Frames"],
  408. type = "range",
  409. min = 0.5, max = 2, step = 0.05,
  410. disabled = function() return not db.general.scale.enable end,
  411. },
  412. arenaFrame = {
  413. order = 6,
  414. name = L["Arena Frame"],
  415. desc = L["Controls the scaling of Blizzard's Arena Frames"],
  416. type = "range",
  417. min = 0.5, max = 2, step = 0.05,
  418. disabled = function() return not db.general.scale.enable end,
  419. },
  420. bossFrame = {
  421. order = 7,
  422. name = L["Boss Frame"],
  423. desc = L["Controls the scaling of Blizzard's Boss Frames"],
  424. type = "range",
  425. min = 0.5, max = 2, step = 0.05,
  426. disabled = function() return not db.general.scale.enable end,
  427. },
  428. },
  429. },
  430. },
  431. },
  432. buff = {
  433. order = 2,
  434. type = "group",
  435. name = L["|cff00B4FFBuff|r"],
  436. desc = L["Buff Module for |cff00B4FFBasic|rUI."],
  437. get = function(info) return db.buff[ info[#info] ] end,
  438. set = function(info, value) db.buff[ info[#info] ] = value; StaticPopup_Show("CFG_RELOAD") end,
  439. args = {
  440. enable = {
  441. order = 1,
  442. name = L["Enable"],
  443. desc = L["Enables Buff Module."],
  444. type = "toggle",
  445. width = "full",
  446. },
  447. border = {
  448. name = L["Border Style."],
  449. desc = L["Choose the Border Style"],
  450. order = 2,
  451. disabled = function() return not db.buff.enable end,
  452. type = 'select',
  453. dialogControl = 'LSM30_Border',
  454. width = "full",
  455. values = AceGUIWidgetLSMlists.border,
  456. },
  457. buffSize = {
  458. order = 4,
  459. name = L["Buff Size"],
  460. --desc = L["Controls the scaling of Blizzard's Buff Frames"],
  461. type = "range",
  462. min = 1, max = 50, step = 1,
  463. disabled = function() return not db.buff.enable end,
  464. },
  465. buffScale = {
  466. order = 5,
  467. name = L["Buff Scale"],
  468. --desc = L["Controls the scaling of the Buff Frames"],
  469. type = "range",
  470. min = 0.5, max = 5, step = 0.05,
  471. disabled = function() return not db.buff.enable end,
  472. },
  473. buffFontSize = {
  474. order = 6,
  475. name = L["Buff Font Size"],
  476. --desc = L["Controls the scaling of Blizzard's Buff Frames"],
  477. type = "range",
  478. min = 8, max = 25, step = 1,
  479. disabled = function() return not db.buff.enable end,
  480. },
  481. buffCountSize = {
  482. order = 7,
  483. name = L["Buff Count Size"],
  484. --desc = L["Controls the scaling of Blizzard's Buff Frames"],
  485. type = "range",
  486. min = 1, max = 10, step = 1,
  487. disabled = function() return not db.buff.enable end,
  488. },
  489. debuffSize = {
  490. order = 8,
  491. name = L["DeBuff Size"],
  492. --desc = L["Controls the scaling of Blizzard's Buff Frames"],
  493. type = "range",
  494. min = 1, max = 50, step = 1,
  495. disabled = function() return not db.buff.enable end,
  496. },
  497. debuffScale = {
  498. order = 9,
  499. name = L["DeBuff Scale"],
  500. --desc = L["Controls the scaling of Blizzard's Buff Frames"],
  501. type = "range",
  502. min = 0.5, max = 5, step = 0.05,
  503. disabled = function() return not db.buff.enable end,
  504. },
  505. debuffFontSize = {
  506. order = 10,
  507. name = L["DeBuff Font Size"],
  508. --desc = L["Controls the scaling of Blizzard's Buff Frames"],
  509. type = "range",
  510. min = 8, max = 25, step = 0.05,
  511. disabled = function() return not db.buff.enable end,
  512. },
  513. debuffCountSize = {
  514. order = 11,
  515. name = L["DeBuff Count Size"],
  516. --desc = L["Controls the scaling of Blizzard's Buff Frames"],
  517. type = "range",
  518. min = 1, max = 10, step = 1,
  519. disabled = function() return not db.buff.enable end,
  520. },
  521. paddingX = {
  522. order = 12,
  523. name = L["Padding X"],
  524. --desc = L["Controls the scaling of Blizzard's Buff Frames"],
  525. type = "range",
  526. min = 1, max = 20, step = 1,
  527. disabled = function() return not db.buff.enable end,
  528. },
  529. paddingY = {
  530. order = 13,
  531. name = L["Padding Y"],
  532. --desc = L["Controls the scaling of Blizzard's Buff Frames"],
  533. type = "range",
  534. min = 1, max = 20, step = 1,
  535. disabled = function() return not db.buff.enable end,
  536. },
  537. buffPerRow = {
  538. order = 14,
  539. name = L["Buffs Per Row"],
  540. --desc = L["Controls the scaling of Blizzard's Buff Frames"],
  541. type = "range",
  542. min = 1, max = 20, step = 1,
  543. disabled = function() return not db.buff.enable end,
  544. },
  545. },
  546. },
  547. castbar = {
  548. order = 3,
  549. type = "group",
  550. name = L["|cff00B4FFCastbar|r"],
  551. desc = L["Castbar Module for |cff00B4FFBasic|rUI."],
  552. childGroups = "tree",
  553. get = function(info) return db.castbar[ info[#info] ] end,
  554. set = function(info, value) db.castbar[ info[#info] ] = value; StaticPopup_Show("CFG_RELOAD") end,
  555. args = {
  556. enable = {
  557. order = 1,
  558. name = L["Enable"],
  559. desc = L["Enables Buff Module"],
  560. width = "full",
  561. type = "toggle",
  562. },
  563. border = {
  564. order = 2,
  565. name = L["Border Style"],
  566. desc = L["Style of Border for Castbars."],
  567. disabled = function() return not db.castbar.enable end,
  568. type = "select",
  569. dialogControl = 'LSM30_Border', --Select your widget here
  570. values = AceGUIWidgetLSMlists.border,
  571. },
  572. background = {
  573. order = 3,
  574. name = L["Background Style"],
  575. desc = L["Style of Background for Castbars."],
  576. disabled = function() return not db.castbar.enable end,
  577. type = "select",
  578. dialogControl = 'LSM30_Background', --Select your widget here
  579. values = AceGUIWidgetLSMlists.background,
  580. },
  581. CastingBarFrame = {
  582. type = "group",
  583. order = 5,
  584. name = L["Player's Castbar."],
  585. desc = L["Settings for the Player Castbar."],
  586. guiInline = true,
  587. disabled = function() return not db.castbar.enable end,
  588. get = function(info) return db.castbar.CastingBarFrame[ info[#info] ] end,
  589. set = function(info, value) db.castbar.CastingBarFrame[ info[#info] ] = value; StaticPopup_Show("CFG_RELOAD") end,
  590. args = {
  591. enable = {
  592. order = 1,
  593. name = L["Enable"],
  594. desc = L["Enables Player's Castbar."],
  595. type = "toggle",
  596. disabled = function() return not db.castbar.enable end,
  597. },
  598. textPosition = {
  599. order = 2,
  600. name = L["Text Position"],
  601. desc = L["Spell Text Position."],
  602. disabled = function() return not db.castbar.enable or not db.castbar.CastingBarFrame.enable end,
  603. type = "select",
  604. values = B.regions;
  605. },
  606. enableLag = {
  607. order = 3,
  608. name = L["Enable Lag"],
  609. desc = L["Enables lag to show on castbar."],
  610. type = "toggle",
  611. disabled = function() return not db.castbar.enable or not db.castbar.CastingBarFrame.enable end,
  612. },
  613. enableTimer = {
  614. order = 4,
  615. name = L["Enable Timer"],
  616. desc = L["Enables timer to show on castbar."],
  617. type = "toggle",
  618. disabled = function() return not db.castbar.enable or not db.castbar.CastingBarFrame.enable end,
  619. },
  620. selfAnchor = {
  621. order = 5,
  622. name = L["Self Anchor"],
  623. desc = L["Self Anchor Position."],
  624. disabled = function() return not db.castbar.enable or not db.castbar.CastingBarFrame.enable end,
  625. type = "select",
  626. values = B.regions;
  627. },
  628. relAnchor = {
  629. order = 6,
  630. name = L["Relative Anchor"],
  631. desc = L["Relative Anchor Position."],
  632. disabled = function() return not db.castbar.enable or not db.castbar.CastingBarFrame.enable end,
  633. type = "select",
  634. values = B.regions;
  635. },
  636. offSetX = {
  637. order = 7,
  638. name = L["X Offset"],
  639. desc = L["Controls the X offset. (Left - Right)"],
  640. type = "range",
  641. min = -250, max = 250, step = 5,
  642. disabled = function() return not db.castbar.enable or not db.castbar.CastingBarFrame.enable end,
  643. },
  644. offSetY = {
  645. order = 8,
  646. name = L["Y Offset"],
  647. desc = L["Controls the Y offset. (Up - Down)"],
  648. type = "range",
  649. min = -250, max = 250, step = 5,
  650. disabled = function() return not db.castbar.enable or not db.castbar.CastingBarFrame.enable end,
  651. },
  652. },
  653. },
  654. TargetFrameSpellBar = {
  655. type = "group",
  656. order = 6,
  657. name = L["Target's Castbar."],
  658. desc = L["Settings for the Target Castbar."],
  659. guiInline = true,
  660. disabled = function() return not db.castbar.enable end,
  661. get = function(info) return db.castbar.TargetFrameSpellBar[ info[#info] ] end,
  662. set = function(info, value) db.castbar.TargetFrameSpellBar[ info[#info] ] = value; StaticPopup_Show("CFG_RELOAD") end,
  663. args = {
  664. enable = {
  665. order = 1,
  666. name = L["Enable"],
  667. desc = L["Enables Target's Castbar."],
  668. type = "toggle",
  669. disabled = function() return not db.castbar.enable end,
  670. },
  671. textPosition = {
  672. order = 2,
  673. name = L["Text Position"],
  674. desc = L["Spell Text Position."],
  675. disabled = function() return not db.castbar.enable or not db.castbar.TargetFrameSpellBar.enable end,
  676. type = "select",
  677. values = B.regions;
  678. },
  679. enableLag = {
  680. order = 3,
  681. name = L["Enable Lag"],
  682. desc = L["Enables lag to show on castbar."],
  683. type = "toggle",
  684. disabled = function() return not db.castbar.enable or not db.castbar.TargetFrameSpellBar.enable end,
  685. },
  686. enableTimer = {
  687. order = 4,
  688. name = L["Enable Timer"],
  689. desc = L["Enables timer to show on castbar."],
  690. type = "toggle",
  691. disabled = function() return not db.castbar.enable or not db.castbar.TargetFrameSpellBar.enable end,
  692. },
  693. selfAnchor = {
  694. order = 5,
  695. name = L["Self Anchor"],
  696. desc = L["Self Anchor Position."],
  697. disabled = function() return not db.castbar.enable or not db.castbar.TargetFrameSpellBar.enable end,
  698. type = "select",
  699. values = B.regions;
  700. },
  701. relAnchor = {
  702. order = 6,
  703. name = L["Relative Anchor"],
  704. desc = L["Relative Anchor Position."],
  705. disabled = function() return not db.castbar.enable or not db.castbar.TargetFrameSpellBar.enable end,
  706. type = "select",
  707. values = B.regions;
  708. },
  709. offSetX = {
  710. order = 7,
  711. name = L["X Offset"],
  712. desc = L["Controls the X offset. (Left - Right)"],
  713. type = "range",
  714. min = -250, max = 250, step = 5,
  715. disabled = function() return not db.castbar.enable or not db.castbar.TargetFrameSpellBar.enable end,
  716. },
  717. offSetY = {
  718. order = 8,
  719. name = L["Y Offset"],
  720. desc = L["Controls the Y offset. (Up - Down)"],
  721. type = "range",
  722. min = -250, max = 250, step = 5,
  723. disabled = function() return not db.castbar.enable or not db.castbar.TargetFrameSpellBar.enable end,
  724. },
  725. },
  726. },
  727. FocusFrameSpellBar = {
  728. type = "group",
  729. order = 7,
  730. name = L["Focus Castbar."],
  731. desc = L["Settings for the Focus Castbar."],
  732. guiInline = true,
  733. disabled = function() return not db.castbar.enable end,
  734. get = function(info) return db.castbar.FocusFrameSpellBar[ info[#info] ] end,
  735. set = function(info, value) db.castbar.FocusFrameSpellBar[ info[#info] ] = value; StaticPopup_Show("CFG_RELOAD") end,
  736. args = {
  737. enable = {
  738. order = 1,
  739. name = L["Enable"],
  740. desc = L["Enables Focus' Castbar."],
  741. type = "toggle",
  742. disabled = function() return not db.castbar.enable end,
  743. },
  744. textPosition = {
  745. order = 2,
  746. name = L["Text Position"],
  747. desc = L["Spell Text Position."],
  748. disabled = function() return not db.castbar.enable or not db.castbar.FocusFrameSpellBar.enable end,
  749. type = "select",
  750. values = B.regions;
  751. },
  752. enableLag = {
  753. order = 3,
  754. name = L["Enable Lag"],
  755. desc = L["Enables lag to show on castbar."],
  756. type = "toggle",
  757. disabled = function() return not db.castbar.enable or not db.castbar.FocusFrameSpellBar.enable end,
  758. },
  759. enableTimer = {
  760. order = 4,
  761. name = L["Enable Timer"],
  762. desc = L["Enables timer to show on castbar."],
  763. type = "toggle",
  764. disabled = function() return not db.castbar.enable or not db.castbar.FocusFrameSpellBar.enable end,
  765. },
  766. selfAnchor = {
  767. order = 5,
  768. name = L["Self Anchor"],
  769. desc = L["Self Anchor Position."],
  770. disabled = function() return not db.castbar.enable or not db.castbar.FocusFrameSpellBar.enable end,
  771. type = "select",
  772. values = B.regions;
  773. },
  774. relAnchor = {
  775. order = 6,
  776. name = L["Relative Anchor"],
  777. desc = L["Relative Anchor Position."],
  778. disabled = function() return not db.castbar.enable or not db.castbar.FocusFrameSpellBar.enable end,
  779. type = "select",
  780. values = B.regions;
  781. },
  782. offSetX = {
  783. order = 7,
  784. name = L["X Offset"],
  785. desc = L["Controls the X offset. (Left - Right)"],
  786. type = "range",
  787. min = -250, max = 250, step = 5,
  788. disabled = function() return not db.castbar.enable or not db.castbar.FocusFrameSpellBar.enable end,
  789. },
  790. offSetY = {
  791. order = 8,
  792. name = L["Y Offset"],
  793. desc = L["Controls the Y offset. (Up - Down)"],
  794. type = "range",
  795. min = -250, max = 250, step = 5,
  796. disabled = function() return not db.castbar.enable or not db.castbar.FocusFrameSpellBar.enable end,
  797. },
  798. },
  799. },
  800. MirrorTimer1 = {
  801. type = "group",
  802. order = 8,
  803. name = L["Mirror Timer."],
  804. desc = L["Settings for Mirror Timer."],
  805. guiInline = true,
  806. disabled = function() return not db.castbar.enable end,
  807. get = function(info) return db.castbar.MirrorTimer1[ info[#info] ] end,
  808. set = function(info, value) db.castbar.MirrorTimer1[ info[#info] ] = value; StaticPopup_Show("CFG_RELOAD") end,
  809. args = {
  810. enable = {
  811. order = 1,
  812. name = L["Enable"],
  813. desc = L["Enables Mirror Timer."],
  814. type = "toggle",
  815. disabled = function() return not db.castbar.enable end,
  816. },
  817. textPosition = {
  818. order = 2,
  819. name = L["Text Position"],
  820. desc = L["Spell Text Position."],
  821. disabled = function() return not db.castbar.enable or not db.castbar.MirrorTimer1.enable end,
  822. type = "select",
  823. values = B.regions;
  824. },
  825. enableTimer = {
  826. order = 3,
  827. name = L["Enable Timer"],
  828. desc = L["Enables timer to show on castbar."],
  829. type = "toggle",
  830. width = "full",
  831. disabled = function() return not db.castbar.enable or not db.castbar.MirrorTimer1.enable end,
  832. },
  833. selfAnchor = {
  834. order = 4,
  835. name = L["Self Anchor"],
  836. desc = L["Self Anchor Position."],
  837. disabled = function() return not db.castbar.enable or not db.castbar.MirrorTimer1.enable end,
  838. type = "select",
  839. values = B.regions;
  840. },
  841. relAnchor = {
  842. order = 5,
  843. name = L["Relative Anchor"],
  844. desc = L["Relative Anchor Position."],
  845. disabled = function() return not db.castbar.enable or not db.castbar.MirrorTimer1.enable end,
  846. type = "select",
  847. values = B.regions;
  848. },
  849. offSetX = {
  850. order = 6,
  851. name = L["X Offset"],
  852. desc = L["Controls the X offset. (Left - Right)"],
  853. type = "range",
  854. min = -250, max = 250, step = 5,
  855. disabled = function() return not db.castbar.enable or not db.castbar.MirrorTimer1.enable end,
  856. },
  857. offSetY = {
  858. order = 7,
  859. name = L["Y Offset"],
  860. desc = L["Controls the Y offset. (Up - Down)"],
  861. type = "range",
  862. min = -250, max = 250, step = 5,
  863. disabled = function() return not db.castbar.enable or not db.castbar.MirrorTimer1.enable end,
  864. },
  865. },
  866. },
  867. PetCastingBarFrame = {
  868. type = "group",
  869. order = 9,
  870. name = L["Pet Castbar"],
  871. desc = L["Settings for the Pet Casting Bar."],
  872. guiInline = true,
  873. disabled = function() return not db.castbar.enable end,
  874. get = function(info) return db.castbar.PetCastingBarFrame[ info[#info] ] end,
  875. set = function(info, value) db.castbar.PetCastingBarFrame[ info[#info] ] = value; StaticPopup_Show("CFG_RELOAD") end,
  876. args = {
  877. enable = {
  878. order = 1,
  879. name = L["Enable"],
  880. desc = L["Enables Pet's Castbar."],
  881. type = "toggle",
  882. disabled = function() return not db.castbar.enable end,
  883. },
  884. textPosition = {
  885. order = 2,
  886. name = L["Text Position"],
  887. desc = L["Spell Text Position."],
  888. disabled = function() return not db.castbar.enable or not db.castbar.PetCastingBarFrame.enable end,
  889. type = "select",
  890. values = B.regions;
  891. },
  892. enableTimer = {
  893. order = 3,
  894. name = L["Enable Timer."],
  895. desc = L["Enables timer to show on castbar."],
  896. type = "toggle",
  897. width = "full",
  898. disabled = function() return not db.castbar.enable or not db.castbar.PetCastingBarFrame.enable end,
  899. },
  900. selfAnchor = {
  901. order = 4,
  902. name = L["Self Anchor"],
  903. desc = L["Self Anchor Position."],
  904. disabled = function() return not db.castbar.enable or not db.castbar.PetCastingBarFrame.enable end,
  905. type = "select",
  906. values = B.regions;
  907. },
  908. relAnchor = {
  909. order = 5,
  910. name = L["Relative Anchor"],
  911. desc = L["Relative Anchor Position."],
  912. disabled = function() return not db.castbar.enable or not db.castbar.PetCastingBarFrame.enable end,
  913. type = "select",
  914. values = B.regions;
  915. },
  916. offSetX = {
  917. order = 6,
  918. name = L["X Offset."],
  919. desc = L["Controls the X offset. (Left - Right)"],
  920. type = "range",
  921. min = -250, max = 250, step = 5,
  922. disabled = function() return not db.castbar.enable or not db.castbar.PetCastingBarFrame.enable end,
  923. },
  924. offSetY = {
  925. order = 7,
  926. name = L["Y Offset."],
  927. desc = L["Controls the Y offset. (Up - Down)"],
  928. type = "range",
  929. min = -250, max = 250, step = 5,
  930. disabled = function() return not db.castbar.enable or not db.castbar.PetCastingBarFrame.enable end,
  931. },
  932. },
  933. },
  934. },
  935. },
  936. chat = {
  937. order = 4,
  938. type = "group",
  939. name = L["|cff00B4FFChat|r"],
  940. desc = L["Chat Module for |cff00B4FFBasic|rUI."],
  941. childGroups = "tree",
  942. get = function(info) return db.chat[ info[#info] ] end,
  943. set = function(info, value) db.chat[ info[#info] ] = value; StaticPopup_Show("CFG_RELOAD") end,
  944. args = {
  945. intro = {
  946. order = 1,
  947. type = "description",
  948. name = L["Modify the chat window and settings."],
  949. },
  950. enable = {
  951. order = 2,
  952. name = L["Enable"],
  953. desc = L["Enables Chat Module."],
  954. type = "toggle",
  955. },
  956. windowborder = {
  957. order = 3,
  958. name = L["Window Border"],
  959. desc = L["Enables Chat Window Border."],
  960. disabled = function() return not db.chat.enable end,
  961. type = "toggle",
  962. },
  963. border = {
  964. order = 4,
  965. name = L["Border Style"],
  966. desc = L["Style of Border for Chat Window."],
  967. disabled = function() return not db.chat.enable end,
  968. type = "select",
  969. dialogControl = 'LSM30_Border', --Select your widget here
  970. values = AceGUIWidgetLSMlists.border,
  971. },
  972. background = {
  973. order = 5,
  974. name = L["Background Style"],
  975. desc = L["Style of Background for Chat Window."],
  976. disabled = function() return not db.chat.enable end,
  977. type = "select",
  978. dialogControl = 'LSM30_Background', --Select your widget here
  979. values = AceGUIWidgetLSMlists.background,
  980. },
  981. editboxborder = {
  982. order = 6,
  983. name = L["Editbox Border Style"],
  984. desc = L["Style of Editbox Border for Chat."],
  985. disabled = function() return not db.chat.enable end,
  986. type = "select",
  987. dialogControl = 'LSM30_Border', --Select your widget here
  988. values = AceGUIWidgetLSMlists.border,
  989. },
  990. editboxbackground = {
  991. order = 7,
  992. name = L["Editbox Background Style"],
  993. desc = L["Style of Editbox Background for Chat."],
  994. disabled = function() return not db.chat.enable end,
  995. type = "select",
  996. dialogControl = 'LSM30_Background', --Select your widget here
  997. values = AceGUIWidgetLSMlists.background,
  998. },
  999. sound = {
  1000. order = 8,
  1001. name = L["Whisper Sound"],
  1002. desc = L["MP3 that Will Play when you get a Whisper."],
  1003. disabled = function() return not db.chat.enable end,
  1004. type = "select",
  1005. dialogControl = 'LSM30_Sound', --Select your widget here
  1006. values = AceGUIWidgetLSMlists.sound,
  1007. },
  1008. disableFade = {
  1009. order = 9,
  1010. name = L["Disable Fade"],
  1011. desc = L["Disables Chat Fading."],
  1012. type = "toggle",
  1013. disabled = function() return not db.chat.enable end,
  1014. },
  1015. chatOutline = {
  1016. order = 10,
  1017. name = L["Chat Outline"],
  1018. desc = L["Outlines the chat Text."],
  1019. type = "toggle",
  1020. disabled = function() return not db.chat.enable end,
  1021. },
  1022. enableBottomButton = {
  1023. order = 11,
  1024. name = L["Enable Bottom Button"],
  1025. desc = L["Enables the scroll down button in the lower right hand corner."],
  1026. type = "toggle",
  1027. disabled = function() return not db.chat.enable end,
  1028. },
  1029. enableHyperlinkTooltip = {
  1030. order = 12,
  1031. name = L["Enable Hyplerlink Tooltip"],
  1032. desc = L["Enables the mouseover items in chat tooltip."],
  1033. type = "toggle",
  1034. disabled = function() return not db.chat.enable end,
  1035. },
  1036. enableBorderColoring = {
  1037. order = 13,
  1038. name = L["Enable Editbox Channel Border Coloring"],
  1039. desc = L["Enables the coloring of the border to the edit box to match what channel you are typing in."],
  1040. type = "toggle",
  1041. disabled = function() return not db.chat.enable end,
  1042. },
  1043. tab = {
  1044. type = "group",
  1045. order = 14,
  1046. name = L["Tabs"],
  1047. desc = L["Tab Font Settings."],
  1048. guiInline = true,
  1049. disabled = function() return not db.chat.enable end,
  1050. get = function(info) return db.chat.tab[ info[#info] ] end,
  1051. set = function(info, value) db.chat.tab[ info[#info] ] = value; StaticPopup_Show("CFG_RELOAD") end,
  1052. args = {
  1053. fontSize = {
  1054. type = "range",
  1055. order = 1,
  1056. name = L["Font Size"],
  1057. desc = L["Controls the size of the tab font"],
  1058. width = "full",
  1059. type = "range",
  1060. min = 9, max = 20, step = 1,
  1061. },
  1062. fontOutline = {
  1063. order = 2,
  1064. name = L["Outline Tab Font"],
  1065. desc = L["Enables the outlineing of tab font."],
  1066. type = "toggle",
  1067. },
  1068. normalColor = {
  1069. order = 3,
  1070. type = "color",
  1071. name = L["Tab Normal Color"],
  1072. desc = L["Picks the Normal Color of the Chat Tab."],
  1073. hasAlpha = false,
  1074. disabled = function() return not db.chat.enable end,
  1075. get = function(info)
  1076. local hb = db.chat.tab[ info[#info] ]
  1077. return hb.r, hb.g, hb.b
  1078. end,
  1079. set = function(info, r, g, b)
  1080. db.chat.tab[ info[#info] ] = {}
  1081. local hb = db.chat.tab[ info[#info] ]
  1082. hb.r, hb.g, hb.b = r, g, b
  1083. StaticPopup_Show("CFG_RELOAD")
  1084. end,
  1085. },
  1086. specialColor = {
  1087. order = 4,
  1088. type = "color",
  1089. name = L["Tab Special Color"],
  1090. desc = L["Picks the Special Color of the Chat Tab."],
  1091. hasAlpha = false,
  1092. disabled = function() return not db.chat.enable end,
  1093. get = function(info)
  1094. local hb = db.chat.tab[ info[#info] ]
  1095. return hb.r, hb.g, hb.b
  1096. end,
  1097. set = function(info, r, g, b)
  1098. db.chat.tab[ info[#info] ] = {}
  1099. local hb = db.chat.tab[ info[#info] ]
  1100. hb.r, hb.g, hb.b = r, g, b
  1101. StaticPopup_Show("CFG_RELOAD")
  1102. end,
  1103. },
  1104. selectedColor = {
  1105. order = 5,
  1106. type = "color",
  1107. name = L["Tab Selected Color"],
  1108. desc = L["Picks the Selected Color of the Chat Tab."],
  1109. hasAlpha = false,
  1110. disabled = function() return not db.chat.enable end,
  1111. get = function(info)
  1112. local hb = db.chat.tab[ info[#info] ]
  1113. return hb.r, hb.g, hb.b
  1114. end,
  1115. set = function(info, r, g, b)
  1116. db.chat.tab[ info[#info] ] = {}
  1117. local hb = db.chat.tab[ info[#info] ]
  1118. hb.r, hb.g, hb.b = r, g, b
  1119. StaticPopup_Show("CFG_RELOAD")
  1120. end,
  1121. },
  1122. },
  1123. },
  1124. },
  1125. },
  1126. datatext = {
  1127. order = 5,
  1128. type = "group",
  1129. name = L["|cff00B4FFDatatext|r"],
  1130. desc = L["Datatext Module for |cff00B4FFBasic|rUI."],
  1131. childGroups = "tree",
  1132. get = function(info) return db.datatext[ info[#info] ] end,
  1133. set = function(info, value) db.datatext[ info[#info] ] = value; StaticPopup_Show("CFG_RELOAD") end,
  1134. args = {
  1135. enable = {
  1136. order = 1,
  1137. name = L["Enable"],
  1138. desc = L["Enables Datatext Module."],
  1139. type = "toggle",
  1140. },
  1141. time24 = {
  1142. order = 2,
  1143. type = "toggle",
  1144. name = L["24-Hour Time"],
  1145. desc = L["Display time datatext on a 24 hour time scale"],
  1146. disabled = function() return not db.datatext.enable end,
  1147. },
  1148. bag = {
  1149. order = 3,
  1150. type = "toggle",
  1151. name = L["Bag Open"],
  1152. desc = L["Checked opens Backpack only, Unchecked opens all bags."],
  1153. disabled = function() return not db.datatext.enable end,
  1154. },
  1155. battleground = {
  1156. order = 4,
  1157. type = "toggle",
  1158. name = L["Battleground Text"],
  1159. desc = L["Display special datatexts when inside a battleground"],
  1160. disabled = function() return not db.datatext.enable end,
  1161. },
  1162. top = {
  1163. order = 5,
  1164. name = L["Datapanel Top"],
  1165. desc = L["If checked then panel moves to top of screen, If unchecked panel moves below MainMenuBar"],
  1166. type = "toggle",
  1167. disabled = function() return not db.datatext.enable end,
  1168. },
  1169. localtime = {
  1170. order = 6,
  1171. type = "toggle",
  1172. name = L["Local Time"],
  1173. desc = L["Display local time instead of server time"],
  1174. disabled = function() return not db.datatext.enable end,
  1175. },
  1176. recountraiddps = {
  1177. order = 7,
  1178. type = "toggle",
  1179. name = L["Recount Raid DPS"],
  1180. desc = L["Display Recount's Raid DPS (RECOUNT MUST BE INSTALLED)"],
  1181. disabled = function() return not db.datatext.enable end,
  1182. },
  1183. threatbar = {
  1184. order = 8,
  1185. type = "toggle",
  1186. name = L["Threatbar"],
  1187. desc = L["Display Threat Text in center of panel."],
  1188. disabled = function() return not db.datatext.enable end,
  1189. },
  1190. fontsize = {
  1191. order = 9,
  1192. name = L["Font Scale"],
  1193. desc = L["Font size for datatexts"],
  1194. width = "full",
  1195. type = "range",
  1196. min = 9, max = 25, step = 1,
  1197. disabled = function() return not db.datatext.enable end,
  1198. },
  1199. border = {
  1200. order = 10,
  1201. name = L["Border Style"],
  1202. desc = L["Style of Border for Castbars."],
  1203. disabled = function() return not db.castbar.enable end,
  1204. type = "select",
  1205. dialogControl = 'LSM30_Border', --Select your widget here
  1206. values = AceGUIWidgetLSMlists.border,
  1207. },
  1208. background = {
  1209. order = 11,
  1210. name = L["Background Style"],
  1211. desc = L["Style of Background for Castbars."],
  1212. disabled = function() return not db.castbar.enable end,
  1213. type = "select",
  1214. dialogControl = 'LSM30_Background', --Select your widget here
  1215. values = AceGUIWidgetLSMlists.background,
  1216. },
  1217. colors = {
  1218. order = 12,
  1219. type = "group",
  1220. name = L["Text Colors"],
  1221. guiInline = true,
  1222. get = function(info) return db.datatext.colors[ info[#info] ] end,
  1223. set = function(info, value) db.datatext.colors[ info[#info] ] = value; StaticPopup_Show("CFG_RELOAD") end,
  1224. disabled = function() return not db.datatext.enable end,
  1225. args = {
  1226. classcolor = {
  1227. order = 1,
  1228. type = "toggle",
  1229. name = L["Class Color"],
  1230. desc = L["Color the datatext values based on your class"],
  1231. disabled = function() return not db.datatext.enable end,
  1232. },
  1233. color = {
  1234. order = 2,
  1235. type = "color",
  1236. name = L["Custom Color"],
  1237. desc = L["Picks a Custom Color for the datatext values."],
  1238. disabled = function() return db.datatext.colors.classcolor or not db.datatext.enable end,
  1239. get = function(info)
  1240. local hb = db.datatext.colors[ info[#info] ]
  1241. return hb.r, hb.g, hb.b
  1242. end,
  1243. set = function(info, r, g, b)
  1244. db.datatext.colors[ info[#info] ] = {}
  1245. local hb = db.datatext.colors[ info[#info] ]
  1246. hb.r, hb.g, hb.b = r, g, b
  1247. StaticPopup_Show("CFG_RELOAD")
  1248. end,
  1249. },
  1250. },
  1251. },
  1252. DataGroup = {
  1253. order = 13,
  1254. type = "group",
  1255. name = L["Text Positions"],
  1256. disabled = function() return not db.datatext.enable end,
  1257. args = {
  1258. bags = {
  1259. order = 1,
  1260. type = "range",
  1261. name = L["Bags"],
  1262. desc = L["Display ammount of bag space"]..L["\n\n0 - Disabled\n1 - POSITION #1\n2 - POSITION #2\n3 - POSITION #3\n4 - POSITION #4\n5 - POSITION #5\n6 - POSITION #6\n7 - POSITION #7\n8 - POSITION #8\n9 - POSITION #9"],
  1263. min = 0, max = 9, step = 1,
  1264. },
  1265. calltoarms = {
  1266. order = 2,
  1267. type = "range",
  1268. name = L["Call to Arms"],
  1269. desc = L["Display the active roles that will recieve a reward for completing a random dungeon"]..L["\n\n0 - Disabled\n1 - POSITION #1\n2 - POSITION #2\n3 - POSITION #3\n4 - POSITION #4\n5 - POSITION #5\n6 - POSITION #6\n7 - POSITION #7\n8 - POSITION #8\n9 - POSITION #9"],
  1270. min = 0, max = 9, step = 1,
  1271. },
  1272. coords = {
  1273. order = 3,
  1274. type = "range",
  1275. name = L["Coordinates"],
  1276. desc = L["Display Player's Coordinates"]..L["\n\n0 - Disabled\n1 - POSITION #1\n2 - POSITION #2\n3 - POSITION #3\n4 - POSITION #4\n5 - POSITION #5\n6 - POSITION #6\n7 - POSITION #7\n8 - POSITION #8\n9 - POSITION #9"],
  1277. min = 0, max = 9, step = 1,
  1278. },
  1279. dps_text = {
  1280. order = 4,
  1281. type = "range",
  1282. name = L["DPS"],
  1283. desc = L["Display ammount of DPS"]..L["\n\n0 - Disabled\n1 - POSITION #1\n2 - POSITION #2\n3 - POSITION #3\n4 - POSITION #4\n5 - POSITION #5\n6 - POSITION #6\n7 - POSITION #7\n8 - POSITION #8\n9 - POSITION #9"],
  1284. min = 0, max = 9, step = 1,
  1285. },
  1286. dur = {
  1287. order = 5,
  1288. type = "range",
  1289. name = L["Durability"],
  1290. desc = L["Display your current durability"]..L["\n\n0 - Disabled\n1 - POSITION #1\n2 - POSITION #2\n3 - POSITION #3\n4 - POSITION #4\n5 - POSITION #5\n6 - POSITION #6\n7 - POSITION #7\n8 - POSITION #8\n9 - POSITION #9"],
  1291. min = 0, max = 9, step = 1,
  1292. },
  1293. friends = {
  1294. order = 6,
  1295. type = "range",
  1296. name = L["Friends"],
  1297. desc = L["Display current online friends"]..L["\n\n0 - Disabled\n1 - POSITION #1\n2 - POSITION #2\n3 - POSITION #3\n4 - POSITION #4\n5 - POSITION #5\n6 - POSITION #6\n7 - POSITION #7\n8 - POSITION #8\n9 - POSITION #9"],
  1298. min = 0, max = 9, step = 1,
  1299. },
  1300. guild = {
  1301. order = 7,
  1302. type = "range",
  1303. name = L["Guild"],
  1304. desc = L["Display current online people in guild"]..L["\n\n0 - Disabled\n1 - POSITION #1\n2 - POSITION #2\n3 - POSITION #3\n4 - POSITION #4\n5 - POSITION #5\n6 - POSITION #6\n7 - POSITION #7\n8 - POSITION #8\n9 - POSITION #9"],
  1305. min = 0, max = 9, step = 1,
  1306. },
  1307. hps_text = {
  1308. order = 8,
  1309. type = "range",
  1310. name = L["HPS"],
  1311. desc = L["Display ammount of HPS"]..L["\n\n0 - Disabled\n1 - POSITION #1\n2 - POSITION #2\n3 - POSITION #3\n4 - POSITION #4\n5 - POSITION #5\n6 - POSITION #6\n7 - POSITION #7\n8 - POSITION #8\n9 - POSITION #9"],
  1312. min = 0, max = 9, step = 1,
  1313. },
  1314. pro = {
  1315. order = 10,
  1316. type = "range",
  1317. name = L["Professions"],
  1318. desc = L["Display Professions"]..L["\n\n0 - Disabled\n1 - POSITION #1\n2 - POSITION #2\n3 - POSITION #3\n4 - POSITION #4\n5 - POSITION #5\n6 - POSITION #6\n7 - POSITION #7\n8 - POSITION #8\n9 - POSITION #9"],
  1319. min = 0, max = 9, step = 1,
  1320. },
  1321. recount = {
  1322. order = 11,
  1323. type = "range",
  1324. name = L["Recount"],
  1325. desc = L["Display Recount's DPS (RECOUNT MUST BE INSTALLED)"]..L["\n\n0 - Disabled\n1 - POSITION #1\n2 - POSITION #2\n3 - POSITION #3\n4 - POSITION #4\n5 - POSITION #5\n6 - POSITION #6\n7 - POSITION #7\n8 - POSITION #8\n9 - POSITION #9"],
  1326. min = 0, max = 9, step = 1,
  1327. },
  1328. spec = {
  1329. order = 12,
  1330. type = "range",
  1331. name = L["Talent Spec"],
  1332. desc = L["Display current spec"]..L["\n\n0 - Disabled\n1 - POSITION #1\n2 - POSITION #2\n3 - POSITION #3\n4 - POSITION #4\n5 - POSITION #5\n6 - POSITION #6\n7 - POSITION #7\n8 - POSITION #8\n9 - POSITION #9"],
  1333. min = 0, max = 9, step = 1,
  1334. },
  1335. stat1 = {
  1336. order = 13,
  1337. type = "range",
  1338. name = L["Stat #1"],
  1339. desc = L["Display stat based on your role (Avoidance-Tank, AP-Melee, SP/HP-Caster)"]..L["\n\n0 - Disabled\n1 - POSITION #1\n2 - POSITION #2\n3 - POSITION #3\n4 - POSITION #4\n5 - POSITION #5\n6 - POSITION #6\n7 - POSITION #7\n8 - POSITION #8\n9 - POSITION #9"],
  1340. min = 0, max = 9, step = 1,
  1341. },
  1342. stat2 = {
  1343. order = 14,
  1344. type = "range",
  1345. name = L["Stat #2"],
  1346. desc = L["Display stat based on your role (Armor-Tank, Crit-Melee, Crit-Caster)"]..L["\n\n0 - Disabled\n1 - POSITION #1\n2 - POSITION #2\n3 - POSITION #3\n4 - POSITION #4\n5 - POSITION #5\n6 - POSITION #6\n7 - POSITION #7\n8 - POSITION #8\n9 - POSITION #9"],
  1347. min = 0, max = 9, step = 1,
  1348. },
  1349. system = {
  1350. order = 15,
  1351. type = "range",
  1352. name = L["System"],
  1353. desc = L["Display FPS and Latency"]..L["\n\n0 - Disabled\n1 - POSITION #1\n2 - POSITION #2\n3 - POSITION #3\n4 - POSITION #4\n5 - POSITION #5\n6 - POSITION #6\n7 - POSITION #7\n8 - POSITION #8\n9 - POSITION #9"],
  1354. min = 0, max = 9, step = 1,
  1355. },
  1356. wowtime = {
  1357. order = 16,
  1358. type = "range",
  1359. name = L["Time"],
  1360. desc = L["Display current time"]..L["\n\n0 - Disabled\n1 - POSITION #1\n2 - POSITION #2\n3 - POSITION #3\n4 - POSITION #4\n5 - POSITION #5\n6 - POSITION #6\n7 - POSITION #7\n8 - POSITION #8\n9 - POSITION #9"],
  1361. min = 0, max = 9, step = 1,
  1362. },
  1363. zone = {
  1364. order = 17,
  1365. type = "range",
  1366. name = L["Zone"],
  1367. desc = L["Display Player's Current Zone."]..L["\n\n0 - Disabled\n1 - POSITION #1\n2 - POSITION #2\n3 - POSITION #3\n4 - POSITION #4\n5 - POSITION #5\n6 - POSITION #6\n7 - POSITION #7\n8 - POSITION #8\n9 - POSITION #9"],
  1368. min = 0, max = 9, step = 1,
  1369. },
  1370. },
  1371. },
  1372. },
  1373. },
  1374. merchant = {
  1375. order = 6,
  1376. type = "group",
  1377. name = L["|cff00B4FFMerchant|r"],
  1378. desc = L["Merchant Module for |cff00B4FFBasic|rUI."],
  1379. childGroups = "tree",
  1380. get = function(info) return db.merchant[ info[#info] ] end,
  1381. set = function(info, value) db.merchant[ info[#info] ] = value; StaticPopup_Show("CFG_RELOAD") end,
  1382. args = {
  1383. enable = {
  1384. type = "toggle",
  1385. order = 1,
  1386. name = L["Enable"],
  1387. desc = L["Enable Merchant Settings"],
  1388. },
  1389. autoRepair = {
  1390. type = "toggle",
  1391. order = 2,
  1392. name = L["Auto Repair"],
  1393. desc = L["Automatically repair when visiting a vendor"],
  1394. disabled = function() return not db.merchant.enable end,
  1395. },
  1396. autoSellGrey = {
  1397. type = "toggle",
  1398. order = 3,
  1399. name = L["Sell Grays"],
  1400. desc = L["Automatically sell gray items when visiting a vendor"],
  1401. disabled = function() return not db.merchant.enable end,
  1402. },
  1403. sellMisc = {
  1404. type = "toggle",
  1405. order = 4,
  1406. name = L["Sell Misc Items"],
  1407. desc = L["Automatically sell a user selected item."],
  1408. disabled = function() return not db.merchant.enable end,
  1409. },
  1410. },
  1411. },
  1412. minimap = {
  1413. type = "group",
  1414. order = 7,
  1415. name = L["|cff00B4FFMinimap|r"],
  1416. desc = L["Enables Minimap Modifications."],
  1417. get = function(info) return db.minimap[ info[#info] ] end,
  1418. set = function(info, value) db.minimap[ info[#info] ] = value; StaticPopup_Show("CFG_RELOAD") end,
  1419. args = {
  1420. enable = {
  1421. order = 1,
  1422. name = L["Enable"],
  1423. desc = L["Enables Minimap Modifications."],
  1424. type = "toggle",
  1425. width = "full"
  1426. },
  1427. farm = {
  1428. order = 2,
  1429. name = L["Farming"],
  1430. desc = L["Enlarges the Minimap when Farming."],
  1431. disabled = function() return not db.minimap.enable end,
  1432. type = "toggle",
  1433. },
  1434. farmscale = {
  1435. name = L["Farming Map Scale"],
  1436. desc = L["Controls the Size of the Farming Map"],
  1437. order = 3,
  1438. disabled = function() return not db.minimap.enable or not db.minimap.farm end,
  1439. type = "range",
  1440. min = 1, max = 5, step = 0.1,
  1441. },
  1442. gameclock = {
  1443. order = 4,
  1444. name = L["Game Clock"],
  1445. desc = L["Enable the Clock Frame on Minimap."],
  1446. disabled = function() return not db.minimap.enable end,
  1447. type = "toggle",
  1448. },
  1449. border = {
  1450. name = L["Border Style"],
  1451. desc = L["Style of Border for Minimap."],
  1452. order = 5,
  1453. disabled = function() return not db.minimap.enable end,
  1454. type = "select",
  1455. dialogControl = 'LSM30_Border', --Select your widget here
  1456. values = AceGUIWidgetLSMlists.border,
  1457. },
  1458. zoneText = {
  1459. order = 6,
  1460. name = L["Zone Text"],
  1461. desc = L["Enable Mouseover Zone Text."],
  1462. disabled = function() return not db.minimap.enable end,
  1463. type = "toggle",
  1464. },
  1465. instanceDifficulty = {
  1466. order = 7,
  1467. name = L["Instance Difficulty"],
  1468. desc = L["Enable Mouseover Instance Difficulty."],
  1469. disabled = function() return not db.minimap.enable end,
  1470. type = "toggle",
  1471. },
  1472. },
  1473. },
  1474. nameplates = {
  1475. order = 6,
  1476. type = "group",
  1477. name = L["|cff00B4FFNameplate|r"],
  1478. desc = L["Nameplate Module for |cff00B4FFBasic|rUI."],
  1479. get = function(info) return db.nameplates[ info[#info] ] end,
  1480. set = function(info, value) db.nameplates[ info[#info] ] = value; StaticPopup_Show("CFG_RELOAD") end,
  1481. args = {
  1482. enable = {
  1483. type = "toggle",
  1484. order = 2,
  1485. width = "full",
  1486. name = L["Enable"],
  1487. desc = L["Enable Nameplate Settings"],
  1488. },
  1489. enableTankMode = {
  1490. type = "toggle",
  1491. order = 3,
  1492. name = L["Enable Tank Mode"],
  1493. disabled = function() return not db.nameplates.enable end,
  1494. },
  1495. colorNameWithThreat = {
  1496. type = "toggle",
  1497. order = 4,
  1498. name = L["Color Name With Threat"],
  1499. disabled = function() return not db.nameplates.enable end,
  1500. },
  1501. showFullHP = {
  1502. type = "toggle",
  1503. order = 5,
  1504. name = L["Show Full HP"],
  1505. disabled = function() return not db.nameplates.enable end,
  1506. },
  1507. showLevel = {
  1508. type = "toggle",
  1509. order = 6,
  1510. name = L["Show Level"],
  1511. disabled = function() return not db.nameplates.enable end,
  1512. },
  1513. showTargetBorder = {
  1514. type = "toggle",
  1515. order = 7,
  1516. name = L["Show Target Border"],
  1517. disabled = function() return not db.nameplates.enable end,
  1518. },
  1519. showEliteBorder = {
  1520. type = "toggle",
  1521. order = 8,
  1522. name = L["Show Elite Border"],
  1523. disabled = function() return not db.nameplates.enable end,
  1524. },
  1525. showTotemIcon = {
  1526. type = "toggle",
  1527. order = 9,
  1528. name = L["Show Totem Icon"],
  1529. disabled = function() return not db.nameplates.enable end,
  1530. },
  1531. abbrevLongNames = {
  1532. type = "toggle",
  1533. order = 9,
  1534. name = L["Abbrev Long Names"],
  1535. disabled = function() return not db.nameplates.enable end,
  1536. },
  1537. },
  1538. },
  1539. powerbar = {
  1540. order = 9,
  1541. type = "group",
  1542. name = L["|cff00B4FFPowerbar|r"],
  1543. desc = L["Powerbar Module for |cff00B4FFBasic|rUI."],
  1544. childGroups = "tree",
  1545. get = function(info) return db.powerbar[ info[#info] ] end,
  1546. set = function(info, value) db.powerbar[ info[#info] ] = value; StaticPopup_Show("CFG_RELOAD") end,
  1547. args = {
  1548. enable = {
  1549. type = "toggle",
  1550. order = 1,
  1551. width = "full",
  1552. name = L["Enable"],
  1553. desc = L["Enable Powerbar Settings"],
  1554. },
  1555. border = {
  1556. order = 2,
  1557. name = L["Border Style"],
  1558. desc = L["Style of Border for Powerbar."],
  1559. disabled = function() return not db.powerbar.enable end,
  1560. type = "select",
  1561. dialogControl = 'LSM30_Border', --Select your widget here
  1562. values = AceGUIWidgetLSMlists.border,
  1563. },
  1564. statusbar = {
  1565. order = 3,
  1566. name = L["Statusbar Style"],
  1567. desc = L["Style of Statusbar for Powerbar."],
  1568. disabled = function() return not db.powerbar.enable end,
  1569. type = "select",
  1570. dialogControl = 'LSM30_Statusbar', --Select your widget here
  1571. values = AceGUIWidgetLSMlists.statusbar,
  1572. },
  1573. showCombatRegen = {
  1574. order = 4,
  1575. name = L["CombatRegen"],
  1576. desc = L["Shows a players Regen while in combat."],
  1577. type = "toggle",
  1578. disabled = function() return not db.powerbar.enable end,
  1579. },
  1580. showEclipseBar = {
  1581. order = 5,
  1582. name = L["Eclipsebar"],
  1583. desc = L["Move the Eclipsebar above Powerbar."],
  1584. type = "toggle",
  1585. disabled = function() return not db.powerbar.enable end,
  1586. },
  1587. showSoulshards = {
  1588. order = 6,
  1589. name = L["Soulshards"],
  1590. desc = L["Shows Shards as a number value."],
  1591. type = "toggle",
  1592. disabled = function() return not db.powerbar.enable end,
  1593. },
  1594. showHolypower = {
  1595. order = 7,
  1596. name = L["Holypower"],
  1597. desc = L["Shows Holypower as a number value."],
  1598. type = "toggle",
  1599. disabled = function() return not db.powerbar.enable end,
  1600. },
  1601. showComboPoints = {
  1602. order = 8,
  1603. name = L["ComboPoints"],
  1604. desc = L["Shows ComboPoints as a number value."],
  1605. type = "toggle",
  1606. disabled = function() return not db.powerbar.enable end,
  1607. },
  1608. showRuneCooldown = {
  1609. order = 9,
  1610. name = L["Rune Cooldown"],
  1611. desc = L["Shows Runes cooldowns as numbers."],
  1612. type = "toggle",
  1613. disabled = function() return not db.powerbar.enable end,
  1614. },
  1615. energybar = {
  1616. order = 10,
  1617. name = L["Energybar"],
  1618. desc = L["Shows Energy Powerbar."],
  1619. type = "toggle",
  1620. disabled = function() return not db.powerbar.enable end,
  1621. },
  1622. focusbar = {
  1623. order = 11,
  1624. name = L["Focusbar"],
  1625. desc = L["Shows Focus Powerbar."],
  1626. type = "toggle",
  1627. disabled = function() return not db.powerbar.enable end,
  1628. },
  1629. manabar = {
  1630. order = 12,
  1631. name = L["Manabar"],
  1632. desc = L["Shows Mana Powerbar."],
  1633. type = "toggle",
  1634. disabled = function() return not db.powerbar.enable end,
  1635. },
  1636. ragebar = {
  1637. order = 13,
  1638. name = L["Ragebar"],
  1639. desc = L["Shows Rage Powerbar."],
  1640. type = "toggle",
  1641. disabled = function() return not db.powerbar.enable end,
  1642. },
  1643. runebar = {
  1644. order = 14,
  1645. name = L["Runebar"],
  1646. desc = L["Shows Rune Powerbar."],
  1647. type = "toggle",
  1648. disabled = function() return not db.powerbar.enable end,
  1649. },
  1650. sizeWidth= {
  1651. order = 15,
  1652. name = L["Width"],
  1653. desc = L["Controls the width of Powerbar."],
  1654. type = "range",
  1655. min = 50, max = 350, step = 25,
  1656. disabled = function() return not db.powerbar.enable end,
  1657. },
  1658. combo = {
  1659. type = "group",
  1660. order = 16,
  1661. name = L["Combo"],
  1662. desc = L["Combo Points Options"],
  1663. guiInline = true,
  1664. disabled = function() return not db.powerbar.enable end,
  1665. get = function(info) return db.powerbar.combo[ info[#info] ] end,
  1666. set = function(info, value) db.powerbar.combo[ info[#info] ] = value; StaticPopup_Show("CFG_RELOAD") end,
  1667. args = {
  1668. FontOutline = {
  1669. order = 1,
  1670. name = L["Font Outline"],
  1671. desc = L["Adds a font outline to ComboPoints."],
  1672. type = "toggle",
  1673. disabled = function() return not db.powerbar.enable end,
  1674. },
  1675. FontSize= {
  1676. order = 2,
  1677. name = L["Font Size"],
  1678. desc = L["Controls the ComboPoints font size."],
  1679. type = "range",
  1680. min = 8, max = 25, step = 1,
  1681. disabled = function() return not db.powerbar.enable end,
  1682. },
  1683. },
  1684. },
  1685. extra = {
  1686. type = "group",
  1687. order = 17,
  1688. name = L["Extra"],
  1689. desc = L["Options for Soulshards and Holypower Text."],
  1690. guiInline = true,
  1691. disabled = function() return not db.powerbar.enable end,
  1692. get = function(info) return db.powerbar.extra[ info[#info] ] end,
  1693. set = function(info, value) db.powerbar.extra[ info[#info] ] = value; StaticPopup_Show("CFG_RELOAD") end,
  1694. args = {
  1695. FontOutline = {
  1696. order = 1,
  1697. name = L["Font Outline"],
  1698. desc = L["Adds a font outline to Extra."],
  1699. type = "toggle",
  1700. disabled = function() return not db.powerbar.enable end,
  1701. },
  1702. FontSize= {
  1703. order = 2,
  1704. name = L["Font Size"],
  1705. desc = L["Controls the Extra font size."],
  1706. type = "range",
  1707. min = 8, max = 25, step = 1,
  1708. disabled = function() return not db.powerbar.enable end,
  1709. },
  1710. },
  1711. },
  1712. rune = {
  1713. type = "group",
  1714. order = 18,
  1715. name = L["Rune"],
  1716. desc = L["Options for Rune Text."],
  1717. guiInline = true,
  1718. disabled = function() return not db.powerbar.enable end,
  1719. get = function(info) return db.powerbar.rune[ info[#info] ] end,
  1720. set = function(info, value) db.powerbar.rune[ info[#info] ] = value; StaticPopup_Show("CFG_RELOAD") end,
  1721. args = {
  1722. FontOutline = {
  1723. order = 1,
  1724. name = L["Font Outline"],
  1725. desc = L["Adds a font outline to Runes."],
  1726. type = "toggle",
  1727. disabled = function() return not db.powerbar.enable end,
  1728. },
  1729. FontSize= {
  1730. order = 2,
  1731. name = L["Font Size"],
  1732. desc = L["Controls the Runes font size."],
  1733. type = "range",
  1734. min = 8, max = 25, step = 1,
  1735. disabled = function() return not db.powerbar.enable end,
  1736. },
  1737. },
  1738. },
  1739. value = {
  1740. type = "group",
  1741. order = 19,
  1742. name = L["Value"],
  1743. desc = L["Shows the Value on the PowerBar."],
  1744. guiInline = true,
  1745. disabled = function() return not db.powerbar.enable end,
  1746. get = function(info) return db.powerbar.value[ info[#info] ] end,
  1747. set = function(info, value) db.powerbar.value[ info[#info] ] = value; StaticPopup_Show("CFG_RELOAD") end,
  1748. args = {
  1749. Abbrev = {
  1750. order = 1,
  1751. name = L["Abbrev"],
  1752. desc = L["Abbreviates the value. 17000 = 17K"],
  1753. type = "toggle",
  1754. disabled = function() return not db.powerbar.enable end,
  1755. },
  1756. FontOutline = {
  1757. order = 2,
  1758. name = L["Font Outline"],
  1759. desc = L["Adds a font outline to value."],
  1760. type = "toggle",
  1761. disabled = function() return not db.powerbar.enable end,
  1762. },
  1763. FontSize= {
  1764. order = 3,
  1765. name = L["Font Size"],
  1766. desc = L["Controls the value font size."],
  1767. type = "range",
  1768. min = 8, max = 25, step = 1,
  1769. disabled = function() return not db.powerbar.enable end,
  1770. },
  1771. },
  1772. },
  1773. },
  1774. },
  1775. quest = {
  1776. order = 10,
  1777. type = "group",
  1778. name = L["|cff00B4FFQuest|r"],
  1779. desc = L["Quest Module for |cff00B4FFBasic|rUI."],
  1780. childGroups = "tree",
  1781. get = function(info) return db.quest[ info[#info] ] end,
  1782. set = function(info, value) db.quest[ info[#info] ] = value; StaticPopup_Show("CFG_RELOAD") end,
  1783. args = {
  1784. enable = {
  1785. order = 1,
  1786. name = L["Enable"],
  1787. desc = L["Enables Quest Module"],
  1788. type = "toggle",
  1789. },
  1790. autocomplete = {
  1791. order = 2,
  1792. name = L["Autocomplete"],
  1793. desc = L["Automatically complete your quest."],
  1794. type = "toggle",
  1795. disabled = function() return not db.quest.enable end,
  1796. },
  1797. },
  1798. },
  1799. selfbuffs = {
  1800. order = 11,
  1801. type = "group",
  1802. name = L["|cff00B4FFSelfbuff|r"],
  1803. desc = L["Selfbuff Module for |cff00B4FFBasic|rUI."],
  1804. childGroups = "tree",
  1805. get = function(info) return db.selfbuffs[ info[#info] ] end,
  1806. set = function(info, value) db.selfbuffs[ info[#info] ] = value; StaticPopup_Show("CFG_RELOAD") end,
  1807. args = {
  1808. enable = {
  1809. order = 1,
  1810. name = L["Enable"],
  1811. desc = L["Enables Selfbuff Module"],
  1812. type = "toggle",
  1813. },
  1814. playsound = {
  1815. order = 2,
  1816. name = L["Play Sound"],
  1817. desc = L["Play's a warning sound when a players class buff is not applied."],
  1818. type = "toggle",
  1819. disabled = function() return not db.selfbuffs.enable end,
  1820. },
  1821. border = {
  1822. order = 3,
  1823. name = L["Border Style"],
  1824. desc = L["Style of Border for Nameplates."],
  1825. disabled = function() return not db.selfbuffs.enable end,
  1826. type = "select",
  1827. dialogControl = 'LSM30_Border', --Select your widget here
  1828. values = AceGUIWidgetLSMlists.border,
  1829. },
  1830. sound = {
  1831. order = 4,
  1832. name = L["Warning Sound"],
  1833. desc = L["Pick the MP3 you want for your Warning Sound."],
  1834. disabled = function() return not db.selfbuffs.enable end,
  1835. type = "select",
  1836. dialogControl = 'LSM30_Sound', --Select your widget here
  1837. values = AceGUIWidgetLSMlists.sound,
  1838. },
  1839. },
  1840. },
  1841. skin = {
  1842. type = "group",
  1843. order = 9,
  1844. name = L["|cff00B4FFSkin|r"],
  1845. desc = L["Skin Module for |cff00B4FFBasic|rUI."],
  1846. childGroups = "tree",
  1847. get = function(info) return db.skin[ info[#info] ] end,
  1848. set = function(info, value) db.skin[ info[#info] ] = value; StaticPopup_Show("CFG_RELOAD") end,
  1849. args = {
  1850. enable = {
  1851. order = 1,
  1852. name = L["Enable"],
  1853. desc = L["Enables AddOn Skinning"],
  1854. type = "toggle",
  1855. width = "full",
  1856. },
  1857. border = {
  1858. order = 2,
  1859. name = L["Border Style"],
  1860. desc = L["Style of Border for Skinning."],
  1861. disabled = function() return not db.skin.enable end,
  1862. type = "select",
  1863. dialogControl = 'LSM30_Border', --Select your widget here
  1864. values = AceGUIWidgetLSMlists.border,
  1865. },
  1866. statusbar = {
  1867. order = 3,
  1868. name = L["Statusbar Style"],
  1869. desc = L["Style of Statusbar for Skinning."],
  1870. disabled = function() return not db.skin.enable end,
  1871. type = "select",
  1872. dialogControl = 'LSM30_Statusbar', --Select your widget here
  1873. values = AceGUIWidgetLSMlists.statusbar,
  1874. },
  1875. DBM = {
  1876. order = 4,
  1877. name = L["DBM"],
  1878. desc = L["Skins Deadly Boss Mods to match |cff00B4FFBasic|rUI."],
  1879. type = "toggle",
  1880. disabled = function() return not db.skin.enable end,
  1881. },
  1882. Recount = {
  1883. order = 5,
  1884. name = L["Recount"],
  1885. desc = L["Skins Recount to match |cff00B4FFBasic|rUI."],
  1886. type = "toggle",
  1887. disabled = function() return not db.skin.enable end,
  1888. },
  1889. RecountBackdrop = {
  1890. order = 6,
  1891. name = L["Recount Backdrop"],
  1892. desc = L["Keep the backdrop in the Recount Window."],
  1893. type = "toggle",
  1894. disabled = function() return not db.skin.enable end,
  1895. },
  1896. },
  1897. },
  1898. tooltip = {
  1899. order = 12,
  1900. type = "group",
  1901. name = L["|cff00B4FFTooltip|r"],
  1902. desc = L["Tooltip Module for |cff00B4FFBasic|rUI."],
  1903. childGroups = "tree",
  1904. get = function(info) return db.tooltip[ info[#info] ] end,
  1905. set = function(info, value) db.tooltip[ info[#info] ] = value; StaticPopup_Show("CFG_RELOAD") end,
  1906. args = {
  1907. enable = {
  1908. order = 1,
  1909. name = L["Enable"],
  1910. desc = L["Enables Tooltip Module"],
  1911. type = "toggle",
  1912. },
  1913. disableFade = {
  1914. order = 2,
  1915. name = L["Disable Fade"],
  1916. desc = L["Disables Tooltip Fade."],
  1917. type = "toggle",
  1918. disabled = function() return not db.tooltip.enable end,
  1919. },
  1920. border = {
  1921. order = 3,
  1922. name = L["Border Style"],
  1923. desc = L["Style of Border for Tooltip."],
  1924. disabled = function() return not db.tooltip.enable end,
  1925. type = "select",
  1926. dialogControl = 'LSM30_Border', --Select your widget here
  1927. values = AceGUIWidgetLSMlists.border,
  1928. },
  1929. background = {
  1930. order = 4,
  1931. name = L["Background Style"],
  1932. desc = L["Style of Background for Tooltip."],
  1933. disabled = function() return not db.tooltip.enable end,
  1934. type = "select",
  1935. dialogControl = 'LSM30_Background', --Select your widget here
  1936. values = AceGUIWidgetLSMlists.background,
  1937. },
  1938. statusbar = {
  1939. order = 5,
  1940. name = L["Statusbar Style"],
  1941. desc = L["Style of Statusbar for Tooltip."],
  1942. disabled = function() return not db.tooltip.enable end,
  1943. type = "select",
  1944. dialogControl = 'LSM30_Statusbar', --Select your widget here
  1945. values = AceGUIWidgetLSMlists.statusbar,
  1946. },
  1947. reactionBorderColor = {
  1948. order = 6,
  1949. name = L["Reaction Border Color"],
  1950. desc = L["Colors the borders match targets classcolors."],
  1951. type = "toggle",
  1952. disabled = function() return not db.tooltip.enable end,
  1953. },
  1954. itemqualityBorderColor = {
  1955. order = 7,
  1956. name = L["Item Quality Border Color"],
  1957. desc = L["Colors the border of the tooltip to match the items quality."],
  1958. type = "toggle",
  1959. disabled = function() return not db.tooltip.enable end,
  1960. },
  1961. showPlayerTitles = {
  1962. order = 8,
  1963. name = L["Player Titles"],
  1964. desc = L["Shows players title in tooltip."],
  1965. type = "toggle",
  1966. disabled = function() return not db.tooltip.enable end,
  1967. },
  1968. showPVPIcons = {
  1969. order = 9,
  1970. name = L["PVP Icons"],
  1971. desc = L["Shows PvP Icons in tooltip."],
  1972. type = "toggle",
  1973. disabled = function() return not db.tooltip.enable end,
  1974. },
  1975. abbrevRealmNames = {
  1976. order = 10,
  1977. name = L["Abberviate Realm Names"],
  1978. desc = L["Abberviates Players Realm Name."],
  1979. type = "toggle",
  1980. disabled = function() return not db.tooltip.enable end,
  1981. },
  1982. showMouseoverTarget = {
  1983. order = 11,
  1984. name = L["Mouseover Target"],
  1985. desc = L["Shows mouseover target."],
  1986. type = "toggle",
  1987. disabled = function() return not db.tooltip.enable end,
  1988. },
  1989. showItemLevel = {
  1990. order = 12,
  1991. name = L["Item Level"],
  1992. desc = L["Shows targets average item level."],
  1993. type = "toggle",
  1994. disabled = function() return not db.tooltip.enable end,
  1995. },
  1996. healthbar = {
  1997. type = "group",
  1998. order = 13,
  1999. name = L["Healthbar"],
  2000. desc = L["Players Healthbar Options."],
  2001. guiInline = true,
  2002. disabled = function() return not db.tooltip.enable end,
  2003. get = function(info) return db.tooltip.healthbar[ info[#info] ] end,
  2004. set = function(info, value) db.tooltip.healthbar[ info[#info] ] = value; StaticPopup_Show("CFG_RELOAD") end,
  2005. args = {
  2006. showHealthValue = {
  2007. order = 1,
  2008. name = L["Health Value"],
  2009. desc = L["Shows health value over healthbar."],
  2010. type = "toggle",
  2011. disabled = function() return not db.tooltip.enable end,
  2012. },
  2013. showOutline = {
  2014. order = 2,
  2015. name = L["Font Outline"],
  2016. desc = L["Adds a font outline to health value."],
  2017. type = "toggle",
  2018. disabled = function() return not db.tooltip.enable end,
  2019. },
  2020. reactionColoring = {
  2021. order = 3,
  2022. name = L["Reaction Coloring"],
  2023. desc = L["Change healthbar color to targets classcolor. (Overides Custom Color)"],
  2024. type = "toggle",
  2025. width = "full",
  2026. disabled = function() return not db.tooltip.enable end,
  2027. },
  2028. custom = {
  2029. type = "group",
  2030. order = 4,
  2031. name = L["Custom"],
  2032. desc = L["Custom Coloring"],
  2033. guiInline = true,
  2034. disabled = function() return not db.tooltip.enable end,
  2035. get = function(info) return db.tooltip.healthbar.custom[ info[#info] ] end,
  2036. set = function(info, value) db.tooltip.healthbar.custom[ info[#info] ] = value; StaticPopup_Show("CFG_RELOAD") end,
  2037. args = {
  2038. apply = {
  2039. order = 1,
  2040. name = L["Apply Custom Color"],
  2041. desc = L["Use the Custom Color you have chosen."],
  2042. type = "toggle",
  2043. disabled = function() return not db.tooltip.enable end,
  2044. },
  2045. color = {
  2046. order = 2,
  2047. type = "color",
  2048. name = L["Custom Color"],
  2049. desc = L["Picks a Custom Color for the tooltip border."],
  2050. hasAlpha = false,
  2051. disabled = function() return not db.tooltip.healthbar.custom.apply or not db.tooltip.enable end,
  2052. get = function(info)
  2053. local hb = db.tooltip.healthbar.custom[ info[#info] ]
  2054. return hb.r, hb.g, hb.b
  2055. end,
  2056. set = function(info, r, g, b)
  2057. db.tooltip.healthbar.custom[ info[#info] ] = {}
  2058. local hb = db.tooltip.healthbar.custom[ info[#info] ]
  2059. hb.r, hb.g, hb.b = r, g, b
  2060. end,
  2061. },
  2062. },
  2063. },
  2064. textPos = {
  2065. order = 5,
  2066. name = L["Text Position"],
  2067. desc = L["Health Value Position."],
  2068. disabled = function() return not db.tooltip.enable end,
  2069. type = "select",
  2070. values = B.regions;
  2071. },
  2072. fontSize= {
  2073. order = 6,
  2074. name = L["Font Size"],
  2075. desc = L["Controls the healthbar value font size."],
  2076. type = "range",
  2077. min = 8, max = 25, step = 1,
  2078. disabled = function() return not db.tooltip.enable end,
  2079. },
  2080. },
  2081. },
  2082. },
  2083. },
  2084. },
  2085. }
  2086. end
  2087.  
  2088. return options
  2089. end
  2090.  
  2091. function BasicUI:ChatCommand(input)
  2092. InterfaceOptionsFrame_OpenToCategory(self.profilesFrame)
  2093. InterfaceOptionsFrame_OpenToCategory(self.optionsFrame)
  2094. InterfaceOptionsFrame:Raise()
  2095. end
  2096.  
  2097. function BasicUI:ConfigRefresh()
  2098. db = self.db.profile;
  2099. end
  2100.  
  2101. function BasicUI:SetUpOptions()
  2102. db = self.db.profile;
  2103.  
  2104. LibStub("AceConfig-3.0"):RegisterOptionsTable("BasicUI", self.GetOptions);
  2105. LibStub("AceConfig-3.0"):RegisterOptionsTable("BasicProfiles", LibStub("AceDBOptions-3.0"):GetOptionsTable(self.db));
  2106.  
  2107. self.optionsFrame = LibStub("AceConfigDialog-3.0"):AddToBlizOptions("BasicUI", "|cff00B4FFBasic|rUI");
  2108. self.profilesFrame = LibStub("AceConfigDialog-3.0"):AddToBlizOptions("BasicProfiles", "|cff00B4FFBasic|rUI Profiles", "|cff00B4FFBasic|rUI");
  2109.  
  2110. self:RegisterChatCommand("ui", "ChatCommand");
  2111. self:RegisterChatCommand("basicui", "ChatCommand");
  2112. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement