Advertisement
Guest User

Untitled

a guest
Jan 21st, 2013
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.67 KB | None | 0 0
  1. --invoke using /script DBM:TaintTest()
  2. --This will taint all 4 indexes
  3. --Once done, just try to change a glyph. ;)
  4. --This seems fixed in 5.2, but i'm trying to use this debug to SOMEHOW find a way around problem in 5.1
  5. local indexChanger = 0
  6. function DBM:TaintTest()
  7.     indexChanger = indexChanger + 1
  8.     StaticPopupDialogs["DBM_TAINT_TEST"] = {
  9.         preferredIndex = indexChanger,
  10.         text = "I am tainting your UI. ".."index: "..indexChanger,
  11.         button1 = DBM_CORE_OK,
  12.         OnAccept = function()
  13.             if indexChanger < 4 then
  14.                 DBM:TaintTest()
  15.             else
  16.                 indexChanger = 0
  17.             end
  18.         end,
  19.         timeout = 0,
  20.         exclusive = 1,
  21.         whileDead = 1
  22.     }
  23.     StaticPopup_Show("DBM_TAINT_TEST")
  24. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement