ought

options/cps.lua

Feb 3rd, 2019
40
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function vexpower.options.cps.panel()
  2. return {
  3. type = "group",
  4. order= 5,
  5. args = {
  6. grptestmode = {
  7. name = "Option Settings",
  8. order=1, type ="group", dialogInline = true,
  9. args = {
  10. testmode = {
  11. name = "activate Testmode",
  12. order=1, type = "toggle", width="double",
  13. set = function(info,val) vexpower.testmode.activated=val vexpower.testmode.handler() end,
  14. get = function() return vexpower.testmode.activated end,
  15. },
  16. advOptions = {
  17. name = "show advanced Options",
  18. order=2, type = "toggle", width="normal",
  19. set = function(info,val) vexpower_SV_profiles[vexpower_SV_data["profile"]]["data"]["advancedOptions"]=val vexpower.initialize.core(true) end,
  20. get = function() return vexpower_SV_profiles[vexpower_SV_data["profile"]]["data"]["advancedOptions"] end,
  21. },
  22. info = {name ="- ComboPoint gain and loss are simulated\n- Textfields get a colored background and are moveable\n- Powerbar and ComboPointBar become movable\n'/vexp testmode' can be used to toggle the testmode", type = "description", order=3, width="double"},
  23. edit = {name ='\nAny changes will be saved in profile: "|CFF008000'..vexpower_SV_data["profile"]..'|r"', type = "description", order=5, width="normal"},
  24. },
  25. },
  26. spacetestmode = {name ="\n", type = "description", order=3},
  27.  
  28. grpoptiontabs = {
  29. name = "Toggle Option Tabs",
  30. order=5, type ="group", dialogInline = true,
  31. args = {
  32. position = {
  33. name = "Position & Size",
  34. order=1, type = "execute",
  35. func = function(info,val) vexpower.options.cps.toggleTab("layout") vexpower.initialize.core(true) end,
  36. },
  37. powerpool = {
  38. name = "Layout",
  39. order=2, type = "execute", width="half",
  40. func = function(info,val) vexpower.options.cps.toggleTab("background") vexpower.initialize.core(true) end,
  41. },
  42. background = {
  43. name = "Used",
  44. order=4, type = "execute", width="half",
  45. func = function(info,val) vexpower.options.cps.toggleTab("fadeout") vexpower.initialize.core(true) end,
  46. },
  47. usedenergy = {
  48. name = "Recolor",
  49. order=5, type = "execute", width="half",
  50. func = function(info,val) vexpower.options.cps.toggleTab("change") vexpower.initialize.core(true) end,
  51. },
  52. change = {
  53. name = "Sound",
  54. order=6, type = "execute", width="half",
  55. func = function(info,val) vexpower.options.cps.toggleTab("sound") vexpower.initialize.core(true) end,
  56. },
  57. classspec = {
  58. name = "Class-specifics",
  59. order=8, type = "execute", hidden=not(vexpower_SV_profiles[vexpower_SV_data["profile"]]["data"]["advancedOptions"]),
  60. func = function(info,val) vexpower.options.cps.toggleTab("classspec") vexpower.initialize.core(true) end,
  61. },
  62. },
  63. },
  64. spaceoptiontabs = {name =" ", type = "description", order=6},
  65.  
  66. grpPosition = {
  67. name = "Position",
  68. order=10, type ="group", dialogInline = true, hidden = not(vexpower.options.cps.openTab["layout"]),
  69. args = {
  70. activate = {
  71. name = "Position the ComboPointBar relative to the PowerBar",
  72. order=1, type = "toggle", width="full",
  73. set = function(self,key) vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["position"]["clipToPower"]=key vexpower.initialize.core(true) end,
  74. get = function() return vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["position"]["clipToPower"] end,
  75. },
  76. info = {name = "The ComboPointbar contains all ComboPoints. This feature binds the two bars together. So whenever either one of them is moved, the other is moved also. Deactivating this feature lets you choose an absolute position for the ComboPointBar.", type ="description", order=2},
  77. space1 = {name = " ", type ="description", order=3, hidden=vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["position"]["clipToPower"]},
  78. frameposx = {
  79. name = "X Position",
  80. order=6, type = "range",
  81. desc = "Sets the x position of the frame",
  82. step = 1, min = -2000, max = 2000,
  83. set = function(info,val) vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["position"]["x"]=val vexpower.initialize.core(true) end,
  84. get = function() return vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["position"]["x"] end
  85. },
  86. frameposy = {
  87. name = "Y Position",
  88. order=7, type = "range",
  89. desc = "Sets the y position of the frame",
  90. step = 1, min = -2000, max = 2000,
  91. set = function(info,val) vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["position"]["y"]=val vexpower.initialize.core(true) end,
  92. get = function() return vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["position"]["y"] end
  93. },
  94. space2 = {name =" ", type = "description", order=8, hidden=not(vexpower_SV_profiles[vexpower_SV_data["profile"]]["data"]["advancedOptions"]),},
  95. frameanchorFrame = {
  96. name = "Frame Anchor",
  97. order=9, type = "select", style = "dropdown",
  98. desc = "Sets the achor of the frame", hidden=not(vexpower_SV_profiles[vexpower_SV_data["profile"]]["data"]["advancedOptions"]),
  99. values = {
  100. ["CENTER"]="Center",
  101. ["BOTTOM"]="Bottom",
  102. ["TOP"]="Top",
  103. ["LEFT"]="Left",
  104. ["RIGHT"]="Right",
  105. ["BOTTOMLEFT"]="Bottomleft",
  106. ["BOTTOMRIGHT"]="Bottomright",
  107. ["TOPLEFT"]="Topleft",
  108. ["TOPRIGHT"]="Topright"},
  109. set = function(self,key) vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["position"]["anchorFrame"]=key vexpower.initialize.core(true) end,
  110. get = function() return vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["position"]["anchorFrame"] end,
  111. },
  112. frameanchorScreen = {
  113. name = "Screen Anchor",
  114. order=10, type = "select", style = "dropdown",
  115. desc = "Sets the achor of the screen", hidden=not(vexpower_SV_profiles[vexpower_SV_data["profile"]]["data"]["advancedOptions"]),
  116. values = {
  117. ["CENTER"]="Center",
  118. ["BOTTOM"]="Bottom",
  119. ["TOP"]="Top",
  120. ["LEFT"]="Left",
  121. ["RIGHT"]="Right",
  122. ["BOTTOMLEFT"]="Bottomleft",
  123. ["BOTTOMRIGHT"]="Bottomright",
  124. ["TOPLEFT"]="Topleft",
  125. ["TOPRIGHT"]="Topright"},
  126. set = function(self,key) vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["position"]["anchor"]=key vexpower.initialize.core(true) end,
  127. get = function() return vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["position"]["anchor"] end,
  128. },
  129. },
  130. },
  131. grpModeSelection = {
  132. name = "Mode Selection",
  133. order=11, type ="group", dialogInline = true, hidden = (not(vexpower.options.cps.openTab["layout"]) or not(vexpower_SV_profiles[vexpower_SV_data["profile"]]["data"]["advancedOptions"]) and vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["intMode"]["activate"]),
  134. args = {
  135. activate = {
  136. name = "Activate Intelligent-CP-Mode",
  137. order=1, type = "toggle", width="full",
  138. set = function(self,key) vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["intMode"]["activate"]=key vexpower.initialize.core(true) end,
  139. get = function() return vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["intMode"]["activate"] end,
  140. },
  141. info = {name = "The Intelligent-CP-Mode only needs little input to automatically calculate the position and the width of every single ComboPoint. Deactivating this feature lets you set all ComboPoints by yourself which needs plenty of input.\n", type ="description", order=2},
  142. },
  143. },
  144. grpAutoMode = {
  145. name = "Intelligent-CP-Mode",
  146. order=12, type ="group", dialogInline = true, hidden = not(vexpower.options.cps.openTab["layout"]) or not(vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["intMode"]["activate"]),
  147. args = {
  148. infopic={name = "", type="description", order=3, image="Interface\\AddOns\\vexpower\\images\\options_cps.tga",
  149. imageWidth=512, imageHeight=128},
  150. space1 = {name = "", type ="description", order=4},
  151. grp1stRow = {
  152. name = "1st row (standard row)",
  153. order=10, type ="group", dialogInline = true, hidden = not(vexpower.options.cps.openTab["layout"]) or not(vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["intMode"]["activate"]),
  154. args = {
  155. framex = {
  156. name = "X-Distance",
  157. order=10, type = "range",
  158. desc = "Sets the distance of the energybar to the combopoints",
  159. step = 1, min = -400, max = 400,
  160. set = function(info,val) vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["intMode"]["offset"]=val vexpower.initialize.core(true) end,
  161. get = function() return vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["intMode"]["offset"] end
  162. },
  163. frameheight = {
  164. name = "Height",
  165. order=16, type = "range",
  166. desc = "Height of the combopoints",
  167. step = 1, min = 1, max = 400,
  168. set = function(info,val) vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["intMode"]["height"]=val vexpower.initialize.core(true) end,
  169. get = function() return vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["intMode"]["height"] end
  170. },
  171. framegap = {
  172. name = "X-Gap",
  173. order=17, type = "range",
  174. desc = "Distance between the individual combopoints",
  175. step = 1, min = 0, max = 400,
  176. set = function(info,val) vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["intMode"]["gap"]=val vexpower.initialize.core(true) end,
  177. get = function() return vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["intMode"]["gap"] end
  178. },
  179. },
  180. },
  181. space3 = {name = " ", type ="description", order=11},
  182. grp2ndRow = {
  183. name = "2nd row",
  184. order=20, type ="group", dialogInline = true, hidden = not(vexpower.options.cps.openTab["layout"]) or not(vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["intMode"]["activate"]),
  185. args = {
  186. info = {name = "Rogues can have a 2nd row to display Anticipation-Stacks as additional ComboPoints. You can activate this at 'ComboPoints' --> 'Class specifics'. The following settings are for this additional combopoint-row.", type ="description", order=1},
  187. frameheight = {
  188. name = "Height",
  189. order=2, type = "range",
  190. desc = "Height of the combopoints",
  191. step = 1, min = 1, max = 400,
  192. set = function(info,val) vexpower_SV_profiles[vexpower_SV_data["profile"]]["data"]["classSpec"]["rogue"]["antiRowHeight"]=val vexpower.initialize.core(true) end,
  193. get = function() return vexpower_SV_profiles[vexpower_SV_data["profile"]]["data"]["classSpec"]["rogue"]["antiRowHeight"] end
  194. },
  195. frameYDistance = {
  196. name = "Y-Gap",
  197. order=2, type = "range",
  198. desc = "Height of the combopoints",
  199. step = 1, min = 0, max = 400,
  200. set = function(info,val) vexpower_SV_profiles[vexpower_SV_data["profile"]]["data"]["classSpec"]["rogue"]["antiRowYDistance"]=val vexpower.initialize.core(true) end,
  201. get = function() return vexpower_SV_profiles[vexpower_SV_data["profile"]]["data"]["classSpec"]["rogue"]["antiRowYDistance"] end
  202. },
  203. },
  204. },
  205. },
  206. },
  207. grpManualMode = {
  208. name = "Manual-Mode",
  209. order=13, type ="group", dialogInline = true, hidden = not(vexpower.options.cps.openTab["layout"]) or vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["intMode"]["activate"],
  210. args = {
  211. info = {name = "You can set up a 'general'-setting for the ComboPoints. This setting contains the size and position of 6 ComboPoints and will be used as long as no other setting will overwrite it. Other Settings can be activated when you have another amount of maximum ComboPoints.\n", type ="description", order=1},
  212.  
  213. profile = {
  214. name = "Config for:",
  215. order=10, type = "select", style = "dropdown", width="double",
  216. values = vexpower.options.cps.getList(),
  217. set = function(self,val) vexpower.options.cps.configCPSetting = val vexpower.initialize.core(true) end,
  218. get = function() return vexpower.options.cps.configCPSetting end,
  219. },
  220.  
  221. config = {
  222. name = " ",
  223. order=20, type ="group", dialogInline = true,
  224. args = {
  225. use = {
  226. name = "Use these settings instead of the 'general'-setting when you have "..vexpower.options.cps.configCPSetting.." ComboPoints",
  227. order=1, type = "toggle", width="full", hidden = vexpower.options.cps.configCPSetting=="6",
  228. set = function(info,val) vexpower.options.cps.setSize("change",val) vexpower.initialize.core(true) end,
  229. get = function() return vexpower.options.cps.getSize("change") end,
  230. },
  231. space1 = {name =" ", type = "description", order=2, hidden = vexpower.options.cps.configCPSetting=="6"},
  232.  
  233. framegap = {
  234. name = "Width",
  235. order=5, type = "range",
  236. step = 1, min = 1, max = 400,
  237. set = function(info,val) vexpower.options.cps.setSize("width", val) vexpower.initialize.core(true) end,
  238. get = function() return vexpower.options.cps.getSize("width") end
  239. },
  240. frameheight = {
  241. name = "Height",
  242. order=6, type = "range",
  243. step = 1, min = 1, max = 400,
  244. set = function(info,val) vexpower.options.cps.setSize("height", val) vexpower.initialize.core(true) end,
  245. get = function() return vexpower.options.cps.getSize("height") end
  246. },
  247. space2 = {name ="\n", type = "description", order=7},
  248.  
  249.  
  250. grp1 = {
  251. name = "|CFF00FF001st|r ComboPoint",
  252. order=100, type ="group", dialogInline = true, hidden = vexpower.options.cps.getHiddenCP(1),
  253. args = {
  254. frameposx = {
  255. name = "X Position",
  256. order=1, type = "range",
  257. desc = "Sets the x position of the frame",
  258. step = 1, min = -2000, max = 2000,
  259. set = function(info,val) vexpower.options.cps.setPos("1", "x", val) vexpower.initialize.core(true) end,
  260. get = function() return vexpower.options.cps.getPos("1", "x") end
  261. },
  262. frameposy = {
  263. name = "Y Position",
  264. order=2, type = "range",
  265. desc = "Sets the y position of the frame",
  266. step = 1, min = -2000, max = 2000,
  267. set = function(info,val) vexpower.options.cps.setPos("1", "y", val) vexpower.initialize.core(true) end,
  268. get = function() return vexpower.options.cps.getPos("1", "y") end
  269. },
  270. space1 = {name =" ", type = "description", order=13},
  271. frameanchorFrame = {
  272. name = "Frame Anchor",
  273. order=14, type = "select", style = "dropdown",
  274. desc = "Sets the achor of the frame",
  275. values = {
  276. ["CENTER"]="Center",
  277. ["BOTTOM"]="Bottom",
  278. ["TOP"]="Top",
  279. ["LEFT"]="Left",
  280. ["RIGHT"]="Right",
  281. ["BOTTOMLEFT"]="Bottomleft",
  282. ["BOTTOMRIGHT"]="Bottomright",
  283. ["TOPLEFT"]="Topleft",
  284. ["TOPRIGHT"]="Topright"},
  285. set = function(info,val) vexpower.options.cps.setPos("1", "anchor", val) vexpower.initialize.core(true) end,
  286. get = function() return vexpower.options.cps.getPos("1", "anchor") end
  287. },
  288. frameanchorScreen = {
  289. name = "Screen Anchor",
  290. order=15, type = "select", style = "dropdown",
  291. desc = "Sets the achor of the screen",
  292. values = {
  293. ["CENTER"]="Center",
  294. ["BOTTOM"]="Bottom",
  295. ["TOP"]="Top",
  296. ["LEFT"]="Left",
  297. ["RIGHT"]="Right",
  298. ["BOTTOMLEFT"]="Bottomleft",
  299. ["BOTTOMRIGHT"]="Bottomright",
  300. ["TOPLEFT"]="Topleft",
  301. ["TOPRIGHT"]="Topright"},
  302. set = function(info,val) vexpower.options.cps.setPos("1", "anchorFrame", val) vexpower.initialize.core(true) end,
  303. get = function() return vexpower.options.cps.getPos("1", "anchorFrame") end
  304. },
  305. },
  306. },
  307. space_1 = {name =" ", type = "description", order=101, hidden = vexpower.options.cps.getHiddenCP(1)},
  308.  
  309. grp2 = {
  310. name = "|CFF00FF002nd|r ComboPoint",
  311. order=200, type ="group", dialogInline = true, hidden = vexpower.options.cps.getHiddenCP(2),
  312. args = {
  313. frameposx = {
  314. name = "X Position",
  315. order=1, type = "range",
  316. desc = "Sets the x position of the frame",
  317. step = 1, min = -2000, max = 2000,
  318. set = function(info,val) vexpower.options.cps.setPos("2", "x", val) vexpower.initialize.core(true) end,
  319. get = function() return vexpower.options.cps.getPos("2", "x") end
  320. },
  321. frameposy = {
  322. name = "Y Position",
  323. order=2, type = "range",
  324. desc = "Sets the y position of the frame",
  325. step = 1, min = -2000, max = 2000,
  326. set = function(info,val) vexpower.options.cps.setPos("2", "y", val) vexpower.initialize.core(true) end,
  327. get = function() return vexpower.options.cps.getPos("2", "y") end
  328. },
  329. space1 = {name =" ", type = "description", order=13},
  330. frameanchorFrame = {
  331. name = "Frame Anchor",
  332. order=14, type = "select", style = "dropdown",
  333. desc = "Sets the achor of the frame",
  334. values = {
  335. ["CENTER"]="Center",
  336. ["BOTTOM"]="Bottom",
  337. ["TOP"]="Top",
  338. ["LEFT"]="Left",
  339. ["RIGHT"]="Right",
  340. ["BOTTOMLEFT"]="Bottomleft",
  341. ["BOTTOMRIGHT"]="Bottomright",
  342. ["TOPLEFT"]="Topleft",
  343. ["TOPRIGHT"]="Topright"},
  344. set = function(info,val) vexpower.options.cps.setPos("2", "anchor", val) vexpower.initialize.core(true) end,
  345. get = function() return vexpower.options.cps.getPos("2", "anchor") end
  346. },
  347. frameanchorScreen = {
  348. name = "Screen Anchor",
  349. order=15, type = "select", style = "dropdown",
  350. desc = "Sets the achor of the screen",
  351. values = {
  352. ["CENTER"]="Center",
  353. ["BOTTOM"]="Bottom",
  354. ["TOP"]="Top",
  355. ["LEFT"]="Left",
  356. ["RIGHT"]="Right",
  357. ["BOTTOMLEFT"]="Bottomleft",
  358. ["BOTTOMRIGHT"]="Bottomright",
  359. ["TOPLEFT"]="Topleft",
  360. ["TOPRIGHT"]="Topright"},
  361. set = function(info,val) vexpower.options.cps.setPos("2", "anchorFrame", val) vexpower.initialize.core(true) end,
  362. get = function() return vexpower.options.cps.getPos("2", "anchorFrame") end
  363. },
  364. },
  365. },
  366. space_2 = {name =" ", type = "description", order=201, hidden = vexpower.options.cps.getHiddenCP(2)},
  367. grp3 = {
  368. name = "|CFF00FF003rd|r ComboPoint",
  369. order=300, type ="group", dialogInline = true, hidden = vexpower.options.cps.getHiddenCP(3),
  370. args = {
  371. frameposx = {
  372. name = "X Position",
  373. order=1, type = "range",
  374. desc = "Sets the x position of the frame",
  375. step = 1, min = -2000, max = 2000,
  376. set = function(info,val) vexpower.options.cps.setPos("3", "x", val) vexpower.initialize.core(true) end,
  377. get = function() return vexpower.options.cps.getPos("3", "x") end
  378. },
  379. frameposy = {
  380. name = "Y Position",
  381. order=2, type = "range",
  382. desc = "Sets the y position of the frame",
  383. step = 1, min = -2000, max = 2000,
  384. set = function(info,val) vexpower.options.cps.setPos("3", "y", val) vexpower.initialize.core(true) end,
  385. get = function() return vexpower.options.cps.getPos("3", "y") end
  386. },
  387. space1 = {name =" ", type = "description", order=13},
  388. frameanchorFrame = {
  389. name = "Frame Anchor",
  390. order=14, type = "select", style = "dropdown",
  391. desc = "Sets the achor of the frame",
  392. values = {
  393. ["CENTER"]="Center",
  394. ["BOTTOM"]="Bottom",
  395. ["TOP"]="Top",
  396. ["LEFT"]="Left",
  397. ["RIGHT"]="Right",
  398. ["BOTTOMLEFT"]="Bottomleft",
  399. ["BOTTOMRIGHT"]="Bottomright",
  400. ["TOPLEFT"]="Topleft",
  401. ["TOPRIGHT"]="Topright"},
  402. set = function(info,val) vexpower.options.cps.setPos("3", "anchor", val) vexpower.initialize.core(true) end,
  403. get = function() return vexpower.options.cps.getPos("3", "anchor") end
  404. },
  405. frameanchorScreen = {
  406. name = "Screen Anchor",
  407. order=15, type = "select", style = "dropdown",
  408. desc = "Sets the achor of the screen",
  409. values = {
  410. ["CENTER"]="Center",
  411. ["BOTTOM"]="Bottom",
  412. ["TOP"]="Top",
  413. ["LEFT"]="Left",
  414. ["RIGHT"]="Right",
  415. ["BOTTOMLEFT"]="Bottomleft",
  416. ["BOTTOMRIGHT"]="Bottomright",
  417. ["TOPLEFT"]="Topleft",
  418. ["TOPRIGHT"]="Topright"},
  419. set = function(info,val) vexpower.options.cps.setPos("3", "anchorFrame", val) vexpower.initialize.core(true) end,
  420. get = function() return vexpower.options.cps.getPos("3", "anchorFrame") end
  421. },
  422. },
  423. },
  424. space_3 = {name =" ", type = "description", order=301, hidden = vexpower.options.cps.getHiddenCP(3)},
  425. grp4 = {
  426. name = "|CFF00FF004th|r ComboPoint",
  427. order=400, type ="group", dialogInline = true, hidden = vexpower.options.cps.getHiddenCP(4),
  428. args = {
  429. frameposx = {
  430. name = "X Position",
  431. order=1, type = "range",
  432. desc = "Sets the x position of the frame",
  433. step = 1, min = -2000, max = 2000,
  434. set = function(info,val) vexpower.options.cps.setPos("4", "x", val) vexpower.initialize.core(true) end,
  435. get = function() return vexpower.options.cps.getPos("4", "x") end
  436. },
  437. frameposy = {
  438. name = "Y Position",
  439. order=2, type = "range",
  440. desc = "Sets the y position of the frame",
  441. step = 1, min = -2000, max = 2000,
  442. set = function(info,val) vexpower.options.cps.setPos("4", "y", val) vexpower.initialize.core(true) end,
  443. get = function() return vexpower.options.cps.getPos("4", "y") end
  444. },
  445. space1 = {name =" ", type = "description", order=13},
  446. frameanchorFrame = {
  447. name = "Frame Anchor",
  448. order=14, type = "select", style = "dropdown",
  449. desc = "Sets the achor of the frame",
  450. values = {
  451. ["CENTER"]="Center",
  452. ["BOTTOM"]="Bottom",
  453. ["TOP"]="Top",
  454. ["LEFT"]="Left",
  455. ["RIGHT"]="Right",
  456. ["BOTTOMLEFT"]="Bottomleft",
  457. ["BOTTOMRIGHT"]="Bottomright",
  458. ["TOPLEFT"]="Topleft",
  459. ["TOPRIGHT"]="Topright"},
  460. set = function(info,val) vexpower.options.cps.setPos("4", "anchor", val) vexpower.initialize.core(true) end,
  461. get = function() return vexpower.options.cps.getPos("4", "anchor") end
  462. },
  463. frameanchorScreen = {
  464. name = "Screen Anchor",
  465. order=15, type = "select", style = "dropdown",
  466. desc = "Sets the achor of the screen",
  467. values = {
  468. ["CENTER"]="Center",
  469. ["BOTTOM"]="Bottom",
  470. ["TOP"]="Top",
  471. ["LEFT"]="Left",
  472. ["RIGHT"]="Right",
  473. ["BOTTOMLEFT"]="Bottomleft",
  474. ["BOTTOMRIGHT"]="Bottomright",
  475. ["TOPLEFT"]="Topleft",
  476. ["TOPRIGHT"]="Topright"},
  477. set = function(info,val) vexpower.options.cps.setPos("4", "anchorFrame", val) vexpower.initialize.core(true) end,
  478. get = function() return vexpower.options.cps.getPos("4", "anchorFrame") end
  479. },
  480. },
  481. },
  482. space_4 = {name =" ", type = "description", order=401, hidden = vexpower.options.cps.getHiddenCP(4)},
  483. grp5 = {
  484. name = "|CFF00FF005th|r ComboPoint",
  485. order=500, type ="group", dialogInline = true, hidden = vexpower.options.cps.getHiddenCP(5),
  486. args = {
  487. frameposx = {
  488. name = "X Position",
  489. order=1, type = "range",
  490. desc = "Sets the x position of the frame",
  491. step = 1, min = -2000, max = 2000,
  492. set = function(info,val) vexpower.options.cps.setPos("5", "x", val) vexpower.initialize.core(true) end,
  493. get = function() return vexpower.options.cps.getPos("5", "x") end
  494. },
  495. frameposy = {
  496. name = "Y Position",
  497. order=2, type = "range",
  498. desc = "Sets the y position of the frame",
  499. step = 1, min = -2000, max = 2000,
  500. set = function(info,val) vexpower.options.cps.setPos("5", "y", val) vexpower.initialize.core(true) end,
  501. get = function() return vexpower.options.cps.getPos("5", "y") end
  502. },
  503. space1 = {name =" ", type = "description", order=13},
  504. frameanchorFrame = {
  505. name = "Frame Anchor",
  506. order=14, type = "select", style = "dropdown",
  507. desc = "Sets the achor of the frame",
  508. values = {
  509. ["CENTER"]="Center",
  510. ["BOTTOM"]="Bottom",
  511. ["TOP"]="Top",
  512. ["LEFT"]="Left",
  513. ["RIGHT"]="Right",
  514. ["BOTTOMLEFT"]="Bottomleft",
  515. ["BOTTOMRIGHT"]="Bottomright",
  516. ["TOPLEFT"]="Topleft",
  517. ["TOPRIGHT"]="Topright"},
  518. set = function(info,val) vexpower.options.cps.setPos("5", "anchor", val) vexpower.initialize.core(true) end,
  519. get = function() return vexpower.options.cps.getPos("5", "anchor") end
  520. },
  521. frameanchorScreen = {
  522. name = "Screen Anchor",
  523. order=15, type = "select", style = "dropdown",
  524. desc = "Sets the achor of the screen",
  525. values = {
  526. ["CENTER"]="Center",
  527. ["BOTTOM"]="Bottom",
  528. ["TOP"]="Top",
  529. ["LEFT"]="Left",
  530. ["RIGHT"]="Right",
  531. ["BOTTOMLEFT"]="Bottomleft",
  532. ["BOTTOMRIGHT"]="Bottomright",
  533. ["TOPLEFT"]="Topleft",
  534. ["TOPRIGHT"]="Topright"},
  535. set = function(info,val) vexpower.options.cps.setPos("5", "anchorFrame", val) vexpower.initialize.core(true) end,
  536. get = function() return vexpower.options.cps.getPos("5", "anchorFrame") end
  537. },
  538. },
  539. },
  540. space_5 = {name =" ", type = "description", order=501, hidden = vexpower.options.cps.getHiddenCP(5)},
  541. grp6 = {
  542. name = "|CFF00FF006th|r ComboPoint",
  543. order=600, type ="group", dialogInline = true, hidden = vexpower.options.cps.getHiddenCP(6),
  544. args = {
  545. frameposx = {
  546. name = "X Position",
  547. order=1, type = "range",
  548. desc = "Sets the x position of the frame",
  549. step = 1, min = -2000, max = 2000,
  550. set = function(info,val) vexpower.options.cps.setPos("6", "x", val) vexpower.initialize.core(true) end,
  551. get = function() return vexpower.options.cps.getPos("6", "x") end
  552. },
  553. frameposy = {
  554. name = "Y Position",
  555. order=2, type = "range",
  556. desc = "Sets the y position of the frame",
  557. step = 1, min = -2000, max = 2000,
  558. set = function(info,val) vexpower.options.cps.setPos("6", "y", val) vexpower.initialize.core(true) end,
  559. get = function() return vexpower.options.cps.getPos("6", "y") end
  560. },
  561. space1 = {name =" ", type = "description", order=13},
  562. frameanchorFrame = {
  563. name = "Frame Anchor",
  564. order=14, type = "select", style = "dropdown",
  565. desc = "Sets the achor of the frame",
  566. values = {
  567. ["CENTER"]="Center",
  568. ["BOTTOM"]="Bottom",
  569. ["TOP"]="Top",
  570. ["LEFT"]="Left",
  571. ["RIGHT"]="Right",
  572. ["BOTTOMLEFT"]="Bottomleft",
  573. ["BOTTOMRIGHT"]="Bottomright",
  574. ["TOPLEFT"]="Topleft",
  575. ["TOPRIGHT"]="Topright"},
  576. set = function(info,val) vexpower.options.cps.setPos("6", "anchor", val) vexpower.initialize.core(true) end,
  577. get = function() return vexpower.options.cps.getPos("6", "anchor") end
  578. },
  579. frameanchorScreen = {
  580. name = "Screen Anchor",
  581. order=15, type = "select", style = "dropdown",
  582. desc = "Sets the achor of the screen",
  583. values = {
  584. ["CENTER"]="Center",
  585. ["BOTTOM"]="Bottom",
  586. ["TOP"]="Top",
  587. ["LEFT"]="Left",
  588. ["RIGHT"]="Right",
  589. ["BOTTOMLEFT"]="Bottomleft",
  590. ["BOTTOMRIGHT"]="Bottomright",
  591. ["TOPLEFT"]="Topleft",
  592. ["TOPRIGHT"]="Topright"},
  593. set = function(info,val) vexpower.options.cps.setPos("6", "anchorFrame", val) vexpower.initialize.core(true) end,
  594. get = function() return vexpower.options.cps.getPos("6", "anchorFrame") end
  595. },
  596. },
  597. },
  598. space_6 = {name =" ", type = "description", order=601, hidden = vexpower.options.cps.getHiddenCP(6)},
  599. grp7 = {
  600. name = "|CFF00FF007th|r ComboPoint",
  601. order=700, type ="group", dialogInline = true, hidden = vexpower.options.cps.getHiddenCP(7),
  602. args = {
  603. frameposx = {
  604. name = "X Position",
  605. order=1, type = "range",
  606. desc = "Sets the x position of the frame",
  607. step = 1, min = -2000, max = 2000,
  608. set = function(info,val) vexpower.options.cps.setPos("7", "x", val) vexpower.initialize.core(true) end,
  609. get = function() return vexpower.options.cps.getPos("7", "x") end
  610. },
  611. frameposy = {
  612. name = "Y Position",
  613. order=2, type = "range",
  614. desc = "Sets the y position of the frame",
  615. step = 1, min = -2000, max = 2000,
  616. set = function(info,val) vexpower.options.cps.setPos("7", "y", val) vexpower.initialize.core(true) end,
  617. get = function() return vexpower.options.cps.getPos("7", "y") end
  618. },
  619. space1 = {name =" ", type = "description", order=13},
  620. frameanchorFrame = {
  621. name = "Frame Anchor",
  622. order=14, type = "select", style = "dropdown",
  623. desc = "Sets the achor of the frame",
  624. values = {
  625. ["CENTER"]="Center",
  626. ["BOTTOM"]="Bottom",
  627. ["TOP"]="Top",
  628. ["LEFT"]="Left",
  629. ["RIGHT"]="Right",
  630. ["BOTTOMLEFT"]="Bottomleft",
  631. ["BOTTOMRIGHT"]="Bottomright",
  632. ["TOPLEFT"]="Topleft",
  633. ["TOPRIGHT"]="Topright"},
  634. set = function(info,val) vexpower.options.cps.setPos("7", "anchor", val) vexpower.initialize.core(true) end,
  635. get = function() return vexpower.options.cps.getPos("7", "anchor") end
  636. },
  637. frameanchorScreen = {
  638. name = "Screen Anchor",
  639. order=15, type = "select", style = "dropdown",
  640. desc = "Sets the achor of the screen",
  641. values = {
  642. ["CENTER"]="Center",
  643. ["BOTTOM"]="Bottom",
  644. ["TOP"]="Top",
  645. ["LEFT"]="Left",
  646. ["RIGHT"]="Right",
  647. ["BOTTOMLEFT"]="Bottomleft",
  648. ["BOTTOMRIGHT"]="Bottomright",
  649. ["TOPLEFT"]="Topleft",
  650. ["TOPRIGHT"]="Topright"},
  651. set = function(info,val) vexpower.options.cps.setPos("7", "anchorFrame", val) vexpower.initialize.core(true) end,
  652. get = function() return vexpower.options.cps.getPos("7", "anchorFrame") end
  653. },
  654. },
  655. },
  656. space_7 = {name =" ", type = "description", order=701, hidden = vexpower.options.cps.getHiddenCP(7)},
  657. grp8 = {
  658. name = "|CFF00FF008th|r ComboPoint",
  659. order=800, type ="group", dialogInline = true, hidden = vexpower.options.cps.getHiddenCP(8),
  660. args = {
  661. frameposx = {
  662. name = "X Position",
  663. order=1, type = "range",
  664. desc = "Sets the x position of the frame",
  665. step = 1, min = -2000, max = 2000,
  666. set = function(info,val) vexpower.options.cps.setPos("8", "x", val) vexpower.initialize.core(true) end,
  667. get = function() return vexpower.options.cps.getPos("8", "x") end
  668. },
  669. frameposy = {
  670. name = "Y Position",
  671. order=2, type = "range",
  672. desc = "Sets the y position of the frame",
  673. step = 1, min = -2000, max = 2000,
  674. set = function(info,val) vexpower.options.cps.setPos("8", "y", val) vexpower.initialize.core(true) end,
  675. get = function() return vexpower.options.cps.getPos("8", "y") end
  676. },
  677. space1 = {name =" ", type = "description", order=13},
  678. frameanchorFrame = {
  679. name = "Frame Anchor",
  680. order=14, type = "select", style = "dropdown",
  681. desc = "Sets the achor of the frame",
  682. values = {
  683. ["CENTER"]="Center",
  684. ["BOTTOM"]="Bottom",
  685. ["TOP"]="Top",
  686. ["LEFT"]="Left",
  687. ["RIGHT"]="Right",
  688. ["BOTTOMLEFT"]="Bottomleft",
  689. ["BOTTOMRIGHT"]="Bottomright",
  690. ["TOPLEFT"]="Topleft",
  691. ["TOPRIGHT"]="Topright"},
  692. set = function(info,val) vexpower.options.cps.setPos("8", "anchor", val) vexpower.initialize.core(true) end,
  693. get = function() return vexpower.options.cps.getPos("8", "anchor") end
  694. },
  695. frameanchorScreen = {
  696. name = "Screen Anchor",
  697. order=15, type = "select", style = "dropdown",
  698. desc = "Sets the achor of the screen",
  699. values = {
  700. ["CENTER"]="Center",
  701. ["BOTTOM"]="Bottom",
  702. ["TOP"]="Top",
  703. ["LEFT"]="Left",
  704. ["RIGHT"]="Right",
  705. ["BOTTOMLEFT"]="Bottomleft",
  706. ["BOTTOMRIGHT"]="Bottomright",
  707. ["TOPLEFT"]="Topleft",
  708. ["TOPRIGHT"]="Topright"},
  709. set = function(info,val) vexpower.options.cps.setPos("8", "anchorFrame", val) vexpower.initialize.core(true) end,
  710. get = function() return vexpower.options.cps.getPos("8", "anchorFrame") end
  711. },
  712. },
  713. },
  714. space_8 = {name =" ", type = "description", order=801, hidden = vexpower.options.cps.getHiddenCP(8)},
  715. grp9 = {
  716. name = "|CFF00FF007th|r ComboPoint",
  717. order=900, type ="group", dialogInline = true, hidden = vexpower.options.cps.getHiddenCP(9),
  718. args = {
  719. frameposx = {
  720. name = "X Position",
  721. order=1, type = "range",
  722. desc = "Sets the x position of the frame",
  723. step = 1, min = -2000, max = 2000,
  724. set = function(info,val) vexpower.options.cps.setPos("9", "x", val) vexpower.initialize.core(true) end,
  725. get = function() return vexpower.options.cps.getPos("9", "x") end
  726. },
  727. frameposy = {
  728. name = "Y Position",
  729. order=2, type = "range",
  730. desc = "Sets the y position of the frame",
  731. step = 1, min = -2000, max = 2000,
  732. set = function(info,val) vexpower.options.cps.setPos("9", "y", val) vexpower.initialize.core(true) end,
  733. get = function() return vexpower.options.cps.getPos("9", "y") end
  734. },
  735. space1 = {name =" ", type = "description", order=13},
  736. frameanchorFrame = {
  737. name = "Frame Anchor",
  738. order=14, type = "select", style = "dropdown",
  739. desc = "Sets the achor of the frame",
  740. values = {
  741. ["CENTER"]="Center",
  742. ["BOTTOM"]="Bottom",
  743. ["TOP"]="Top",
  744. ["LEFT"]="Left",
  745. ["RIGHT"]="Right",
  746. ["BOTTOMLEFT"]="Bottomleft",
  747. ["BOTTOMRIGHT"]="Bottomright",
  748. ["TOPLEFT"]="Topleft",
  749. ["TOPRIGHT"]="Topright"},
  750. set = function(info,val) vexpower.options.cps.setPos("9", "anchor", val) vexpower.initialize.core(true) end,
  751. get = function() return vexpower.options.cps.getPos("9", "anchor") end
  752. },
  753. frameanchorScreen = {
  754. name = "Screen Anchor",
  755. order=15, type = "select", style = "dropdown",
  756. desc = "Sets the achor of the screen",
  757. values = {
  758. ["CENTER"]="Center",
  759. ["BOTTOM"]="Bottom",
  760. ["TOP"]="Top",
  761. ["LEFT"]="Left",
  762. ["RIGHT"]="Right",
  763. ["BOTTOMLEFT"]="Bottomleft",
  764. ["BOTTOMRIGHT"]="Bottomright",
  765. ["TOPLEFT"]="Topleft",
  766. ["TOPRIGHT"]="Topright"},
  767. set = function(info,val) vexpower.options.cps.setPos("9", "anchorFrame", val) vexpower.initialize.core(true) end,
  768. get = function() return vexpower.options.cps.getPos("9", "anchorFrame") end
  769. },
  770. },
  771. },
  772.  
  773. space_9 = {name =" ", type = "description", order=901, hidden = vexpower.options.cps.getHiddenCP(9)},
  774. grp10 = {
  775. name = "|CFF00FF007th|r ComboPoint",
  776. order=1000, type ="group", dialogInline = true, hidden = vexpower.options.cps.getHiddenCP(10),
  777. args = {
  778. frameposx = {
  779. name = "X Position",
  780. order=1, type = "range",
  781. desc = "Sets the x position of the frame",
  782. step = 1, min = -2000, max = 2000,
  783. set = function(info,val) vexpower.options.cps.setPos("10", "x", val) vexpower.initialize.core(true) end,
  784. get = function() return vexpower.options.cps.getPos("10", "x") end
  785. },
  786. frameposy = {
  787. name = "Y Position",
  788. order=2, type = "range",
  789. desc = "Sets the y position of the frame",
  790. step = 1, min = -2000, max = 2000,
  791. set = function(info,val) vexpower.options.cps.setPos("10", "y", val) vexpower.initialize.core(true) end,
  792. get = function() return vexpower.options.cps.getPos("10", "y") end
  793. },
  794. space1 = {name =" ", type = "description", order=13},
  795. frameanchorFrame = {
  796. name = "Frame Anchor",
  797. order=14, type = "select", style = "dropdown",
  798. desc = "Sets the achor of the frame",
  799. values = {
  800. ["CENTER"]="Center",
  801. ["BOTTOM"]="Bottom",
  802. ["TOP"]="Top",
  803. ["LEFT"]="Left",
  804. ["RIGHT"]="Right",
  805. ["BOTTOMLEFT"]="Bottomleft",
  806. ["BOTTOMRIGHT"]="Bottomright",
  807. ["TOPLEFT"]="Topleft",
  808. ["TOPRIGHT"]="Topright"},
  809. set = function(info,val) vexpower.options.cps.setPos("10", "anchor", val) vexpower.initialize.core(true) end,
  810. get = function() return vexpower.options.cps.getPos("10", "anchor") end
  811. },
  812. frameanchorScreen = {
  813. name = "Screen Anchor",
  814. order=15, type = "select", style = "dropdown",
  815. desc = "Sets the achor of the screen",
  816. values = {
  817. ["CENTER"]="Center",
  818. ["BOTTOM"]="Bottom",
  819. ["TOP"]="Top",
  820. ["LEFT"]="Left",
  821. ["RIGHT"]="Right",
  822. ["BOTTOMLEFT"]="Bottomleft",
  823. ["BOTTOMRIGHT"]="Bottomright",
  824. ["TOPLEFT"]="Topleft",
  825. ["TOPRIGHT"]="Topright"},
  826. set = function(info,val) vexpower.options.cps.setPos("10", "anchorFrame", val) vexpower.initialize.core(true) end,
  827. get = function() return vexpower.options.cps.getPos("10", "anchorFrame") end
  828. },
  829. },
  830. },
  831. },
  832. },
  833. },
  834. },
  835.  
  836.  
  837.  
  838.  
  839.  
  840. grpcolors = {
  841. name = "Layout",
  842. order=30, type ="group", dialogInline = true, hidden = not(vexpower.options.cps.openTab["background"]),
  843. args = {
  844. grpcolors = {
  845. name = "ComboPoints",
  846. order=1, type ="group", dialogInline = true,
  847. args = {
  848. activatePresets = {
  849. name = "Load individual color sets for each class instead of one color set for all classes.",
  850. order=1, type = "toggle", width="full",
  851. set = function(self,key) vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["classPresets"]["activate"]=key vexpower.initialize.core(true) end,
  852. get = function() return vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["classPresets"]["activate"] end,
  853. },
  854. info = {name ='The class specific color sets can be setup in the option panel "ComboPoint Color Sets"', type = "description", order=50},
  855.  
  856. set1 = {
  857. name = "Color set for all classes",
  858. order=10, type ="group", dialogInline = true, hidden=vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["classPresets"]["activate"],
  859. args = {
  860. framecolors1 = {
  861. name = "Color of the 1st 'ComboPoint'", width="double",
  862. order=110, type = "color", hasAlpha=false, disabled=vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["classPresets"]["activate"],
  863. set = function(info,r,g,b)
  864. vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["1"]["r"]=r
  865. vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["1"]["g"]=g
  866. vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["1"]["b"]=b
  867. vexpower.initialize.core(true) end,
  868. get = function() return
  869. vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["1"]["r"],
  870. vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["1"]["g"],
  871. vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["1"]["b"] end,
  872. },
  873. opacity1 = {
  874. name = "Opacity %",
  875. order=111, type = "range",
  876. desc = "Sets the opacity",
  877. step = 5, min = 0, max = 100, disabled=vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["classPresets"]["activate"],
  878. set = function(info,val) vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["1"]["a"]=val/100 vexpower.initialize.core(true) end,
  879. get = function() return vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["1"]["a"]*100 end
  880. },
  881. framecolors2 = {
  882. name = "Color of the 2nd 'ComboPoint'", width="double",
  883. order=120, type = "color", hasAlpha=false, disabled=vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["classPresets"]["activate"],
  884. set = function(info,r,g,b)
  885. vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["2"]["r"]=r
  886. vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["2"]["g"]=g
  887. vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["2"]["b"]=b
  888. vexpower.initialize.core(true) end,
  889. get = function() return
  890. vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["2"]["r"],
  891. vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["2"]["g"],
  892. vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["2"]["b"] end,
  893. },
  894. opacity2 = {
  895. name = "Opacity %",
  896. order=121, type = "range",
  897. desc = "Sets the opacity",
  898. step = 5, min = 0, max = 100, disabled=vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["classPresets"]["activate"],
  899. set = function(info,val) vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["2"]["a"]=val/100 vexpower.initialize.core(true) end,
  900. get = function() return vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["2"]["a"]*100 end
  901. },
  902. framecolors3 = {
  903. name = "Color of the 3rd 'ComboPoint'", width="double",
  904. order=130, type = "color", hasAlpha=false, disabled=vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["classPresets"]["activate"],
  905. set = function(info,r,g,b)
  906. vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["3"]["r"]=r
  907. vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["3"]["g"]=g
  908. vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["3"]["b"]=b
  909. vexpower.initialize.core(true) end,
  910. get = function() return
  911. vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["3"]["r"],
  912. vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["3"]["g"],
  913. vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["3"]["b"] end,
  914. },
  915. opacity3 = {
  916. name = "Opacity %",
  917. order=131, type = "range",
  918. desc = "Sets the opacity",
  919. step = 5, min = 0, max = 100, disabled=vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["classPresets"]["activate"],
  920. set = function(info,val) vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["3"]["a"]=val/100 vexpower.initialize.core(true) end,
  921. get = function() return vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["3"]["a"]*100 end
  922. },
  923. framecolors4 = {
  924. name = "Color of the 4th 'ComboPoint'", width="double",
  925. order=140, type = "color", hasAlpha=false, disabled=vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["classPresets"]["activate"],
  926. set = function(info,r,g,b)
  927. vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["4"]["r"]=r
  928. vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["4"]["g"]=g
  929. vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["4"]["b"]=b
  930. vexpower.initialize.core(true) end,
  931. get = function() return
  932. vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["4"]["r"],
  933. vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["4"]["g"],
  934. vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["4"]["b"] end,
  935. },
  936. opacity4 = {
  937. name = "Opacity %",
  938. order=141, type = "range",
  939. desc = "Sets the opacity",
  940. step = 5, min = 0, max = 100, disabled=vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["classPresets"]["activate"],
  941. set = function(info,val) vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["4"]["a"]=val/100 vexpower.initialize.core(true) end,
  942. get = function() return vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["4"]["a"]*100 end
  943. },
  944. framecolors5 = {
  945. name = "Color of the 5th 'ComboPoint'", width="double",
  946. order=150, type = "color", hasAlpha=false, disabled=vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["classPresets"]["activate"],
  947. set = function(info,r,g,b)
  948. vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["5"]["r"]=r
  949. vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["5"]["g"]=g
  950. vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["5"]["b"]=b
  951. vexpower.initialize.core(true) end,
  952. get = function() return
  953. vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["5"]["r"],
  954. vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["5"]["g"],
  955. vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["5"]["b"] end,
  956. },
  957. opacity5 = {
  958. name = "Opacity %",
  959. order=151, type = "range",
  960. desc = "Sets the opacity",
  961. step = 5, min = 0, max = 100, disabled=vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["classPresets"]["activate"],
  962. set = function(info,val) vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["5"]["a"]=val/100 vexpower.initialize.core(true) end,
  963. get = function() return vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["5"]["a"]*100 end
  964. },
  965. framecolors6 = {
  966. name = "Color of the 6th 'ComboPoint'", width="double",
  967. order=160, type = "color", hasAlpha=false, disabled=vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["classPresets"]["activate"],
  968. set = function(info,r,g,b)
  969. vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["6"]["r"]=r
  970. vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["6"]["g"]=g
  971. vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["6"]["b"]=b
  972. vexpower.initialize.core(true) end,
  973. get = function() return
  974. vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["6"]["r"],
  975. vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["6"]["g"],
  976. vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["6"]["b"] end,
  977. },
  978. opacity6 = {
  979. name = "Opacity %",
  980. order=161, type = "range",
  981. desc = "Sets the opacity",
  982. step = 5, min = 0, max = 100, disabled=vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["classPresets"]["activate"],
  983. set = function(info,val) vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["6"]["a"]=val/100 vexpower.initialize.core(true) end,
  984. get = function() return vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["6"]["a"]*100 end
  985. },
  986. framecolors7 = {
  987. name = "Color of the 7th 'ComboPoint'", width="double",
  988. order=170, type = "color", hasAlpha=false, disabled=vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["classPresets"]["activate"],
  989. set = function(info,r,g,b)
  990. vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["7"]["r"]=r
  991. vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["7"]["g"]=g
  992. vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["7"]["b"]=b
  993. vexpower.initialize.core(true) end,
  994. get = function() return
  995. vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["7"]["r"],
  996. vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["7"]["g"],
  997. vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["7"]["b"] end,
  998. },
  999. opacity7 = {
  1000. name = "Opacity %",
  1001. order=171, type = "range",
  1002. desc = "Sets the opacity",
  1003. step = 5, min = 0, max = 100, disabled=vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["classPresets"]["activate"],
  1004. set = function(info,val) vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["7"]["a"]=val/100 vexpower.initialize.core(true) end,
  1005. get = function() return vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["7"]["a"]*100 end
  1006. },
  1007. framecolors8 = {
  1008. name = "Color of the 8th 'ComboPoint'", width="double",
  1009. order=180, type = "color", hasAlpha=false, disabled=vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["classPresets"]["activate"],
  1010. set = function(info,r,g,b)
  1011. vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["8"]["r"]=r
  1012. vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["8"]["g"]=g
  1013. vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["8"]["b"]=b
  1014. vexpower.initialize.core(true) end,
  1015. get = function() return
  1016. vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["8"]["r"],
  1017. vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["8"]["g"],
  1018. vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["8"]["b"] end,
  1019. },
  1020. opacity8 = {
  1021. name = "Opacity %",
  1022. order=181, type = "range",
  1023. desc = "Sets the opacity",
  1024. step = 5, min = 0, max = 100, disabled=vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["classPresets"]["activate"],
  1025. set = function(info,val) vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["8"]["a"]=val/100 vexpower.initialize.core(true) end,
  1026. get = function() return vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["8"]["a"]*100 end
  1027. },
  1028. framecolors9 = {
  1029. name = "Color of the 9th 'ComboPoint'", width="double",
  1030. order=190, type = "color", hasAlpha=false, disabled=vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["classPresets"]["activate"],
  1031. set = function(info,r,g,b)
  1032. vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["9"]["r"]=r
  1033. vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["9"]["g"]=g
  1034. vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["9"]["b"]=b
  1035. vexpower.initialize.core(true) end,
  1036. get = function() return
  1037. vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["9"]["r"],
  1038. vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["9"]["g"],
  1039. vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["9"]["b"] end,
  1040. },
  1041. opacity9 = {
  1042. name = "Opacity %",
  1043. order=191, type = "range",
  1044. desc = "Sets the opacity",
  1045. step = 5, min = 0, max = 100, disabled=vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["classPresets"]["activate"],
  1046. set = function(info,val) vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["9"]["a"]=val/100 vexpower.initialize.core(true) end,
  1047. get = function() return vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["9"]["a"]*100 end
  1048. },
  1049. framecolors10 = {
  1050. name = "Color of the 10th 'ComboPoint'", width="double",
  1051. order=200, type = "color", hasAlpha=false, disabled=vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["classPresets"]["activate"],
  1052. set = function(info,r,g,b)
  1053. vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["10"]["r"]=r
  1054. vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["10"]["g"]=g
  1055. vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["10"]["b"]=b
  1056. vexpower.initialize.core(true) end,
  1057. get = function() return
  1058. vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["10"]["r"],
  1059. vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["10"]["g"],
  1060. vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["10"]["b"] end,
  1061. },
  1062. opacity10 = {
  1063. name = "Opacity %",
  1064. order=201, type = "range",
  1065. desc = "Sets the opacity",
  1066. step = 5, min = 0, max = 100, disabled=vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["classPresets"]["activate"],
  1067. set = function(info,val) vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["10"]["a"]=val/100 vexpower.initialize.core(true) end,
  1068. get = function() return vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["10"]["a"]*100 end
  1069. },
  1070. },
  1071. },
  1072.  
  1073. set2 = {
  1074. name = "Color sets for individual classes",
  1075. order=10, type ="group", dialogInline = true, hidden=not(vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["classPresets"]["activate"]),
  1076. args = {
  1077.  
  1078. PALADINprofile = {
  1079. name = "|CFF"..vexpower.data.lib.getColor.classHex("PALADIN").."Paladin|r Color Set",
  1080. order=21, type = "select", style = "dropdown", width="double",
  1081. values = vexpower.options.colorpresets.getList(),
  1082. set = function(self,key) vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["classPresets"]["classPresets"]["PALADIN"] = key vexpower.initialize.core(true) end,
  1083. get = function() return vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["classPresets"]["classPresets"]["PALADIN"] end,
  1084. },
  1085. DRUIDprofile = {
  1086. name = "|CFF"..vexpower.data.lib.getColor.classHex("DRUID").."Druid|r Color Set",
  1087. order=31, type = "select", style = "dropdown", width="double",
  1088. values = vexpower.options.colorpresets.getList(),
  1089. set = function(self,key) vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["classPresets"]["classPresets"]["DRUID"] = key vexpower.initialize.core(true) end,
  1090. get = function() return vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["classPresets"]["classPresets"]["DRUID"] end,
  1091. },
  1092. ROGUEprofile = {
  1093. name = "|CFF"..vexpower.data.lib.getColor.classHex("ROGUE").."Rogue|r Color Set",
  1094. order=41, type = "select", style = "dropdown", width="double",
  1095. values = vexpower.options.colorpresets.getList(),
  1096. set = function(self,key) vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["classPresets"]["classPresets"]["ROGUE"] = key vexpower.initialize.core(true) end,
  1097. get = function() return vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["classPresets"]["classPresets"]["ROGUE"] end,
  1098. },
  1099. MONKprofile = {
  1100. name = "|CFF"..vexpower.data.lib.getColor.classHex("MONK").."Monk|r Color Set",
  1101. order=51, type = "select", style = "dropdown", width="double",
  1102. values = vexpower.options.colorpresets.getList(),
  1103. set = function(self,key) vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["classPresets"]["classPresets"]["MONK"] = key vexpower.initialize.core(true) end,
  1104. get = function() return vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["classPresets"]["classPresets"]["MONK"] end,
  1105. },
  1106. HUNTERprofile = {
  1107. name = "|CFF"..vexpower.data.lib.getColor.classHex("HUNTER").."Hunter|r Color Set",
  1108. order=61, type = "select", style = "dropdown", width="double",
  1109. values = vexpower.options.colorpresets.getList(),
  1110. set = function(self,key) vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["classPresets"]["classPresets"]["HUNTER"] = key vexpower.initialize.core(true) end,
  1111. get = function() return vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["classPresets"]["classPresets"]["HUNTER"] end,
  1112. },
  1113.  
  1114. DEATHKNIGHTprofile = {
  1115. name = "|CFF"..vexpower.data.lib.getColor.classHex("DEATHKNIGHT").."Death Knight|r Color Set",
  1116. order=71, type = "select", style = "dropdown", width="double",
  1117. values = {[""] = "runes have been outsorced to |CFFFF7D0AVex Runes|r",}, disabled=true,
  1118. set = function(self,key) vexpower.initialize.core(true) end,
  1119. get = function() return "" end,
  1120. },
  1121. -- DEATHKNIGHTainfo = {name = "|CFF"..vexpower.data.lib.getColor.classHex("DEATHKNIGHT").."DeathKnight|r runes have been outsorced to |CFFFF7D0AVex Runes|r", type = "description", fontSize="medium", width="full", order=72},
  1122.  
  1123. WARRIORprofile = {
  1124. name = "|CFF"..vexpower.data.lib.getColor.classHex("WARRIOR").."Warrior|r Color Set",
  1125. order=81, type = "select", style = "dropdown", width="double",
  1126. values = vexpower.options.colorpresets.getList(),
  1127. set = function(self,key) vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["classPresets"]["classPresets"]["WARRIOR"] = key vexpower.initialize.core(true) end,
  1128. get = function() return vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["classPresets"]["classPresets"]["WARRIOR"] end,
  1129. },
  1130. SHAMANprofile = {
  1131. name = "|CFF"..vexpower.data.lib.getColor.classHex("SHAMAN").."Shaman|r Color Set",
  1132. order=91, type = "select", style = "dropdown", width="double",
  1133. values = vexpower.options.colorpresets.getList(),
  1134. set = function(self,key) vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["classPresets"]["classPresets"]["SHAMAN"] = key vexpower.initialize.core(true) end,
  1135. get = function() return vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["classPresets"]["classPresets"]["SHAMAN"] end,
  1136. },
  1137. PRIESTprofile = {
  1138. name = "|CFF"..vexpower.data.lib.getColor.classHex("PRIEST").."Priest|r Color Set",
  1139. order=101, type = "select", style = "dropdown", width="double",
  1140. values = vexpower.options.colorpresets.getList(),
  1141. set = function(self,key) vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["classPresets"]["classPresets"]["PRIEST"] = key vexpower.initialize.core(true) end,
  1142. get = function() return vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["classPresets"]["classPresets"]["PRIEST"] end,
  1143. },
  1144. WARLOCKprofile = {
  1145. name = "|CFF"..vexpower.data.lib.getColor.classHex("WARLOCK").."Warlock|r Color Set",
  1146. order=111, type = "select", style = "dropdown", width="double",
  1147. values = vexpower.options.colorpresets.getList(),
  1148. set = function(self,key) vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["classPresets"]["classPresets"]["WARLOCK"] = key vexpower.initialize.core(true) end,
  1149. get = function() return vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["classPresets"]["classPresets"]["WARLOCK"] end,
  1150. },
  1151. MAGEprofile = {
  1152. name = "|CFF"..vexpower.data.lib.getColor.classHex("MAGE").."Mage|r Color Set",
  1153. order=121, type = "select", style = "dropdown", width="double",
  1154. values = vexpower.options.colorpresets.getList(),
  1155. set = function(self,key) vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["classPresets"]["classPresets"]["MAGE"] = key vexpower.initialize.core(true) end,
  1156. get = function() return vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["classPresets"]["classPresets"]["MAGE"] end,
  1157. },
  1158. DHprofile = {
  1159. name = "|CFF"..vexpower.data.lib.getColor.classHex("DEMONHUNTER").."Demon Hunter|r Color Set",
  1160. order=131, type = "select", style = "dropdown", width="double",
  1161. values = vexpower.options.colorpresets.getList(),
  1162. set = function(self,key) vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["classPresets"]["classPresets"]["DEMONHUNTER"] = key vexpower.initialize.core(true) end,
  1163. get = function() return vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["classPresets"]["classPresets"]["DEMONHUNTER"] end,
  1164. },
  1165. },
  1166. },
  1167. },
  1168. },
  1169. space = {name =" ", type = "description", order=2},
  1170. grtexture = {
  1171. name = "Texture",
  1172. order=3, type ="group", dialogInline = true,
  1173. args = {
  1174. framebackdrop1 = {
  1175. name = "Background Texture Pack 1",
  1176. order=300, type = "select",
  1177. dialogControl = "LSM30_Background",
  1178. desc = "Sets the frame's background-texture",
  1179. values = vexpower.LSM:HashTable("background"),
  1180. set = function(self,key)
  1181. vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["texture"]["pack1"]=key
  1182. vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["texture"]["pack2"]=""
  1183. vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["texture"]["usePack"]=1
  1184. vexpower.initialize.core(true)
  1185. end,
  1186. get = function() return vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["texture"]["pack1"] end,
  1187. },
  1188.  
  1189. framebackdrop2 = {
  1190. name = "Background Texture Pack 2",
  1191. order=300, type = "select",
  1192. dialogControl = "LSM30_Background",
  1193. desc = "Sets the frame's background-texture",
  1194. values = vexpower.LSM:HashTable("statusbar"),
  1195. set = function(self,key)
  1196. vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["texture"]["pack1"]=""
  1197. vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["texture"]["pack2"]=key
  1198. vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["texture"]["usePack"]=2
  1199. vexpower.initialize.core(true)
  1200. end,
  1201. get = function() return vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["texture"]["pack2"] end,
  1202. },
  1203.  
  1204. insetsSpace = {name =" ", type = "description", order=1000, hidden=not(vexpower_SV_profiles[vexpower_SV_data["profile"]]["data"]["advancedOptions"]),},
  1205. grpbackground = {
  1206. name = "Insets",
  1207. order=1001, type ="group", dialogInline = true, hidden=not(vexpower_SV_profiles[vexpower_SV_data["profile"]]["data"]["advancedOptions"]),
  1208. args = {
  1209. spaceTopS = {name =" ", type = "description", order=1, width="normal",},
  1210. top = {
  1211. name = "Top",
  1212. desc = "Controls how far into the frame the background will be drawn",
  1213. order=2, type = "range",
  1214. step = 1, min = 0, max = 20,
  1215. set = function(info,val) vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["insets"]["top"]=val vexpower.initialize.core(true) end,
  1216. get = function() return vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["insets"]["top"] end
  1217. },
  1218. spaceTopE = {name =" ", type = "description", order=3, width="normal",},
  1219. left = {
  1220. name = "Left",
  1221. desc = "Controls how far into the frame the background will be drawn",
  1222. order=4, type = "range",
  1223. step = 1, min = 0, max = 20,
  1224. set = function(info,val) vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["insets"]["left"]=val vexpower.initialize.core(true) end,
  1225. get = function() return vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["insets"]["left"] end
  1226. },
  1227. spaceLeftRight = {name =" ", type = "description", order=5, width="normal",},
  1228. right = {
  1229. name = "Right",
  1230. desc = "Controls how far into the frame the background will be drawn",
  1231. order=6, type = "range",
  1232. step = 1, min = 0, max = 20,
  1233. set = function(info,val) vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["insets"]["right"]=val vexpower.initialize.core(true) end,
  1234. get = function() return vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["insets"]["right"] end
  1235. },
  1236. spaceBottomS = {name =" ", type = "description", order=7, width="normal",},
  1237. bottom = {
  1238. name = "Bottom",
  1239. desc = "Controls how far into the frame the background will be drawn",
  1240. order=8, type = "range",
  1241. step = 1, min = 0, max = 20,
  1242. set = function(info,val) vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["insets"]["bottom"]=val vexpower.initialize.core(true) end,
  1243. get = function() return vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["insets"]["bottom"] end
  1244. },
  1245. }
  1246. },
  1247. },
  1248. },
  1249. space2 = {name =" ", type = "description", order=4},
  1250. grpborder = {
  1251. name = "Border",
  1252. order=5, type ="group", dialogInline = true,
  1253. args = {
  1254. framebackdrop = {
  1255. name = "Border Texture",
  1256. order=1, type = "select",
  1257. dialogControl = "LSM30_Border",
  1258. values = vexpower.LSM:HashTable("border"),
  1259. set = function(self,key) vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["border"]["texture"]=key vexpower.initialize.core(true) end,
  1260. get = function() return vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["border"]["texture"] end,
  1261. },
  1262. framebordercolor = {
  1263. name = "Border color",
  1264. order=2, type = "color", hasAlpha=false,
  1265. set = function(info,r,g,b)
  1266. vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["border"]["color"]["r"]=r
  1267. vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["border"]["color"]["g"]=g
  1268. vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["border"]["color"]["b"]=b
  1269. vexpower.initialize.core(true) end,
  1270. get = function() return vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["border"]["color"]["r"],
  1271. vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["border"]["color"]["g"],
  1272. vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["border"]["color"]["b"] end,
  1273. },
  1274. opacityborder = {
  1275. name = "Border opacity %",
  1276. order=3, type = "range",
  1277. desc = "Sets the opacity",
  1278. step = 5, min = 0, max = 100,
  1279. set = function(info,val) vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["border"]["color"]["a"]=val/100 vexpower.initialize.core(true) end,
  1280. get = function() return vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["border"]["color"]["a"]*100 end
  1281. },
  1282. framebordersize = {
  1283. name = "Border size",
  1284. order=4, type = "range",
  1285. desc = "Sets the size of the border",
  1286. step = 1, min = 1, max = 10,
  1287. set = function(info,val) vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["border"]["size"]=val vexpower.initialize.core(true) end,
  1288. get = function() return vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["border"]["size"] end
  1289. },
  1290. },
  1291. },
  1292. },
  1293. },
  1294.  
  1295. grpfadeout = {
  1296. name = "'Used'-Effect",
  1297. order=40, type ="group", dialogInline = true, hidden = not(vexpower.options.cps.openTab["fadeout"]),
  1298. args = {
  1299. info = {name = "ComboPoints that has just been spent will be recolored and then fade out.\n", type = "description", order=1},
  1300. cpusedfadeout = {
  1301. name = "Activate",
  1302. order=200, type = "toggle", width="double",
  1303. set = function(self,key) vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["usedEffect"]["activate"]=key vexpower.initialize.core(true) end,
  1304. get = function() return vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["usedEffect"]["activate"] end,
  1305. },
  1306. framecolorsused = {
  1307. name = "New Color", width="double",
  1308. order=201, type = "color", hasAlpha=false,
  1309. disabled = not(vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["usedEffect"]["activate"]) or vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["classPresets"]["activate"],
  1310. set = function(info,r,g,b)
  1311. vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["used"]["r"]=r
  1312. vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["used"]["g"]=g
  1313. vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["used"]["b"]=b
  1314. vexdebugs.print("r",vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["used"]["r"])
  1315. vexdebugs.print("g",vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["used"]["g"])
  1316. vexdebugs.print("b",vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["used"]["b"])
  1317. vexpower.initialize.core(true) end,
  1318. get = function() return
  1319. vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["used"]["r"],
  1320. vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["used"]["g"],
  1321. vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["used"]["b"] end,
  1322. },
  1323. opacityused = {
  1324. name = "Opacity %",
  1325. order=202, type = "range",
  1326. desc = "Sets the opacity",
  1327. step = 5, min = 0, max = 100,
  1328. disabled = not(vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["usedEffect"]["activate"]) or vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["classPresets"]["activate"],
  1329. set = function(info,val) vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["used"]["a"]=val/100 vexpower.initialize.core(true) end,
  1330. get = function() return vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["used"]["a"]*100 end
  1331. },
  1332. disabledinfo = {name = "You can't change the color because the color is set up in a 'color set'. To change it go to: 'ComboPoints Color Sets'\nor disable the usage of 'color sets' at 'ComboPoints' --> 'Layout' --> 'Load individual color sets for each class instead of one color set for all classes.'.", type = "description", order=203, disabled=vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["classPresets"]["activate"]},
  1333. },
  1334. },
  1335.  
  1336. grpchangeCPsOnX = {
  1337. name = "Recolor",
  1338. order=50, type ="group", dialogInline = true, hidden = not(vexpower.options.cps.openTab["change"]),
  1339. args = {
  1340. changeOnXinfo = {name = "When a specific amount of ComboPoints is reached they get recolored.\n", type="description", order=1},
  1341. activatechange = {
  1342. name = "Activate",
  1343. order=10, type = "toggle", width="normal",
  1344. set = function(self,key) vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["activateRecoloring"]=key vexpower.initialize.core(true) end,
  1345. get = function() return vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["activateRecoloring"] end,
  1346. },
  1347. changex = {
  1348. name = "Threshold for recoloring",
  1349. order=11, type = "range",
  1350. step = 1, min = 1, max = 15,
  1351. disabled = not(vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["activateRecoloring"]) or vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["changeOnMax"],
  1352. set = function(info,val) vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["threshold"]=val vexpower.initialize.core(true) end,
  1353. get = function() return tonumber(vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["threshold"]) end
  1354. },
  1355. space = {name = " ", type="description", order=12},
  1356. maxCps = {
  1357. name = "Recolor when ComboPoints are full, instead of when the threshold is reached",
  1358. order=12, type = "toggle", width="full",
  1359. disabled = not(vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["activateRecoloring"]),
  1360. set = function(self,key) vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["changeOnMax"] = key vexpower.initialize.core(true) end,
  1361. get = function() return vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["changeOnMax"] end,
  1362. },
  1363. space3 = {name = " ", type="description", order=30},
  1364. activatechangeall = {
  1365. name = "Only recolor the ComboPoints needed to reach the threshold, instead of all",
  1366. order=31, type = "toggle", width="full",
  1367. disabled = not(vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["activateRecoloring"]) or vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["changeOnMax"],
  1368. set = function(self,key) vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["changeThresholdOnly"]=key vexpower.initialize.core(true) end,
  1369. get = function() return vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["changeThresholdOnly"] end,
  1370. },
  1371. absentCombopoints = {
  1372. name = "Recolor when no more than X combopoints are absent",
  1373. order=36, type = "toggle", width="full",
  1374. disabled = not(vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["activateRecoloring"]) or vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["changeOnMax"],
  1375. set = function(self,key) vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["absentCombopoints"]=key vexpower.initialize.core(true) end,
  1376. get = function() return vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["absentCombopoints"] end,
  1377. },
  1378. framecolorschange = {
  1379. name = "new color", width="double",
  1380. order=40, type = "color", hasAlpha=false,
  1381. disabled = not(vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["activateRecoloring"]) or vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["classPresets"]["activate"],
  1382. set = function(info,r,g,b)
  1383. vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["change"]["r"]=r
  1384. vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["change"]["g"]=g
  1385. vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["change"]["b"]=b
  1386. vexpower.initialize.core(true) end,
  1387. get = function() return
  1388. vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["change"]["r"],
  1389. vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["change"]["g"],
  1390. vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["change"]["b"] end,
  1391. },
  1392. opacitychange = {
  1393. name = "Opacity %",
  1394. order=41, type = "range",
  1395. desc = "Sets the opacity",
  1396. step = 5, min = 0, max = 100,
  1397. disabled = not(vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["activateRecoloring"]) or vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["classPresets"]["activate"],
  1398. set = function(info,val) vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["change"]["a"]=val/100 vexpower.initialize.core(true) end,
  1399. get = function() return vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["colors"]["change"]["a"]*100 end
  1400. },
  1401. disabledinfo = {name = "You can't change the color because the color is set up in a 'color set'. To change it go to: 'ComboPoints Color Sets'\nor disable the usage of 'color sets' at 'ComboPoints' --> 'Layout' --> 'Load individual color sets for each class instead of one color set for all classes.'.", type = "description", order=42, disabled=vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["design"]["colors"]["classPresets"]["activate"]},
  1402. },
  1403. },
  1404.  
  1405. grpSoundOnY = {
  1406. name = "Sound Threshold",
  1407. order=60, type ="group", dialogInline = true, hidden = not(vexpower.options.cps.openTab["sound"]),
  1408. args = {
  1409. changeOnXinfo = {name = "Play a sound when a specific amount of ComboPoints is reached.\n", type="description", order=1},
  1410. activate = {
  1411. name = "Activate",
  1412. order=10, type = "toggle", width="full",
  1413. set = function(self,key) vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["sound"]["activate"]=key vexpower.initialize.core(true) end,
  1414. get = function() return vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["sound"]["activate"] end,
  1415. },
  1416. space = {name = " ", type="description", order=11},
  1417. changey = {
  1418. name = "Threshold",
  1419. order=20, type = "range",
  1420. step = 1, min = 1, max = 15,
  1421. disabled = not(vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["sound"]["activate"]),
  1422. set = function(info,val) vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["sound"]["threshold"] = val end,
  1423. get = function() return vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["sound"]["threshold"] end
  1424. },
  1425. space2 = {name =" ", type = "description", order=21},
  1426. file = {
  1427. name = "Sound",
  1428. order=30, type = "select",
  1429. dialogControl = "LSM30_Sound",
  1430. values = vexpower.LSM:HashTable("sound"),
  1431. disabled = not(vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["sound"]["activate"]),
  1432. set = function(self,key) vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["sound"]["file"] = key end,
  1433. get = function() return vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["sound"]["file"] end,
  1434. },
  1435. channel = {
  1436. name = "Channel",
  1437. order=31, type = "select", style = "dropdown",
  1438. values = {["Master"]="Master", ["SFX"]="SFX", ["Ambience"]="Ambience", ["Music"]="Music"},
  1439. disabled = not(vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["sound"]["activate"]),
  1440. set = function(self,key) vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["sound"]["channel"] = key end,
  1441. get = function() return vexpower_SV_profiles[vexpower_SV_data["profile"]]["CPBar"]["sound"]["channel"] end,
  1442. },
  1443. },
  1444. },
  1445.  
  1446. grpclassspec = {
  1447. name = "Class-specifics",
  1448. order=70, type ="group", dialogInline = true, hidden = not(vexpower.options.cps.openTab["classspec"]),
  1449. args = {
  1450. grpdh = {
  1451. name = "|CFF"..vexpower.data.lib.getColor.classHex("DEMONHUNTER").."Demon Hunter|r ",
  1452. order=1, type ="group", dialogInline = true,
  1453. args = {
  1454. shadow = {
  1455. name = "Vengeance: Show 'Soul Fragments' as Combo Points",
  1456. order=1, type = "toggle", width="full",
  1457. set = function(info,val) vexpower_SV_profiles[vexpower_SV_data["profile"]]["data"]["classSpec"]["dh"]["fragments"]=val vexpower.initialize.core(true) end,
  1458. get = function() return vexpower_SV_profiles[vexpower_SV_data["profile"]]["data"]["classSpec"]["dh"]["fragments"] end,
  1459. },
  1460. },
  1461. },
  1462. grpdruid = {
  1463. name = "|CFF"..vexpower.data.lib.getColor.classHex("DRUID").."Druid|r",
  1464. order=2, type ="group", dialogInline = true,
  1465. args = {
  1466. cps = {
  1467. name = "Show ComboPoints",
  1468. order=1, type = "toggle", width="full",
  1469. set = function(info,val) vexpower_SV_profiles[vexpower_SV_data["profile"]]["data"]["classSpec"]["druid"]["cps"]=val vexpower.initialize.core(true) end,
  1470. get = function() return vexpower_SV_profiles[vexpower_SV_data["profile"]]["data"]["classSpec"]["druid"]["cps"] end,
  1471. },
  1472. keepCPShown = {
  1473. name = "Keep ComboPoints shown when no target is set",
  1474. order=2, type = "toggle", width="full",
  1475. set = function(info,val) vexpower_SV_profiles[vexpower_SV_data["profile"]]["data"]["classSpec"]["druid"]["keepCPShown"]=val vexpower.initialize.core(true) end,
  1476. get = function() return vexpower_SV_profiles[vexpower_SV_data["profile"]]["data"]["classSpec"]["druid"]["keepCPShown"] end,
  1477. },
  1478. },
  1479. },
  1480. grpmage = {
  1481. name = "|CFF"..vexpower.data.lib.getColor.classHex("MAGE").."Mage|r",
  1482. order=3, type ="group", dialogInline = true,
  1483. args = {
  1484. cps = {
  1485. name = "Arcane: Show Arcane Charge as ComboPoints",
  1486. order=1, type = "toggle", width="full",
  1487. set = function(info,val) vexpower_SV_profiles[vexpower_SV_data["profile"]]["data"]["classSpec"]["mage"]["cps"]=val vexpower.initialize.core(true) end,
  1488. get = function() return vexpower_SV_profiles[vexpower_SV_data["profile"]]["data"]["classSpec"]["mage"]["cps"] end,
  1489. },
  1490. },
  1491. },
  1492. grpmonk = {
  1493. name = "|CFF"..vexpower.data.lib.getColor.classHex("MONK").."Monk|r",
  1494. order=4, type ="group", dialogInline = true,
  1495. args = {
  1496. cps = {
  1497. name = "Windwalker: Show Chi as ComboPoints",
  1498. order=1, type = "toggle", width="full",
  1499. set = function(info,val) vexpower_SV_profiles[vexpower_SV_data["profile"]]["data"]["classSpec"]["monk"]["cps"]=val vexpower.initialize.core(true) end,
  1500. get = function() return vexpower_SV_profiles[vexpower_SV_data["profile"]]["data"]["classSpec"]["monk"]["cps"] end,
  1501. },
  1502. GotO = {
  1503. name = "Brewmaster: Show Healing spheres as ComboPoints",
  1504. order=1, type = "toggle", width="full",
  1505. set = function(info,val) vexpower_SV_profiles[vexpower_SV_data["profile"]]["data"]["classSpec"]["monk"]["GotO"]=val vexpower.initialize.core(true) end,
  1506. get = function() return vexpower_SV_profiles[vexpower_SV_data["profile"]]["data"]["classSpec"]["monk"]["GotO"] end,
  1507. },
  1508. },
  1509. },
  1510. grppaladin = {
  1511. name = "|CFF"..vexpower.data.lib.getColor.classHex("PALADIN").."Paladin|r",
  1512. order=5, type ="group", dialogInline = true,
  1513. args = {
  1514. cps = {
  1515. name = "Show HolyPower as ComboPoints",
  1516. order=1, type = "toggle", width="full",
  1517. set = function(info,val) vexpower_SV_profiles[vexpower_SV_data["profile"]]["data"]["classSpec"]["paladin"]["cps"]=val vexpower.initialize.core(true) end,
  1518. get = function() return vexpower_SV_profiles[vexpower_SV_data["profile"]]["data"]["classSpec"]["paladin"]["cps"] end,
  1519. },
  1520. },
  1521. },
  1522. grppriest = {
  1523. name = "|CFF"..vexpower.data.lib.getColor.classHex("PRIEST").."Priest|r ",
  1524. order=6, type ="group", dialogInline = true,
  1525. args = {
  1526. shadow = {
  1527. name = "Shadow: Show mana as an alternative powerbar",
  1528. order=1, type = "toggle", width="full",
  1529. set = function(info,val) vexpower_SV_profiles[vexpower_SV_data["profile"]]["data"]["classSpec"]["priest"]["mana"]=val vexpower.initialize.core(true) end,
  1530. get = function() return vexpower_SV_profiles[vexpower_SV_data["profile"]]["data"]["classSpec"]["priest"]["mana"] end,
  1531. },
  1532. },
  1533. },
  1534. grprogue = {
  1535. name = "|CFF"..vexpower.data.lib.getColor.classHex("ROGUE").."Rogue|r",
  1536. order=7, type ="group", dialogInline = true,
  1537. args = {
  1538. cps = {
  1539. name = "Show ComboPoints",
  1540. order=1, type = "toggle", width="full",
  1541. set = function(info,val) vexpower_SV_profiles[vexpower_SV_data["profile"]]["data"]["classSpec"]["rogue"]["cps"]=val vexpower.initialize.core(true) end,
  1542. get = function() return vexpower_SV_profiles[vexpower_SV_data["profile"]]["data"]["classSpec"]["rogue"]["cps"] end,
  1543. },
  1544. keepCPShown = {
  1545. name = "Keep ComboPoints shown when no target is set",
  1546. order=2, type = "toggle", width="full",
  1547. set = function(info,val) vexpower_SV_profiles[vexpower_SV_data["profile"]]["data"]["classSpec"]["rogue"]["keepCPShown"]=val vexpower.initialize.core(true) end,
  1548. get = function() return vexpower_SV_profiles[vexpower_SV_data["profile"]]["data"]["classSpec"]["rogue"]["keepCPShown"] end,
  1549. },
  1550. },
  1551. },
  1552. grpshaman = {
  1553. name = "|CFF"..vexpower.data.lib.getColor.classHex("SHAMAN").."Shaman|r ",
  1554. order=8, type ="group", dialogInline = true,
  1555. args = {
  1556. Enhancer = {
  1557. name = "Enhancer: Show mana as an alternative powerbar",
  1558. order=1, type = "toggle", width="full",
  1559. set = function(info,val) vexpower_SV_profiles[vexpower_SV_data["profile"]]["data"]["classSpec"]["shaman"]["enhancerMana"]=val vexpower_SV_profiles[vexpower_SV_data["profile"]]["data"]["classSpec"]["shaman"]["enhancerStormstrikes"]=false vexpower.initialize.core(true) end,
  1560. get = function() return vexpower_SV_profiles[vexpower_SV_data["profile"]]["data"]["classSpec"]["shaman"]["enhancerMana"] end,
  1561. },
  1562. Enhancer2 = {
  1563. name = "Enhancer: Show number of rdy Stormstrike charges ",
  1564. order=2, type = "toggle", width="full",
  1565. set = function(info,val) vexpower_SV_profiles[vexpower_SV_data["profile"]]["data"]["classSpec"]["shaman"]["enhancerStormstrikes"]=val vexpower_SV_profiles[vexpower_SV_data["profile"]]["data"]["classSpec"]["shaman"]["enhancerMana"]=false vexpower.initialize.core(true) end,
  1566. get = function() return vexpower_SV_profiles[vexpower_SV_data["profile"]]["data"]["classSpec"]["shaman"]["enhancerStormstrikes"] end,
  1567. },
  1568. Enhancer2info = {name ="Shows 1 CP for cooldown rdy and 1 (2 if 'Tempest' is talented) more when Stormbringer-passive procs", type = "description", order=3},
  1569. Elemental = {
  1570. name = "Elemental : Show mana as an alternative powerbar",
  1571. order=4, type = "toggle", width="full",
  1572. set = function(info,val) vexpower_SV_profiles[vexpower_SV_data["profile"]]["data"]["classSpec"]["shaman"]["eleMana"]=val vexpower.initialize.core(true) end,
  1573. get = function() return vexpower_SV_profiles[vexpower_SV_data["profile"]]["data"]["classSpec"]["shaman"]["eleMana"] end,
  1574. },
  1575. },
  1576. },
  1577. grpwarlock = {
  1578. name = "|CFF"..vexpower.data.lib.getColor.classHex("WARLOCK").."Warlock|r",
  1579. order=9, type ="group", dialogInline = true,
  1580. args = {
  1581. affli = {
  1582. name = "Show Soul Shards as ComboPoints",
  1583. order=1, type = "toggle", width="full",
  1584. set = function(info,val) vexpower_SV_profiles[vexpower_SV_data["profile"]]["data"]["classSpec"]["warlock"]["cps"]=val vexpower.initialize.core(true) end,
  1585. get = function() return vexpower_SV_profiles[vexpower_SV_data["profile"]]["data"]["classSpec"]["warlock"]["cps"] end,
  1586. },
  1587. },
  1588. },
  1589. grpwarrior = {
  1590. name = "|CFF"..vexpower.data.lib.getColor.classHex("WARRIOR").."Warrior|r",
  1591. order=10, type ="group", dialogInline = true,
  1592. args = {
  1593. prot = {
  1594. name = "Protection: Show 'Focused Rage'-Buffs as CPs",
  1595. order=1, type = "toggle", width="full",
  1596. set = function(info,val) vexpower_SV_profiles[vexpower_SV_data["profile"]]["data"]["classSpec"]["warrior"]["focuesdrage"]=val vexpower.initialize.core(true) end,
  1597. get = function() return vexpower_SV_profiles[vexpower_SV_data["profile"]]["data"]["classSpec"]["warrior"]["focuesdrage"] end,
  1598. },
  1599. arms = {
  1600. name = "Arms: Show 'Focused Rage'-Buffs as CPs",
  1601. order=2, type = "toggle", width="full",
  1602. set = function(info,val) vexpower_SV_profiles[vexpower_SV_data["profile"]]["data"]["classSpec"]["warrior"]["focuesdrageArms"]=val vexpower.initialize.core(true) end,
  1603. get = function() return vexpower_SV_profiles[vexpower_SV_data["profile"]]["data"]["classSpec"]["warrior"]["focuesdrageArms"] end,
  1604. },
  1605. },
  1606. },
  1607. },
  1608. },
  1609. }
  1610. }
  1611. end
RAW Paste Data