From c77c458155a65c28b2b65d39b6ee4def742b5dce Mon Sep 17 00:00:00 2001 From: Parnic Date: Sun, 10 May 2009 22:43:45 +0000 Subject: [PATCH] bug http://www.wowace.com/projects/ice-hud/tickets/19-entry-on-blizzard-addon-options/ - 19 - Entry on Blizzard addon options - added an entry to the default interface/addon options panel which opens IceHUD's configuration --- IceHUD.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/IceHUD.lua b/IceHUD.lua index edb1386..bffd93d 100644 --- a/IceHUD.lua +++ b/IceHUD.lua @@ -758,6 +758,17 @@ function IceHUD.OnClick() end end +-- blizzard interface options +local blizOptionsPanel = CreateFrame("FRAME", "IceHUDConfigPanel", UIParent) +blizOptionsPanel.name = "IceHUD" +blizOptionsPanel.button = CreateFrame("BUTTON", "IceHUDOpenConfigButton", blizOptionsPanel, "UIPanelButtonTemplate2") +blizOptionsPanel.button:SetText("Open IceHUD configuration") +blizOptionsPanel.button:SetWidth(240) +blizOptionsPanel.button:SetHeight(30) +blizOptionsPanel.button:SetScript("OnClick", function(self) HideUIPanel(InterfaceOptionsFrame) HideUIPanel(GameMenuFrame) waterfall:Open("IceHUD") end) +blizOptionsPanel.button:SetPoint('TOPLEFT', blizOptionsPanel, 'TOPLEFT', 20, -20) +InterfaceOptions_AddCategory(blizOptionsPanel) + function IceHUD:Debug(msg) if self.debugging then self.debugFrame:AddMessage(msg)