From 371c3e0495758bc8a782246eac84c11a7032585c Mon Sep 17 00:00:00 2001 From: James Whitehead II Date: Mon, 1 Jan 2007 22:54:25 +0000 Subject: [PATCH] * Added a close button to the config UI. --- PerfectRaid_Options.lua | 6 ++++++ 1 file changed, 6 insertions(+) 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 = {} -- 1.7.9.5