mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
- fixed /icehudcl to actually work again as a command-line interface to the options table (surprised this wasn't reported)
- made the OpenConfig method able to close the dialog if it's already open. this restores old behavior that was lost in the move to ace3
This commit is contained in:
@ -873,7 +873,7 @@ function IceHUD:OnInitialize()
|
|||||||
self:SetupProfileImportButtons()
|
self:SetupProfileImportButtons()
|
||||||
--@end-debug@
|
--@end-debug@
|
||||||
|
|
||||||
LibStub("AceConfig-3.0"):RegisterOptionsTable("IceHUD", self.options, "/icehudcl")
|
LibStub("AceConfig-3.0"):RegisterOptionsTable("IceHUD", self.options, "icehudcl")
|
||||||
|
|
||||||
ConfigDialog:SetDefaultSize("IceHUD", 750, 650)
|
ConfigDialog:SetDefaultSize("IceHUD", 750, 650)
|
||||||
self:RegisterChatCommand("icehud", function()
|
self:RegisterChatCommand("icehud", function()
|
||||||
@ -1076,7 +1076,11 @@ InterfaceOptions_AddCategory(blizOptionsPanel)
|
|||||||
|
|
||||||
function IceHUD:OpenConfig()
|
function IceHUD:OpenConfig()
|
||||||
if not ConfigDialog then return end
|
if not ConfigDialog then return end
|
||||||
ConfigDialog:Open("IceHUD")
|
if ConfigDialog.OpenFrames["IceHUD"] ~= nil then
|
||||||
|
ConfigDialog:Close("IceHUD")
|
||||||
|
else
|
||||||
|
ConfigDialog:Open("IceHUD")
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function IceHUD:Debug(msg)
|
function IceHUD:Debug(msg)
|
||||||
|
Reference in New Issue
Block a user