Total-RP / Total-RP-3-Extended

Extended module for the Total RP 3 add-on for World of Warcraft, adding creation tools.
http://extended.totalrp.com
11 stars 12 forks source link

Add an API endpoint for grabbing current menuData in Extended Effects #230

Open MindScape00 opened 11 months ago

MindScape00 commented 11 months ago

This allows addons to grab the current menuData and patch it themselves before re-saving it using init. At the moment there appears to be no method to do this other than over-writing the menuData with the default+the third party addon's actions only, causing it to over-write / conflict if two addons want to add custom effect options.

Side note: Totally understand if you don't want to add in the simple method here and would prefer a more robust pull request that hits more on adding proper effect addition support. This was just the simplest method that required the least maintenance and basically 0 other overhead, and leaves it up to the third party addon to do the rest of the things needed - which are already available in the TRP3_API.