View Single Post
08-31-09, 02:45 PM   #7
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,928
Originally Posted by spiel2001 View Post
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.
__________________


Characters:
Gwynedda - 70 - Demon Warlock
Galaviel - 65 - Resto Druid
Gamaliel - 61 - Disc Priest
Gwynytha - 60 - Survival Hunter
Lienae - 60 - Resto Shaman
Plus several others below level 60

Info Panel IDs : http://www.wowinterface.com/forums/s...818#post136818