mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
19 - Entry on Blizzard addon options - added an entry to the default interface/addon options panel which opens IceHUD's configuration
This commit is contained in:
11
IceHUD.lua
11
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)
|
||||
|
Reference in New Issue
Block a user