Not having digged into code yet, I was wondering if this can be done at all.
Goal:
Show a second "Spell Affects" window that shows only predetermined affects.
Reason:
Not all spell affects are sent to logfile, unfortunately. But they are visible in the spell affect window.
Approach so far:
- Copy/paste the existing spell affects xml
- Rename and <include>
- Shorten to 10 instead of 45 icon spaces
- Add a condition that is true/false on spellname:
Code:
COND=(Parent.Name.Text == 'Water Bubbles')
- Use condition to influence Visibility of affect.
Code:
<Icon BackgroundTint="#000000" IconStyle="/IconStyles.effect" MouseOverColor="#FFFF00" Name="Effect1" Size="24,24" TreatAsButton="true" Visible="COND=(Parent.Name.Text == 'Water Bubbles')"/>
Been digging through existing xml files in the UI dirs and found some code that could perhaps support the above, but so far haven't been able to get it to work as intended.
Questions:
1) Is Visible="True" available for affect icons in the volume page tag?
2) What variable holds the actual spellname? Parent.Name.Text doesn't seem to hold any spellnames? Or should I look for the spellnamecode?
3) Does anyone have a tip on how to approach this?
Thank you in advance for your responses.