Skip to content

Commit

Permalink
Readd config entry to blizz options
Browse files Browse the repository at this point in the history
  • Loading branch information
ls- committed Oct 25, 2022
1 parent e0f29fd commit f5da687
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -504,22 +504,22 @@ E:RegisterEvent("ADDON_LOADED", function(arg1)
P:UpdateOptions()
P:EnableAllSystems()

-- local panel = CreateFrame("Frame", "LSTConfigPanel")
-- panel:Hide()

-- local button = CreateFrame("Button", nil, panel, "UIPanelButtonTemplate")
-- button:SetText(L["OPEN_CONFIG"])
-- button:SetWidth(button:GetTextWidth() + 18)
-- button:SetPoint("TOPLEFT", 16, -16)
-- button:SetScript("OnClick", function()
-- if not InCombatLockdown() then
-- -- SettingsPanel:Close()

-- LibStub("AceConfigDialog-3.0"):Open(addonName)
-- end
-- end)

-- Settings.RegisterAddOnCategory(Settings.RegisterCanvasLayoutCategory(panel, L["LS_TOASTS"]))
local panel = CreateFrame("Frame", "LSTConfigPanel")
panel:Hide()

local button = CreateFrame("Button", nil, panel, "UIPanelButtonTemplate")
button:SetText(L["OPEN_CONFIG"])
button:SetWidth(button:GetTextWidth() + 18)
button:SetPoint("TOPLEFT", 16, -16)
button:SetScript("OnClick", function()
if not InCombatLockdown() then
HideUIPanel(SettingsPanel)

LibStub("AceConfigDialog-3.0"):Open(addonName)
end
end)

Settings.RegisterAddOnCategory(Settings.RegisterCanvasLayoutCategory(panel, L["LS_TOASTS"]))

E:RegisterEvent("PLAYER_REGEN_DISABLED", function()
LibStub("AceConfigDialog-3.0"):Close(addonName)
Expand Down

0 comments on commit f5da687

Please sign in to comment.