0
@@ -7,8 +7,8 @@ if not ControlFreak then return end
0
-local ww = LibStub("WidgetWarlock-Alpha1")
0
local tekcheck = LibStub("tekKonfig-Checkbox")
0
+local tekslider = LibStub("tekKonfig-Slider")
0
@@ -37,9 +37,9 @@ frame:SetScript("OnShow", function(frame)
0
showtip:SetChecked(ControlFreak.db.char.showtooltip)
0
- local threshslider, threshslidertext, threashsliderlow = ww:SummonSlider(frame, "Break Threshold: "..ControlFreak.db.char.breakthreshold.." sec", 0, 10, "LEFT", frame, "TOP", GAP, 0)
0
- threshslider:SetPoint("TOP", lockpos, "TOP", 0, -15)
0
- ww:EnslaveTooltip(threshslider, "Time (in seconds) before spell breaks to unfade frame.")
0
+ local threshslider, threshslidertext, threshcontainer = tekslider.new(frame, "Break Threshold: "..ControlFreak.db.char.breakthreshold.." sec", 0, 10, "LEFT", frame, "TOP", GAP, 0)
0
+ threshcontainer:SetPoint("TOP", lockpos, "TOP", 0, 0)
0
+ threshslider.tiptext = "Time (in seconds) before spell breaks to unfade frame."
0
threshslider:SetValue(ControlFreak.db.char.breakthreshold)
0
threshslider:SetValueStep(1)
0
threshslider:SetScript("OnValueChanged", function()
0
@@ -49,9 +49,9 @@ frame:SetScript("OnShow", function(frame)
0
local alpha = math.floor(ControlFreak.db.char.alpha*100 + .5)
0
- local alphaslider, alphaslidertext, alphasliderlow = ww:SummonSlider(frame, "Alpha: "..alpha.."%", "0%", "100%", "TOP", threashsliderlow, "BOTTOM", 0, -GAP-10)
0
- alphaslider:SetPoint("LEFT", threshslider, "LEFT")
0
- ww:EnslaveTooltip(alphaslider, "Alpha level to fade frame to when focus is controlled, dead, or not set.")
0
+ local alphaslider, alphaslidertext = tekslider.new(frame, "Alpha: "..alpha.."%", "0%", "100%", "TOP", threshcontainer, "BOTTOM", 0, -GAP)
0
+--~ alphaslider:SetPoint("LEFT", threshslider, "LEFT")
0
+ alphaslider.tiptext = "Alpha level to fade frame to when focus is controlled, dead, or not set."
0
alphaslider:SetValue(ControlFreak.db.char.alpha)
0
alphaslider:SetValueStep(0.05)
0
alphaslider:SetScript("OnValueChanged", function()
0
@@ -62,9 +62,8 @@ frame:SetScript("OnShow", function(frame)
0
- local function OnShow(frame) ww.FadeIn(frame, 0.5) end
0
- frame:SetScript("OnShow", OnShow)
0
+ frame:SetScript("OnShow", LibStub("tekKonfig-FadeIn").FadeIn)
0
+ LibStub("tekKonfig-FadeIn").FadeIn(frame)
0
InterfaceOptions_AddCategory(frame)
Comments
No one has commented yet.