Thread Tools Display Modes
03-22-12, 12:26 PM   #1
lerb
A Frostmaul Preserver
 
lerb's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2008
Posts: 264
Changing AuraWatch icons

Hey!

I'm using AuraWatch on my raidframes to track my Renew, Prayer of Mending and such. The thing is I don't want the actual icon of the spell to show, I just want to have a say, green square for Renew and a yellow for Prayer of Mending. I've tinkered a bit with it but can't really figure out how the heck to accomplish this. Anyone with some ideas? Don't know what part of the LUA codes I need to post so anyone that can help me will sadly have to tell me what to paste
  Reply With Quote
03-22-12, 12:45 PM   #2
unlimit
Lookin' Good
 
unlimit's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2008
Posts: 484
The problem I see with what you want, and with AuraWatch, is that it is basically a buff/debuff bar (I think I'm right? trying to sound like I know what I'm talking about) that uses UnitAura to return the Icon. It isn't dynamic in that you can say: "Track this, return this icon instead of that one", it is "Track this, return this".

On the other hand, if you wanted to do it manually, you could just use something like:

lua Code:
  1. if UnitBuff("player", GetSpellInfo(139)) then
  2.     --dostuff
  3. end

and make "--dostuff" into a frame with an all green color.
__________________


kúdan: im playing pantheon
JRCapablanca: no youre not
** Pantheon has been Banned. **
  Reply With Quote
03-22-12, 03:41 PM   #3
lerb
A Frostmaul Preserver
 
lerb's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2008
Posts: 264
Wouldn't really call it a buff/debuffbar, it adds cornericons to your raidframes just like say, Grid does. It is specified what spells you track for each class. It's a oUF plugin and to be honest, I'm not 100% clear on how it all works, but I do believe that it should be able to use simple colored squares instead of icons - i've seen other oUF raidframes use it? Or am I wrong?

Code:
do
	ConerBuffs = {
		PALADIN = {
			{53563, "TOPLEFT", {0.7, 0.3, 0.7}}, -- Beacon of Light
			{86452, "TOPRIGHT", {0.8, 0.4, 0}} -- Holy Radiance
		},
                SHAMAN = {
			{61295, "TOPLEFT", {0.7, 0.3, 0.7}}, -- Riptide 
			{51945, "BOTTOMRIGHT", {0.2, 0.7, 0.2}}, -- Earthliving
			{16177, "BOTTOMLEFT", {0.4, 0.7, 0.2}}, -- Ancestral Fortitude
			{974, "TOPRIGHT", {0.7, 0.4, 0}}, -- Earth Shield
		},
		PRIEST = {
			{6788, "TOPLEFT", {1, 0, 0}, true}, -- Weakened Soul
			{33076, "TOPRIGHT", {0.2, 0.7, 0.2}}, -- Prayer of Mending
			{139, "BOTTOMLEFT", {0.4, 0.7, 0.2}}, -- Renew
			{17, "BOTTOMRIGHT", {0.81, 0.85, 0.1}, true}, -- Power Word: Shield
		},
		DRUID = {
			{774, "TOPLEFT", {0.8, 0.4, 0.8}}, -- Rejuvenation
			{8936, "TOPRIGHT", {0.2, 0.8, 0.2}}, -- Regrowth
			{33763, "BOTTOMLEFT", {0.4, 0.8, 0.2}}, -- Lifebloom
			{48438, "BOTTOMRIGHT", {0.8, 0.4, 0}}, -- Wild Growth
		},
	}
end
  Reply With Quote
03-23-12, 05:18 AM   #4
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
I do this in my raidframes. Code:
http://code.google.com/p/rothui/sour...s/raid.lua#120

That should give you the right direction.
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)

Last edited by zork : 03-23-12 at 05:24 AM.
  Reply With Quote
03-23-12, 05:58 AM   #5
lerb
A Frostmaul Preserver
 
lerb's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2008
Posts: 264
Originally Posted by zork View Post
I do this in my raidframes. Code:
http://code.google.com/p/rothui/sour...s/raid.lua#120

That should give you the right direction.
Thanks Zork, I'll see if I can get it working
  Reply With Quote
04-01-12, 06:16 AM   #6
lerb
A Frostmaul Preserver
 
lerb's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2008
Posts: 264
Alright, I've been messing with this for over a week now. Guess I've taken water over my head, this stuff is hard to understand!
  Reply With Quote
04-01-12, 06:35 AM   #7
Aftermathhqt
A Molten Giant
 
Aftermathhqt's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 784
Originally Posted by lerb View Post
Alright, I've been messing with this for over a week now. Guess I've taken water over my head, this stuff is hard to understand!
Haha. Not really
  Reply With Quote
04-01-12, 06:40 AM   #8
lerb
A Frostmaul Preserver
 
lerb's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2008
Posts: 264
Originally Posted by Game92 View Post
Haha. Not really
Thanks for the constructive help!
  Reply With Quote
04-01-12, 07:43 AM   #9
Aftermathhqt
A Molten Giant
 
Aftermathhqt's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 784
Originally Posted by lerb View Post
Thanks for the constructive help!
Np Have you just tried to make a frame, that is an overlay ontop of the icon? ^^
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Changing AuraWatch icons


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off