Originally Posted by spiel2001
Odds are that the attempt to change the panel with a slash command is tainting in combat since most info panels use secure code.
|
Yep, but does that mean the same code will work if coded to work when combat is activated or deactivate ? The slash commands I was using to test whether the switching works and apart from the combat situation it seems to be working fine. It hides the panel currently displayed and shows the panel requested.
The idea is to set up a config system whereby a user can specify which panels to display when. Raiding ? Show Skada. In a Town ? Show Chat Frame. Default display etc. When the specified event occurs, switch panels. The question is whether the switch will work in combat ( using just code ) or whether I can fix it so that it switches after combat finishes and switches properly which at present I have to /rl to get it to display the requested panel properly after combat if requested during combat.