Thread Tools Display Modes
Prev Previous Post   Next Post Next
01-16-22, 08:42 PM   #1
pinmouse
A Murloc Raider
Join Date: Jul 2014
Posts: 9
Question How to wrap my macro addon in PLAYER_ENTERING_WORLD

I used https://addon.bool.no/ to generate an addon for me from a macro. I'd like that addon to run every time I zone. I believe I should wrap it in a function that uses PLAYER_ENTERING_WORLD but I'm not really sure how to do it. Here is what I have so far...

NameplateShrinker.toc
Code:
## Interface: 90100
## Title: NameplateShrinker
core.lua
core.lua
Code:
C_NamePlate.SetNamePlateFriendlySize(60, 30)
Hoping someone can tell me how to run that line of code in the core.lua so that it fires when I zone.

Thanks!
  Reply With Quote
 

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » How to wrap my macro addon in PLAYER_ENTERING_WORLD


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off