Can't guarantee that this will work, but a quick perusal of the code suggests the following changes may work:
in
GridCliqueIt_Variables.lua
- Find
GridCliqueIt.ClassColors and add this to each section:
You'll likely need to add a comma at the end of the previous line to continue the list (the KNIGHT line)
The colors given aren't correct, just tossing in something to get it to work.
Edit:
Changed the colors to reflect the values camagic posted later in this thread.
in WoW section:
|
Source code
|
1
2
|
['PSYRON'] = { r = 0.00 , g = 1.00 , b = 0.50 }, -- Champion
['HARPSYN'] = { r = 0.49 , g = 0.99 , b = 0.00 }, -- Warlock
|
in RoM section:
|
Source code
|
1
2
|
['PSYRON'] = { r = 0.000 , g = 1.00 , b = 0.498 }, -- Champion
['HARPSYN'] = { r = 0.486 , g = 0.988 , b = 0.000 }, -- Warlock
|
in White section:
|
Source code
|
1
2
|
['PSYRON'] = { r = 1.000 , g = 1.000 , b = 1.000 }, -- Champion
['HARPSYN'] = { r = 1.000 , g = 1.000 , b = 1.000 }, -- Warlock
|
Now in
GridCliqueIt_Bar.lua:
- Find
if GridCliqueIt.GetSettingsValue("SortByClass") (it is near the top of the file, in the first function) and add the two new classes to the two weightList lists:
(I did not actually sort them in the two lists, just added them a the end/beginning)
First List:
|
Source code
|
1
2
3
4
5
6
7
8
9
10
11
12
|
weightList = {
"AUGUR",
"DRUID",
"MAGE",
"RANGER",
"WARDEN",
"THIEF",
"WARRIOR",
"KNIGHT",
"PSYRON", -- Champion
"HARPSYN", -- Warlock
}
|
Second list:
|
Source code
|
1
2
3
4
5
6
7
8
9
10
11
12
|
weightList = {
"PSYRON", -- Champion
"HARPSYN", -- Warlock
"KNIGHT",
"WARRIOR",
"THIEF",
"WARDEN",
"RANGER",
"MAGE",
"DRUID",
"AUGUR"
}
|
Edit:
The code in
GridCliqueIt_Bar.lua also needs the following modification (as mentioned by Kista below). Just below the two definitions of the
weightList lists above, find the line
for i = 1,8 do and modify it to this:
|
Source code
|
1
|
for i = 1, #weightList do
|
This modifications will make any future changes also work.
That will hopefully make things work. Don't have time to go over the code more at the moment, off to work and all....