View Single Post
03/15/19, 12:47 AM   #9
KLISK
 
KLISK's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2018
Posts: 21
Originally Posted by Letho View Post
A (De)Buff trigger has totally different configuration parameters than a combat event based trigger (the latter does not require a "Source Unit", but target and source parameters, actionResults that the aura should react to, etc.). So the "Trigger Settings" submenu totally changes if the user changes the trigger type form "(De)Buff" to "Combat Event" by using the appropriate combobox. I cannot think of a more elegant way to achieve this than just taking all relevant controls and reanchoring them to hidden pools.
As I wrote earlier, you create an object structure through XML. You will have a template for passing to the pool. And all the parameters and handlers that will change, use SetCustomAcquireBehavior when calling an object from the pool. I don’t know if there is a better way.
@Siri, what do you say?
  Reply With Quote