diff --git a/modules/gui.lua b/modules/gui.lua index 5bdff533..70bdabd1 100644 --- a/modules/gui.lua +++ b/modules/gui.lua @@ -424,7 +424,7 @@ pfUI:RegisterModule("gui", function () pfUI.gui.resetAll:ClearAllPoints() pfUI.gui.resetAll:SetWidth(80) pfUI.gui.resetAll:SetHeight(20) - pfUI.gui.resetAll:SetPoint("BOTTOMLEFT", 0, 60) + pfUI.gui.resetAll:SetPoint("BOTTOMLEFT", 0, 80) pfUI.gui.resetAll:SetBackdrop(pfUI.backdrop) pfUI.gui.resetAll.text = pfUI.gui.resetAll:CreateFontString("Status", "LOW", "GameFontNormal") pfUI.gui.resetAll.text:SetFont("Interface\\AddOns\\pfUI\\fonts\\arial.ttf", pfUI_config.global.font_size, "OUTLINE") @@ -432,7 +432,7 @@ pfUI:RegisterModule("gui", function () pfUI.gui.resetAll.text:SetAllPoints(pfUI.gui.resetAll) pfUI.gui.resetAll.text:SetPoint("CENTER", 0, 0) pfUI.gui.resetAll.text:SetFontObject(GameFontWhite) - pfUI.gui.resetAll.text:SetText("Reset pfUI") + pfUI.gui.resetAll.text:SetText("Reset All") pfUI.gui.resetAll:SetScript("OnClick", function() pfUI_init = {} pfUI_config = {} @@ -440,6 +440,25 @@ pfUI:RegisterModule("gui", function () pfUI.gui.reloadDialog:Show() end) + -- Reset Chat + pfUI.gui.resetChat = CreateFrame("Button", nil, pfUI.gui) + pfUI.gui.resetChat:ClearAllPoints() + pfUI.gui.resetChat:SetWidth(80) + pfUI.gui.resetChat:SetHeight(20) + pfUI.gui.resetChat:SetPoint("BOTTOMLEFT", 0, 60) + pfUI.gui.resetChat:SetBackdrop(pfUI.backdrop) + pfUI.gui.resetChat.text = pfUI.gui.resetChat:CreateFontString("Status", "LOW", "GameFontNormal") + pfUI.gui.resetChat.text:SetFont("Interface\\AddOns\\pfUI\\fonts\\arial.ttf", pfUI_config.global.font_size, "OUTLINE") + pfUI.gui.resetChat.text:ClearAllPoints() + pfUI.gui.resetChat.text:SetAllPoints(pfUI.gui.resetChat) + pfUI.gui.resetChat.text:SetPoint("CENTER", 0, 0) + pfUI.gui.resetChat.text:SetFontObject(GameFontWhite) + pfUI.gui.resetChat.text:SetText("Reset Chat") + pfUI.gui.resetChat:SetScript("OnClick", function() + pfUI_init["chat"] = nil + pfUI.gui.reloadDialog:Show() + end) + -- Reset Frames pfUI.gui.resetFrames = CreateFrame("Button", nil, pfUI.gui) pfUI.gui.resetFrames:ClearAllPoints()