Skip to content

Commit

Permalink
Merge branch 'patch-4.4.1' of github.com:GovtGeek/TinyTooltip-Wrath i…
Browse files Browse the repository at this point in the history
…nto patch-4.4.1
  • Loading branch information
GovtGeek committed Oct 7, 2024
2 parents 5313b88 + b0e3dbf commit 18f6e70
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 18f6e70

Please sign in to comment.