WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   General Authoring Discussion (https://www.wowinterface.com/forums/forumdisplay.php?f=20)
-   -   Class specific addon? (https://www.wowinterface.com/forums/showthread.php?t=55923)

Fizzlemizz 12-21-17 08:24 PM

Quote:

Originally Posted by Seerah (Post 326220)
/edit: TOC files are only read when the game client is started up. This is why you need to exit the game completely when editing/changing a TOC file. The TOC file is also where the client gets the addon name from to display in the addon menu at the character select screen.

Hi Seerah,
That might have been the case once upon a time but you can now edit the file list in a .toc and /reload to take effect. I do this to comment out .lua files in my test suite .toc to enable/disable them.

True you can't change the title or other ## items on the fly.

Layback_ 12-22-17 07:08 AM

Hi myrroddin,

Quote:

Originally Posted by myrroddin (Post 326219)
Late to the party... Why not use AddonLoader? It is here on Wowinterface as well.

Set it up as per its documentation, with its load on tags? Now you don't have to muck around with Lua and trying to figure out how to only load on one class.

I was slightly aware of this, but at the same time was also bit worried of using it as the addon that I am creating doesn't seem to worth using it :confused:
(Mine's really trivial and shabby...)

BUT, I'll give it a shot :)

AddonLoader actually seems interesting to play with!

Quote:

Originally Posted by Seerah (Post 326220)
No, because it sees in the TOC file in step 1 that the addon is LoD. ;) When it is called with LoadAddOn("AddonName"), then it moves on to step 2 and loads it into memory, then runs it (step 3).

/edit: TOC files are only read when the game client is started up. This is why you need to exit the game completely when editing/changing a TOC file. The TOC file is also where the client gets the addon name from to display in the addon menu at the character select screen.

Thank you for your clarification Seerah!

It makes much more sense now :banana:

Ammako 12-22-17 10:41 AM

Like I mention, the issue with AddonLoader is that you would need to require your users to go and separately download it (unless they allow people to bundle it with their addon, I guess.)
That would seem like bloat to a lot of people, especially if yours is the only addon of theirs that would need it.
Up to you to weigh the pros and cons of each method though, at the end of the day.

Seerah 12-22-17 12:57 PM

AddonLoader is totally unnecessary and overkill.

Layback_ 12-22-17 04:46 PM

Many thanks to Ammako, again, for the advice.

Will keep that in mind :)


All times are GMT -6. The time now is 04:54 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI