Advertisement
Kreiri

Rift: unit inspector bugs

Nov 11th, 2011
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.96 KB | None | 0 0
  1. local addonInfo, addonTable = ...
  2. table.insert(Event.Unit.Available, {
  3.     function (units)
  4.         if not units[Inspect.Unit.Lookup("player")] then return end
  5.         print("Event.Unit.Available")
  6.         print("Inspect.Unit.Detail(\"player\")")
  7.         Library.KLH.tdump(Inspect.Unit.Detail("player"))
  8.         print("Inspect.Buff.List(\"player\")")
  9.         Library.KLH.tdump(Inspect.Buff.List("player"))
  10.         Library.KLH.unregisterEventHandler(Event.Unit.Available, addonInfo.toc.Identifier, "DummyUA")
  11.     end,
  12.     addonInfo.toc.Identifier, "DummyUA"})
  13.  
  14.  
  15.  
  16. table.insert(Event.Addon.Load.End, {
  17.     function ()
  18.         print("Event.Addon.Load.End")
  19.         print("Inspect.Unit.Detail(\"player\")")
  20.         Library.KLH.tdump(Inspect.Unit.Detail("player"))
  21.         print("Inspect.Buff.List(\"player\")")
  22.         Library.KLH.tdump(Inspect.Buff.List("player"))
  23.     end,
  24.     addonInfo.toc.Identifier, "LoadSavedVariablesALE"})
  25.  
  26. -- Results:
  27. -- on logging in: http://i.imgur.com/M9pVN.jpg
  28. --
  29. -- after /reloadui: http://i.imgur.com/C1Fl8.jpg
  30. --
  31.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement