I'm currently creating a custom dkp mod for our guild.
Anyway, I've read where someone explained that all frames have to be declared, and cannot be created on the fly.
Does that mean that it is not possible to have a system with an arbitrary number of frames, given that only one is ever going to be displayed at any one time?
So, rather than having many frames, the same frame is being re-used every time it is displayed? If this is possible, how would you go about making the buttons/editboxes/scrollframes react correctly for the given instance of the frame? Is it possible to change the id for a frame, or is it not necessary?
Ie, if there's a main frame, with a scrollframe listing stored raids. Select one, hit the edit button. The raid-details frame would show with the details from that raid - and the button on the raid-details frame would need to cause the correct functions to run on that raid only.
Or is it simply more practical to limit the mod to only store say, 10 raids, and define all ten (using a template)?
Just trying to get my head around handling the wow ui.