Quantcast

* Added a close button to the config UI.

James Whitehead II [01-01-07 - 22:54]
* Added a close button to the config UI.
Filename
PerfectRaid_Options.lua
diff --git a/PerfectRaid_Options.lua b/PerfectRaid_Options.lua
index 68402e2..2595f87 100644
--- a/PerfectRaid_Options.lua
+++ b/PerfectRaid_Options.lua
@@ -61,6 +61,12 @@ function Options:CreateOptions()
 			module:CreateOptions(self)
 		end
 	end
+
+	local button = CreateFrame("Button", "PROptionsClose", PROptions, "UIPanelCloseButton")
+	button:SetHeight(25)
+	button:SetWidth(25)
+	button:SetPoint("TOPRIGHT", -5, 3)
+	button:SetScript("OnClick", function() PROptions:Hide() end)
 end

 local tabs = {}