I want to attach the cast bars of Blizzard's Arena Frames to my Gladius. I'm ONLY interested in the cast bars, so I want to hide the rest of Blizzard's Arena Frames.
But I have a problem: I can ONLY see ArenaEnemyFrame1CastingBar (castbar's frame) when ArenaEnemyFrame1 (enemy's frame) is also visible. If I hide ArenaEnemyFrame1, ArenaEnemyFrame1CastingBar also hides itselfs, but I want to see ONLY ArenaEnemyFrame1CastingBar (having ArenaEnemyFrame1 hidden). As an informative detail, they have the same behaviour with SetScale(), if I change the scale of ArenaEnemyFrame1, the scale of ArenaEnemyFrame1CastingBar also changes.
How can I "break" the relation between these 2 frames?
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh
Now I want to auto-anchor the cast bars when Gladius creates the "GladiusClassIconFramearenaN" frame (one for each enemy). So I have been thinking in using hooksecurefunc() to execute the SetPoint() and stuff after that frame is created. But I have come to the problem that this frame is created by the Gladius' ClassIcon Module (by the ClassIcon:CreateFrame() function) which object (ClassIcon) is declared as LOCAL... so I can't hook that function from my addon . Any workaround for this?