This is the xml file that describes the different frames
The one you want to look at is the one that shows parentKey = "UnitFrame"
Under that is a section called parentKey = "healthBar" and some other bars.
You would want to do a check for not InCombatLockdown and use nameplate.UnitFrame.healthBar:Hide() etc. But remember your code only executes when the nameplate is created ( comes back into range or you use Shift V to view them again ) so the bars may get redrawn if an update happens after your changes.
I haven't tested this out but in theory thats all you will need to do if that is the only bar that is showing at first. When in combat the others may appear.
|