diff Turok/Modules/Utilities/Toast.lua @ 11:0b1a2f3dbfc4 tip

aura duration override triggering activation twice when aura data still exists briefly after duration end
author Nenue
date Mon, 22 Feb 2016 03:11:54 -0500
parents a9b8b0866ece
children
line wrap: on
line diff
--- a/Turok/Modules/Utilities/Toast.lua	Sun Feb 21 13:11:44 2016 -0500
+++ b/Turok/Modules/Utilities/Toast.lua	Mon Feb 22 03:11:54 2016 -0500
@@ -30,10 +30,10 @@
   alert_hold = 2,
   alert_fade = 1,
   alert_flash = .6,
-  anchor = 'TOP',
+  anchor = 'TOPLEFT',
   parent = 'UIParent',
-  anchorTo = 'TOP',
-  x = 0, y= -56,
+  anchorTo = 'LEFT',
+  x =200, y= 0,
   loot = {
     background_color = {},
   }
@@ -306,10 +306,7 @@
   end
 end
 
-mod.OnEnable = function()
-  db = TurokData.toast
-
-  --- find the closest frame to the center bottom and anchor to that
+mod.GetToastsAnchor = function(self)
 
   local cX, cY = (GetScreenWidth() / 2), (GetScreenHeight() / 2)
   local min_skewness = cX
@@ -344,6 +341,14 @@
       end
     end
   end
+  return center_frame
+end
+
+mod.OnEnable = function()
+  db = TurokData.toast
+
+  --- find the closest frame to the center bottom and anchor to that
+
 
   mod.num_events = 0
   tkAlerts.alerts = {}