Quantcast

added more classbar options

failcoder [07-14-15 - 20:21]
added more classbar options
Filename
SVUI_!Options/UnitFrames.lua
diff --git a/SVUI_!Options/UnitFrames.lua b/SVUI_!Options/UnitFrames.lua
index 19771a1..669107d 100644
--- a/SVUI_!Options/UnitFrames.lua
+++ b/SVUI_!Options/UnitFrames.lua
@@ -46,7 +46,7 @@ if(not MOD) then return end;
 local _, SVUIOptions = ...;
 local Schema = MOD.Schema;
 local ACD = LibStub("AceConfigDialog-1.0");
-
+local playerClass = select(2, UnitClass("player"));
 local DEFAULT_COLOR = {["r"] = 1, ["g"] = 0, ["b"] = 0};
 local STYLE_SELECT = {["coloredIcon"] = L["Colored Icon"], ["texturedIcon"] = L["Textured Icon"], [""] = NONE};
 local POSITION_SELECT = {
@@ -3127,13 +3127,43 @@ SV.Options.args[Schema] = {
 									type = "toggle",
 									order = 5,
 									width = 'full',
-									name = L["Use Alternate Styled Death Knight Runes"]
+									name = L["Use Alternate Styled Death Knight Runes"],
+									disabled = function() return playerClass ~= 'DEATHKNIGHT' end
 								},
 								altComboPoints = {
 									type = "toggle",
 									order = 6,
 									width = 'full',
-									name = L["Use Alternate Styled Rogue Combo Points"]
+									name = L["Use Alternate Styled Rogue Combo Points"],
+									disabled = function() return playerClass ~= 'ROGUE' end
+								},
+								enableStagger = {
+									type = "toggle",
+									order = 7,
+									width = 'full',
+									name = L["Use Monk's Stagger Bar"],
+									disabled = function() return playerClass ~= 'MONK' end
+								},
+								enableAltMana = {
+									type = "toggle",
+									order = 8,
+									width = 'full',
+									name = L["Use Druid Alt-Mana Bar"],
+									disabled = function() return playerClass ~= 'DRUID' end
+								},
+								enableCat = {
+									type = "toggle",
+									order = 9,
+									width = 'full',
+									name = L["Use Druid Cat-Form Combo Points"],
+									disabled = function() return playerClass ~= 'DRUID' end
+								},
+								enableChicken = {
+									type = "toggle",
+									order = 10,
+									width = 'full',
+									name = L["Use Druid Eclipse Bar"],
+									disabled = function() return playerClass ~= 'DRUID' end
 								},
 							}
 						}