View Single Post
02-14-17, 05:17 PM   #2
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,892
The function is running every time you use a portal, take a boat/zeplin, enter/leave a battlegournd, arena, order hall etc.

Lua Code:
  1. local frame = CreateFrame("Frame")
  2.         frame:SetScript("OnEvent", function()
  3.         --big plates with small text
  4.         DefaultCompactNamePlateFrameSetUpOptions.useLargeNameFont=false
  5.         frame:UnregisterAllEvents()
  6.         end)
  7.         -- Register for interesting events
  8.         frame:RegisterEvent("PLAYER_ENTERING_WORLD")

It could probably be done slightly differently but this will stop the multiple calls.
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.

Last edited by Fizzlemizz : 02-14-17 at 05:19 PM.
  Reply With Quote