tString::RemoveStartColor()
- Tank Program
- Forum & Project Admin, PhD
- Posts: 6709
- Joined: Thu Dec 18, 2003 7:03 pm
tString::RemoveStartColor()
That (refering to subject) is the name of a function I added to remove the color info from the start of a string. No more stupid messed up thingies if we use it right!

- subby
- Shutout Match Winner
- Posts: 1199
- Joined: Sun Dec 21, 2003 1:18 am
- Location: A cave, Melbourne, Australia.
Do you mean the 0xffffff stuff ?
This can be anywhere in a string. I noticed this to be a problem also, so all the rFont stuff i use always has a colour code to make sure it is that colour before putting it on screen. The font class i have noticed is a bit buggy. There is a function in rFont to strip colour information already from memory ( I might be wrong). If we introduce a bool into that class we should be able to prevent colour information to be used if we desire to.
ie. the rubbish that comes up when pressing tab with ppls colour codes in their names.
This can be anywhere in a string. I noticed this to be a problem also, so all the rFont stuff i use always has a colour code to make sure it is that colour before putting it on screen. The font class i have noticed is a bit buggy. There is a function in rFont to strip colour information already from memory ( I might be wrong). If we introduce a bool into that class we should be able to prevent colour information to be used if we desire to.
ie. the rubbish that comes up when pressing tab with ppls colour codes in their names.
- Tank Program
- Forum & Project Admin, PhD
- Posts: 6709
- Joined: Thu Dec 18, 2003 7:03 pm
I also remembered that, I'll change it to "tString::StripColor()" and modify the function acordingly so that it just strips color, and of course the reason for making it was to fix the player screen- both in game and so that the dedicated server outputs to players.txt in a standardized format that won't be screwed up. And yes, I have the HUD code and my dedicated code now merged. I'm working on one source. Just a matter of getting CVS running. We're waiting for Marrow to wake up...

- Tank Program
- Forum & Project Admin, PhD
- Posts: 6709
- Joined: Thu Dec 18, 2003 7:03 pm
- Tank Program
- Forum & Project Admin, PhD
- Posts: 6709
- Joined: Thu Dec 18, 2003 7:03 pm
- Tank Program
- Forum & Project Admin, PhD
- Posts: 6709
- Joined: Thu Dec 18, 2003 7:03 pm
colored text needs to be disabled for the server listings too, in many peoples opinions..
and many people would like to see colored text return to the chat part of the game..
anyways... pushing back up, because server listings can still include color codes, afaik, not sure if this was missed or left intentionally..
BRING BACK CHAT COLORED TEXT!! ;p
and many people would like to see colored text return to the chat part of the game..
anyways... pushing back up, because server listings can still include color codes, afaik, not sure if this was missed or left intentionally..
BRING BACK CHAT COLORED TEXT!! ;p
- Tank Program
- Forum & Project Admin, PhD
- Posts: 6709
- Joined: Thu Dec 18, 2003 7:03 pm