Mercurial > wow > degaine
comparison Degaine.lua @ 52:d724fb112e7c
Remove Ghost Wolf (doesn't work like this) and modify debug option
| author | contrebasse |
|---|---|
| date | Mon, 28 Feb 2011 00:20:19 +0100 |
| parents | 94566cb4534f |
| children | 6da5658a3428 |
comparison
equal
deleted
inserted
replaced
| 51:1bc6e598e1e3 | 52:d724fb112e7c |
|---|---|
| 7 --------------------------------------------------------------- | 7 --------------------------------------------------------------- |
| 8 -- If you stand up by jumping or walking it won't draw your weapon | 8 -- If you stand up by jumping or walking it won't draw your weapon |
| 9 -- (it's not possible to know if you were sitting or standing before) | 9 -- (it's not possible to know if you were sitting or standing before) |
| 10 | 10 |
| 11 --@debug@ | 11 --@debug@ |
| 12 local debug = false | 12 local debug = true |
| 13 local debugAll = false | |
| 13 --@end-debug@ | 14 --@end-debug@ |
| 14 | 15 |
| 15 | 16 |
| 16 --------------------------------------------------------------- | 17 --------------------------------------------------------------- |
| 17 -- Globals to local | 18 -- Globals to local |
| 172 local activate = function() | 173 local activate = function() |
| 173 if (not Degaine_isAuto) or InCombatLockdown() then return end | 174 if (not Degaine_isAuto) or InCombatLockdown() then return end |
| 174 | 175 |
| 175 --DegaineFrame:SetScript("OnUpdate", Degaine_OnUpdate); | 176 --DegaineFrame:SetScript("OnUpdate", Degaine_OnUpdate); |
| 176 --@debug@ | 177 --@debug@ |
| 177 if debug then | 178 if debugAll then |
| 178 DegaineFrame:RegisterAllEvents() | 179 DegaineFrame:RegisterAllEvents() |
| 179 else | 180 else |
| 180 --@end-debug@ | 181 --@end-debug@ |
| 181 for k,_ in pairs(events) do DegaineFrame:RegisterEvent(k) end | 182 for k,_ in pairs(events) do DegaineFrame:RegisterEvent(k) end |
| 182 for k,_ in pairs(events1player) do DegaineFrame:RegisterEvent(k) end | 183 for k,_ in pairs(events1player) do DegaineFrame:RegisterEvent(k) end |
