Skip to content

Commit

Permalink
Changed slider template - Now a known bug with high/low slider labels
Browse files Browse the repository at this point in the history
Updated option panel calls to use Settings - Now a known bug loading directly to a specific section of the addon options
  • Loading branch information
GovtGeek committed Sep 25, 2024
1 parent 336e1b1 commit b0e3dbf
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions Options.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand All @@ -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
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit b0e3dbf

Please sign in to comment.