mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-04 20:50:01 +00:00
addonbuttons: disable addon buttons by default
This commit is contained in:
@@ -839,6 +839,7 @@ function pfUI:LoadConfig()
|
||||
pfUI:UpdateConfig("position", nil, nil, nil)
|
||||
pfUI:UpdateConfig("disabled", nil, nil, nil)
|
||||
|
||||
pfUI:UpdateConfig("abuttons", nil, "enable", "0")
|
||||
pfUI:UpdateConfig("abuttons", nil, "position", "bottom")
|
||||
pfUI:UpdateConfig("abuttons", nil, "showdefault", "0")
|
||||
pfUI:UpdateConfig("abuttons", nil, "rowsize", "6")
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
pfUI:RegisterModule("addonbuttons", function ()
|
||||
if not pfUI.minimap then return end
|
||||
if C.abuttons.enable == "0" then return end
|
||||
|
||||
local default_border = C.appearance.border.default
|
||||
if C.appearance.border.panels ~= "-1" then
|
||||
@@ -159,9 +160,7 @@ pfUI:RegisterModule("addonbuttons", function ()
|
||||
|
||||
local function SetupMainFrame()
|
||||
pfUI.addonbuttons:ClearAllPoints()
|
||||
if pfUI.minimap then
|
||||
pfUI.addonbuttons:SetScale(pfUI.minimap:GetScale())
|
||||
end
|
||||
pfUI.addonbuttons:SetScale(pfUI.minimap:GetScale())
|
||||
|
||||
pfUI.addonbuttons.minimapbutton:ClearAllPoints()
|
||||
if C.abuttons.position == "bottom" then
|
||||
|
||||
@@ -1185,6 +1185,7 @@ pfUI:RegisterModule("gui", function ()
|
||||
pfUI.gui.tabs.minimap.tabs.addonbuttons = pfUI.gui.tabs.minimap.tabs:CreateTabChild(T["Addon Buttons"], true)
|
||||
pfUI.gui.tabs.minimap.tabs.addonbuttons:SetScript("OnShow", function()
|
||||
if not this.setup then
|
||||
CreateConfig(nil, this, T["Enable Addon Button Frame"], C.abuttons, "enable", "checkbox")
|
||||
CreateConfig(update["addonbuttons"], this, T["Addon Buttons Panel Position"], C.abuttons, "position", "dropdown", pfUI.gui.dropdowns.addonbuttons_position)
|
||||
CreateConfig(update["addonbuttons"], this, T["Show Addon Buttons On Login"], C.abuttons, "showdefault", "checkbox")
|
||||
CreateConfig(update["addonbuttons"], this, T["Number Of Buttons Per Row/Column"], C.abuttons, "rowsize")
|
||||
|
||||
Reference in New Issue
Block a user