WoW:Using OnUpdate correctly: Difference between revisions

m
→‎Proper Use Example: Added 3.0 "magic" to your_xml_file.xml
(Updated with new information)
m (→‎Proper Use Example: Added 3.0 "magic" to your_xml_file.xml)
Line 19: Line 19:
     <Scripts>
     <Scripts>
       <OnLoad>self.TimeSinceLastUpdate = 0 </OnLoad>
       <OnLoad>self.TimeSinceLastUpdate = 0 </OnLoad>
       <OnUpdate> MyAddon_OnUpdate(self, elapsed); </OnUpdate>       
       <OnUpdate function="MyAddon_OnUpdate" />       
     </Scripts>
     </Scripts>
   </Frame>
   </Frame>
Line 55: Line 55:
   end
   end
  end
  end
[[Category:HOWTOs|Use OnUpdate Correctly]]
[[Category:HOWTOs|Use OnUpdate Correctly]]
Anonymous user