diff --git a/Options.lua b/Options.lua index f6ff315..4891ca5 100644 --- a/Options.lua +++ b/Options.lua @@ -103,17 +103,17 @@ function widgets:checkbox(parent, config, labelText) end function widgets:slider(parent, config) - local frame = CreateFrame("Slider", nil, parent, "OptionsSliderTemplate") + local frame = CreateFrame("Slider", nil, parent, "UISliderTemplate") frame:SetWidth(118) frame.Text = frame:CreateFontString(nil, "ARTWORK", "GameFontHighlight") frame.Text:SetPoint("LEFT", frame, "RIGHT", 8, 0) frame.keystring = config.keystring - frame.Low:SetText("") - frame.High:SetTextColor(1, 0.82, 0) - frame.High:ClearAllPoints() - frame.High:SetPoint("RIGHT", frame, "LEFT", -1, 0) + --frame.Low:SetText("") + --frame.High:SetTextColor(1, 0.82, 0) + --frame.High:ClearAllPoints() + --frame.High:SetPoint("RIGHT", frame, "LEFT", -1, 0) frame.Text:SetText(L[config.keystring]) - frame.High:SetText(GetVariable(config.keystring)) + --frame.High:SetText(GetVariable(config.keystring)) frame:SetMinMaxValues(config.min, config.max) frame:SetValueStep(config.step) frame:SetValue(GetVariable(config.keystring)) @@ -128,7 +128,7 @@ function widgets:slider(parent, config) end if (self:GetValue() ~= value) then SetVariable(self.keystring, value) - self.High:SetText(value) + --self.High:SetText(value) end end) return frame @@ -822,21 +822,21 @@ function SlashCmdList.TinyTooltip(msg, editbox) if (msg == "reset") then BigTipDB = {} elseif (msg == "npc") then - InterfaceOptionsFrame_OpenToCategory(frameNPC) - InterfaceOptionsFrame_OpenToCategory(frameNPC) + Settings.OpenToCategory(frameNPC) + --InterfaceOptionsFrame_OpenToCategory(frameNPC) elseif (msg == "player") then - InterfaceOptionsFrame_OpenToCategory(framePCScrollFrame) - InterfaceOptionsFrame_OpenToCategory(framePCScrollFrame) + Settings.OpenToCategory(framePCScrollFrame) + --InterfaceOptionsFrame_OpenToCategory(framePCScrollFrame) elseif (msg == "spell") then - InterfaceOptionsFrame_OpenToCategory(frameSpell) - InterfaceOptionsFrame_OpenToCategory(frameSpell) + Settings.OpenToCategory(frameSpell) + --InterfaceOptionsFrame_OpenToCategory(frameSpell) elseif (msg == "statusbar") then - InterfaceOptionsFrame_OpenToCategory(frameStatusbar) - InterfaceOptionsFrame_OpenToCategory(frameStatusbar) + Settings.OpenToCategory(frameStatusbar) + --InterfaceOptionsFrame_OpenToCategory(frameStatusbar) else - InterfaceOptionsFrame_OpenToCategory(frameStatusbar) - InterfaceOptionsFrame_OpenToCategory(frameStatusbar) - InterfaceOptionsFrame_OpenToCategory(frame) + Settings.OpenToCategory(frameStatusbar) + --InterfaceOptionsFrame_OpenToCategory(frameStatusbar) + --InterfaceOptionsFrame_OpenToCategory(frame) end end