Skip to content

Commit

Permalink
Fix warning delta
Browse files Browse the repository at this point in the history
  • Loading branch information
Kirri777 committed Oct 21, 2024
1 parent aed6644 commit a485bc0
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Frame.lua
Original file line number Diff line number Diff line change
Expand Up @@ -513,15 +513,16 @@ function AddOn.createOptionsFrame()
options.minDelta:SetValueStep(1)
options.minDelta:SetObeyStepOnDrag(true)
options.minDelta:SetScript("OnValueChanged", function (_, val)
DYNT_Options_MinDeltaText:SetText(val)
getglobal(options.minDelta:GetName() .. 'Text'):SetText(val); --Sets the "title" text (top-centre of slider).
AddOn.db.config.minDelta = val
end)
options.tooltipText = L["Minimum itemlevel allowed"]
DYNT_Options_MinDeltaLow:SetText("0")
DYNT_Options_MinDeltaHigh:SetText("100")
DYNT_Options_MinDeltaText:SetText(AddOn.Config.minDelta)
options.minDelta.tooltipText = L["Minimum itemlevel allowed"] --Creates a tooltip on mouseover.
getglobal(options.minDelta:GetName() .. 'Low'):SetText('1'); --Sets the left-side slider text (default is "Low").
getglobal(options.minDelta:GetName() .. 'High'):SetText('100'); --Sets the right-side slider text (default is "High").
getglobal(options.minDelta:GetName() .. 'Text'):SetText(AddOn.db.config.minDelta); --Sets the "title" text (top-centre of slider).
options.minDelta:Show()


local minDeltaLabel = options.minDelta:CreateFontString(nil, "BACKGROUND", "GameFontNormal")
minDeltaLabel:SetPoint("TOPLEFT", options.minDelta, "TOPLEFT", -3, 30)
minDeltaLabel:SetJustifyH("LEFT")
Expand Down

0 comments on commit a485bc0

Please sign in to comment.