0
@@ -19,8 +19,6 @@ Minimap:SetBlipTexture("Interface\\AddOns\\Blipstick\\SmallExclaim")
0
-local tekcheck = LibStub("tekKonfig-Checkbox")
0
-local tekslider = LibStub("tekKonfig-Slider")
0
local GAP, EDGEGAP = 8, 16
0
@@ -32,7 +30,6 @@ local frame = CreateFrame("Frame", nil, UIParent)
0
frame.name = "Blipstick"
0
frame:SetScript("OnShow", function(frame)
0
---~ local ControlFreak = ControlFreak
0
local title, subtitle = LibStub("tekKonfig-Heading").new(frame, "Blipstick", "These settings let you select a different set of minimap blips to use.")
0
local anchor = subtitle
0
@@ -52,44 +49,6 @@ frame:SetScript("OnShow", function(frame)
0
---~ local lockpos = tekcheck.new(frame, nil, "Lock frame", "TOPLEFT", subtitle, "BOTTOMLEFT", -2, -GAP)
0
---~ lockpos.tiptext = "Locks the frame to prevent accidental movement"
0
---~ local checksound = lockpos:GetScript("OnClick")
0
---~ lockpos:SetScript("OnClick", function(self) checksound(self); ControlFreak.db.char.frameopts.locked = not ControlFreak.db.char.frameopts.locked end)
0
---~ lockpos:SetChecked(ControlFreak.db.char.frameopts.locked)
0
---~ local showtip = tekcheck.new(frame, nil, "Show tooltip", "TOPLEFT", lockpos, "BOTTOMLEFT", 0, -GAP)
0
---~ showtip.tiptext = "Show help tooltip on hover"
0
---~ showtip:SetScript("OnClick", function(self) checksound(self); ControlFreak.db.char.showtooltip = not ControlFreak.db.char.showtooltip end)
0
---~ showtip:SetChecked(ControlFreak.db.char.showtooltip)
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
---~ ControlFreak.db.char.breakthreshold = threshslider:GetValue()
0
---~ threshslidertext:SetText("Break Threshold: "..ControlFreak.db.char.breakthreshold.." sec")
0
---~ local alpha = math.floor(ControlFreak.db.char.alpha*100 + .5)
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
---~ ControlFreak.db.char.alpha = alphaslider:GetValue()
0
---~ local alpha = math.floor(ControlFreak.db.char.alpha*100 + .5)
0
---~ alphaslidertext:SetText("Alpha: "..alpha.."%")
0
---~ ControlFreak:OnUpdate(true)
0
frame:SetScript("OnShow", nil)
Comments
No one has commented yet.