mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-25 05:20:49 +00:00
gui: reset configs in global space
This commit is contained in:
+7
-7
@@ -1051,7 +1051,7 @@ pfUI:RegisterModule("gui", function ()
|
|||||||
pfUI.gui.resetCache = pfUI.gui:CreateConfigTab("Reset Cache", "bottom", function()
|
pfUI.gui.resetCache = pfUI.gui:CreateConfigTab("Reset Cache", "bottom", function()
|
||||||
pfUI.api:CreateQuestionDialog("Do you really want to reset the Cache?",
|
pfUI.api:CreateQuestionDialog("Do you really want to reset the Cache?",
|
||||||
function()
|
function()
|
||||||
pfUI_playerDB = {}
|
_G["pfUI_playerDB"] = {}
|
||||||
this:GetParent():Hide()
|
this:GetParent():Hide()
|
||||||
pfUI.gui:Reload()
|
pfUI.gui:Reload()
|
||||||
end)
|
end)
|
||||||
@@ -1061,7 +1061,7 @@ pfUI:RegisterModule("gui", function ()
|
|||||||
pfUI.gui.resetFrames = pfUI.gui:CreateConfigTab("Reset Positions", "bottom", function()
|
pfUI.gui.resetFrames = pfUI.gui:CreateConfigTab("Reset Positions", "bottom", function()
|
||||||
pfUI.api:CreateQuestionDialog("Do you really want to reset the Frame Positions?",
|
pfUI.api:CreateQuestionDialog("Do you really want to reset the Frame Positions?",
|
||||||
function()
|
function()
|
||||||
pfUI_config["position"] = {}
|
_G["pfUI_config"]["position"] = {}
|
||||||
this:GetParent():Hide()
|
this:GetParent():Hide()
|
||||||
pfUI.gui:Reload()
|
pfUI.gui:Reload()
|
||||||
end)
|
end)
|
||||||
@@ -1071,7 +1071,7 @@ pfUI:RegisterModule("gui", function ()
|
|||||||
pfUI.gui.resetChat = pfUI.gui:CreateConfigTab("Reset Firstrun", "bottom", function()
|
pfUI.gui.resetChat = pfUI.gui:CreateConfigTab("Reset Firstrun", "bottom", function()
|
||||||
pfUI.api:CreateQuestionDialog("Do you really want to reset the Firstrun Wizard Settings?",
|
pfUI.api:CreateQuestionDialog("Do you really want to reset the Firstrun Wizard Settings?",
|
||||||
function()
|
function()
|
||||||
pfUI_init = {}
|
_G["pfUI_init"] = {}
|
||||||
this:GetParent():Hide()
|
this:GetParent():Hide()
|
||||||
pfUI.gui:Reload()
|
pfUI.gui:Reload()
|
||||||
end)
|
end)
|
||||||
@@ -1081,7 +1081,7 @@ pfUI:RegisterModule("gui", function ()
|
|||||||
pfUI.gui.resetConfig = pfUI.gui:CreateConfigTab("Reset Config", "bottom", function()
|
pfUI.gui.resetConfig = pfUI.gui:CreateConfigTab("Reset Config", "bottom", function()
|
||||||
pfUI.api:CreateQuestionDialog("Do you really want to reset your configuration?\nThis also includes frame positions",
|
pfUI.api:CreateQuestionDialog("Do you really want to reset your configuration?\nThis also includes frame positions",
|
||||||
function()
|
function()
|
||||||
pfUI_config = {}
|
_G["pfUI_config"] = {}
|
||||||
pfUI:LoadConfig()
|
pfUI:LoadConfig()
|
||||||
this:GetParent():Hide()
|
this:GetParent():Hide()
|
||||||
pfUI.gui:Reload()
|
pfUI.gui:Reload()
|
||||||
@@ -1092,9 +1092,9 @@ pfUI:RegisterModule("gui", function ()
|
|||||||
pfUI.gui.resetAll = pfUI.gui:CreateConfigTab("Reset All", "bottom", function()
|
pfUI.gui.resetAll = pfUI.gui:CreateConfigTab("Reset All", "bottom", function()
|
||||||
pfUI.api:CreateQuestionDialog("Do you really want to reset |cffffaaaaEVERYTHING|r?\nThis includes configuration, frame positions, firstrun settings,\n player cache, profiles and just EVERYTHING!",
|
pfUI.api:CreateQuestionDialog("Do you really want to reset |cffffaaaaEVERYTHING|r?\nThis includes configuration, frame positions, firstrun settings,\n player cache, profiles and just EVERYTHING!",
|
||||||
function()
|
function()
|
||||||
pfUI_init = {}
|
_G["pfUI_init"] = {}
|
||||||
pfUI_config = {}
|
_G["pfUI_config"] = {}
|
||||||
pfUI_playerDB = {}
|
_G["pfUI_playerDB"] = {}
|
||||||
pfUI_profiles = {}
|
pfUI_profiles = {}
|
||||||
pfUI:LoadConfig()
|
pfUI:LoadConfig()
|
||||||
this:GetParent():Hide()
|
this:GetParent():Hide()
|
||||||
|
|||||||
Reference in New Issue
Block a user