Mercurial > wow > degaine
comparison Degaine.lua @ 9:571dcc76d801
Launch OnUpdate only when needed
author | contrebasse |
---|---|
date | Fri, 10 Dec 2010 16:44:07 +0100 |
parents | 47f9e596ef5a |
children | 37ac0d31cf0e |
comparison
equal
deleted
inserted
replaced
8:47f9e596ef5a | 9:571dcc76d801 |
---|---|
102 -- Activation functions | 102 -- Activation functions |
103 --------------------------------------------------------------- | 103 --------------------------------------------------------------- |
104 local activate = function() | 104 local activate = function() |
105 if (not Degaine_isAuto) or InCombatLockdown() then return end | 105 if (not Degaine_isAuto) or InCombatLockdown() then return end |
106 | 106 |
107 DegaineFrame:SetScript("OnUpdate", Degaine_OnUpdate); | 107 --DegaineFrame:SetScript("OnUpdate", Degaine_OnUpdate); |
108 --@debug@ | 108 --@debug@ |
109 if debug then | 109 if debug then |
110 DegaineFrame:RegisterAllEvents(); | 110 DegaineFrame:RegisterAllEvents(); |
111 else | 111 else |
112 --@end-debug@ | 112 --@end-debug@ |