mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
9.0 compatibility updates - initial attempt
This commit is contained in:
15
IceHUD.lua
15
IceHUD.lua
@ -259,6 +259,10 @@ function IceHUD:NotifyOptionsChange()
|
||||
end
|
||||
|
||||
function IceHUD:OnEnable(isFirst)
|
||||
-- if isFirst then
|
||||
self:SetDebugging(self.IceCore:GetDebug())
|
||||
self.debugFrame = ChatFrame1
|
||||
-- end
|
||||
self:Debug("IceHUD:OnEnable()")
|
||||
|
||||
if self.db.profile.enable then
|
||||
@ -274,11 +278,6 @@ function IceHUD:OnEnable(isFirst)
|
||||
--@debug@
|
||||
IceHUD_Options:OnLoad()
|
||||
--@end-debug@
|
||||
|
||||
-- if isFirst then
|
||||
self:SetDebugging(self.IceCore:GetDebug())
|
||||
self.debugFrame = ChatFrame1
|
||||
-- end
|
||||
end
|
||||
|
||||
-- add settings changes/updates here so that existing users don't lose their settings
|
||||
@ -367,7 +366,11 @@ function IceHUD:Debug(...)
|
||||
for n=1,select('#', ...) do
|
||||
msg = msg .. tostring(select(n, ...)) .. " "
|
||||
end
|
||||
self.debugFrame:AddMessage(msg)
|
||||
if self.debugFrame then
|
||||
self.debugFrame:AddMessage(msg)
|
||||
else
|
||||
print(msg)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user