minerCPP
rank color change - Printable Version

+- minerCPP (./)
+-- Forum: minerCPP (/forumdisplay.php?fid=3)
+--- Forum: Support (/forumdisplay.php?fid=12)
+--- Thread: rank color change (/showthread.php?tid=8)


rank color change - ziek1526 - 02-27-2010 04:17 PM

First off, I would like to say I love the new forums Heart and minerCPP is awesome. Now to what I would like to have some help with. My C++ knowledge is very limited and I would like to know how to change the rank colors. The red for owner is too hard to read.


Thank you,
ziek


RE: rank color change - TkTech - 02-27-2010 04:26 PM

Heya ziek1526. Sadly, you have to manually edit the color codes in the source code. The good news is its all in one spot.
Open up Server.cpp and go to line 1749. This is the function that returns the color codes based on the user level. If you want to change the color for the owner, edit:

Code:
if(userlevel == 255)
    return '4';



RE: rank color change - ziek1526 - 02-27-2010 04:43 PM

Thank you so much! and I'll make sure to break the software so I can find you some bugs Tongue


RE: rank color change - vLK - 02-28-2010 02:37 AM

Heh, also you might want to change /help entry for owner to whatever new color you set.


RE: rank color change - Unison - 02-28-2010 05:43 AM

Also change the levelToClass() function, so they receive the proper message when you change their userlevel.


RE: rank color change - Kamofudge - 03-06-2010 07:55 PM

(02-28-2010 05:43 AM)Unison Wrote:  Also change the levelToClass() function, so they receive the proper message when you change their userlevel.

How? What to put?


RE: rank color change - Twdtwd - 03-07-2010 05:55 AM

The colors are listed in 3 places for each rank. the levelToClass() function, the help messages, and getColorCode().

If you change the colors you will have to change them in all three places.


RE: rank color change - Kamofudge - 03-07-2010 11:10 AM

I can't understand Sad.


RE: rank color change - NGgod - 03-11-2010 06:36 AM

I have changed the rank names in all instances i could find yet it makes no effect, and the colors, and helpranks i cant even find the user levels and such, is it all in the server file?