LocationWow Mods Ui >> eePanels2 changing bg based on target talenttree
eePanels2 changing bg based on target talenttree
| From: | [mmo-champion.com] | ||
| Author: | [Winco] | ||
| Date: | Less than 24 Hours ago | ||
| Hit: | [] | ||
I was originally working on a huuuge dogtag peice of code to shorten talent specs, and color them based on their functionality (defensive/healer specs would show green, offensive would show red). Which I figured out fine, but I already have a whole bunch of different text/color information showing on my frames, and would be nice to do a image representation instead.So my question would be, how to write the lua script for eePanels2, to change the background of a frame, based on my targets talenttree set up.So for example, if my target was, "Demonology, Arms/Fury, Frost.. etc", it would change the BG to "offensive.tga". If the target was "Restoration, Restoration/Balance, Protection", the BG would change to "deffensive.tga", and so on.