View Single Post
08-11-14, 12:18 PM   #2
sticklord
A Wyrmkin Dreamwalker
AddOn Author - Click to view addons
Join Date: Aug 2014
Posts: 57
I'm not a proffessional but i think because "anticipation" is a local variable the layout can't access it.
Try:
Lua Code:
  1. lib.createAnticipation = function(self)
  2.  
  3.     -- your code
  4.  
  5.     self.anticipation = anticipation  
  6. end
  7.  
  8. lib.updateAnticipation = function(self, event)
  9.     if self.unit ~= "player" then return end
  10.     anticipation = self.anticipation
  11.    
  12.     -- your code
  13.        
  14. end
  Reply With Quote