Johnny C. Lam [10-19-12 - 01:38]
diff --git a/Ovale.lua b/Ovale.lua
index 42f9633..c80e4ca 100644
--- a/Ovale.lua
+++ b/Ovale.lua
@@ -92,11 +92,11 @@ function Ovale:CompileAll()
local code = OvaleOptions:GetProfile().code
if code then
if self.needCompile == "quick" then
- self.debugPrint("compile", "quick compile")
+ self:debugPrint("compile", "quick compile")
code = OvaleCompile:CompileDeclarations(code)
code = OvaleCompile:CompileInputs(code)
elseif self.needCompile then
- self.debugPrint("compile", "FULL compile")
+ self:debugPrint("compile", "FULL compile")
self.masterNodes = OvaleCompile:Compile(code)
end
OvaleCompile:UpdateNodesEnabled(self.masterNodes, self.masterNodesEnabled)
@@ -252,7 +252,7 @@ end
local function OnCheckBoxValueChanged(widget)
OvaleOptions:GetProfile().check[widget.userdata.k] = widget:GetValue()
if Ovale.casesACocher[widget.userdata.k].compile then
- Ovale.debugPrint("compile", "checkbox value changed: " .. widget.userdata.k)
+ Ovaleself:debugPrint("compile", "checkbox value changed: " .. widget.userdata.k)
Ovale.needCompile = Ovale.needCompile or "quick"
end
end
@@ -260,7 +260,7 @@ end
local function OnDropDownValueChanged(widget)
OvaleOptions:GetProfile().list[widget.userdata.k] = widget.value
if Ovale.listes[widget.userdata.k].compile then
- Ovale.debugPrint("compile", "list value changed: " .. widget.userdata.k)
+ Ovaleself:debugPrint("compile", "list value changed: " .. widget.userdata.k)
Ovale.needCompile = Ovale.needCompile or "quick"
end
end
diff --git a/OvaleAura.lua b/OvaleAura.lua
index a664f0c..38adf55 100644
--- a/OvaleAura.lua
+++ b/OvaleAura.lua
@@ -221,12 +221,12 @@ function OvaleAura:UpdateAuras(unitId, unitGUID)
for spellId,whoseTable in pairs(auraList) do
for whose,aura in pairs(whoseTable) do
if aura.serial ~= self.serial then
- -- Ovale:Print("Removing "..aura.name.." from "..whose .. " self.serial = " ..self.serial .. " aura.serial = " ..aura.serial)
+ Ovale:debugPrint("aura", "Removing "..aura.name.." from "..whose .. " self.serial = " ..self.serial .. " aura.serial = " ..aura.serial)
whoseTable[whose] = nil
end
end
if not next(whoseTable) then
- --Ovale:Print("Removing "..spellId)
+ Ovale:debugPrint("aura", "Removing "..spellId)
auraList[spellId] = nil
end
end
diff --git a/OvaleData.lua b/OvaleData.lua
index 34e2184..9dcd7d2 100644
--- a/OvaleData.lua
+++ b/OvaleData.lua
@@ -283,7 +283,7 @@ end
--The user learnt a new spell
function OvaleData:SPELLS_CHANGED(event)
- Ovale.debugPrint("compile", event)
+ Ovale:debugPrint("compile", event)
self:FillSpellList()
Ovale.needCompile = Ovale.needCompile or "quick"
end
@@ -399,7 +399,7 @@ function OvaleData:RemplirListeTalents()
talentId = talentId + 1
end
if needCompile then
- Ovale.debugPrint("compile", "filling talent list")
+ Ovale:debugPrint("compile", "filling talent list")
Ovale.needCompile = needCompile
end
end
diff --git a/OvaleEnemies.lua b/OvaleEnemies.lua
index 0bb9162..ec7767d 100644
--- a/OvaleEnemies.lua
+++ b/OvaleEnemies.lua
@@ -43,21 +43,21 @@ function OvaleEnemies:COMBAT_LOG_EVENT_UNFILTERED(event, ...)
self.enemies[v] = nil
self.numberOfEnemies = self.numberOfEnemies - 1
Ovale.refreshNeeded["player"] = true
- --Ovale:Print("enemy die")
+ Ovale:debugPrint("enemy", "enemy die")
end
end
elseif sourceFlags and not self.enemies[sourceGUID] and bit_band(sourceFlags, COMBATLOG_OBJECT_REACTION_HOSTILE)>0
and bit_band(sourceFlags, COMBATLOG_OBJECT_AFFILIATION_OUTSIDER) > 0 and
destFlags and bit_band(destFlags, COMBATLOG_OBJECT_AFFILIATION_OUTSIDER) == 0 then
self.enemies[sourceGUID] = true
- --Ovale:Print("new ennemy source=".. sourceName)
+ Ovale:debugPrint("enemy", "new enemy source=" .. sourceName)
self.numberOfEnemies = self.numberOfEnemies + 1
Ovale.refreshNeeded["player"] = true
elseif destGUID and not self.enemies[destGUID] and bit_band(destFlags, COMBATLOG_OBJECT_REACTION_HOSTILE)>0
and bit_band(destFlags, COMBATLOG_OBJECT_AFFILIATION_OUTSIDER) > 0 and
sourceFlags and bit_band(sourceFlags, COMBATLOG_OBJECT_AFFILIATION_OUTSIDER) == 0 then
self.enemies[destGUID] = true
- --Ovale:Print("new ennemy dest=".. destName)
+ Ovale:debugPrint("enemy", "new enemy dest=".. destName)
self.numberOfEnemies = self.numberOfEnemies + 1
Ovale.refreshNeeded["player"] = true
end
diff --git a/OvaleGUID.lua b/OvaleGUID.lua
index b562940..e927799 100644
--- a/OvaleGUID.lua
+++ b/OvaleGUID.lua
@@ -67,7 +67,7 @@ function OvaleGUID:Update(unitId)
if not self.unitId[guid] then
self.unitId[guid] = {}
end
- -- Ovale:Print("GUID "..guid.." is ".. unitId)
+ Ovale:debugPrint("guid", "GUID "..guid.." is ".. unitId)
self.unitId[guid][unitId] = true
end
local name = UnitName(unitId)
diff --git a/OvaleOptions.lua b/OvaleOptions.lua
index 456d46d..a254032 100644
--- a/OvaleOptions.lua
+++ b/OvaleOptions.lua
@@ -286,7 +286,7 @@ local options =
end,
set = function(info,v)
OvaleOptions.db.profile.code = v
- Ovale.debugPrint("compile", "accepting script")
+ Ovale:debugPrint("compile", "accepting script")
Ovale.needCompile = true
end,
width = "full"
@@ -301,7 +301,7 @@ local options =
end,
func = function()
OvaleOptions.db.profile.code = OvaleOptions.db.defaults.profile.code
- Ovale.debugPrint("compile", "restoring default script")
+ Ovale:debugPrint("compile", "restoring default script")
Ovale.needCompile = true
end,
}
@@ -497,7 +497,7 @@ function OvaleOptions:FirstInit()
self.db.RegisterCallback( self, "OnProfileCopied", "HandleProfileChanges" )
if self.db.profile.code then
- Ovale.debugPrint("compile", "setting script during addon initialization")
+ Ovale:debugPrint("compile", "setting script during addon initialization")
Ovale.needCompile = true
end
end
@@ -505,7 +505,7 @@ end
function OvaleOptions:HandleProfileChanges()
if self.firstInit then
if (self.db.profile.code) then
- Ovale.debugPrint("compile", "changing profiles")
+ Ovale:debugPrint("compile", "changing profiles")
Ovale.needCompile = true
end
end