Can you change prat class colors?

Re: Can you change prat class colors?

by Vorfidus » Fri Sep 18, 2015 11:19 pm

https://drive.google.com/folderview?id= ... sp=sharing
That's the file that will change the colors. Place it in the following directory:
WoW -> Interface -> AddOns -> Prat -> libs -> Babble-Class-2.2
The lua file goes inside the folder of the same name.
The level of whining about bans on the forums is at an all time industrial level.
Vorfidus
Stone Guard
Stone Guard
 

Re: Can you change prat class colors?

by Barolo » Sat Sep 19, 2015 8:10 am

Actually, I was willing to change warrior's color not shaman. But I managed to change that now just by editing a bit that file you shared. So thanks. Would it be able to add this same file somehow to Grid to get same effect there?
User avatar
Barolo
Private
Private
 

Re: Can you change prat class colors?

by Vorfidus » Sat Sep 19, 2015 11:36 am

Depends whether Grid queries the server for class colors or not. I thought it was RGB, but it wasn't. If it's RGB, it's easy, but I don't see why that same line would not work for other add-ons as well.

The line I'm referring to is around line 123 in that Babble Lua. Should be a query line, followed by a custom just for shamans. I can't remember off the top of my head and I'm not at my pc
The level of whining about bans on the forums is at an all time industrial level.
Vorfidus
Stone Guard
Stone Guard
 

Re: Can you change prat class colors?

by Barolo » Sun Sep 20, 2015 7:29 am

I have now Babble-Class-2.2 lua file that changes the warrior class color to what I want and it works perfectly with Prat. I tried to add that same Babble-Class-2.2 folder to Grid->Libs. But it didn't work for Grid. But I quess I can live with that.
User avatar
Barolo
Private
Private
 

Re: Can you change prat class colors?

by Vorfidus » Sun Sep 20, 2015 10:32 am

Upload and post the grid Lua. I'll fix it.
The level of whining about bans on the forums is at an all time industrial level.
Vorfidus
Stone Guard
Stone Guard
 

Re: Can you change prat class colors?

by Barolo » Mon Sep 21, 2015 6:35 am

Well thanks! It would be cool if u can help with this. So I want to have this jade green (Monk color) for warriors.

For Prat I just had to change lines 123-125 in Babble-Class- 2.2.lua to this:
if RAID_CLASS_COLORS and RAID_CLASS_COLORS[class] then
if class == "WARRIOR" then
return 0.0, 1.00, 0.59

But what comes to Grid. So far, I've only noticed that there are two lua files which have these words "RAID_CLASS_COLORS". Those files are GridStatusHealth.lua and GridStatusName.lua. Obviously, health and name are the things which u can choose to be shown by class color.

For example the lines 262-264 in GridStatusHealth.lua are:
function GridStatusHealth:UnitClassColor(name)
local u = RL:GetUnitObjectFromName(name)
return (u and RAID_CLASS_COLORS[u.class])

So perhaps I should add that warrior exception here somehow. right? :roll:

Here is the link for this Grid addon and my fixed babble.class.lua:
https://mega.nz/#F!sFACVITR!G1b0u-S3n2ySarsHhxP5Kg
User avatar
Barolo
Private
Private
 

Previous

Return to Addons & macros