[Plugin] [REL] Console Colored Text 0.2 (New version)
#13

Quote:
Originally Posted by 0rb
Ohh, you should say in first post that we can do this also, for setting text and background colors:
pawn Код:
SetConsoleTextColor(CONSOLE_WHITE | BACKGROUND_BLUE);
Or maybe make some other #define like
pawn Код:
#define WHITE_AND_BLUE  (CONSOLE_WHITE | BACKGROUND_BLUE)
EDIT: Even default cmd color codes are working!
pawn Код:
SetConsoleTextColor(0x1F);
That is still white text on blue background!

Color attributes are specified by two hex digits.
The first corresponds to the background color, the second to the foreground (text) color.
Each digit can be any of the following values:
Код:
0 = Black	 	
1 = Blue
2 = Green	
3 = Aqua
4 = Red
5 = Purple
6 = Yellow
7 = White
8 = Gray
9 = Light Blue
A = Light Green
B = Light Aqua
C = Light Red
D = Light Purple
E = Light Yellow
F = Bright White

Now is missing a function GetDefaultConsoleColors() in your plugin! (because it has bug actually, when console's default color isn't black/white). Can't wait

Last thing, can you please make it so we can choose where the background color will start and end (on the x axis). So this can maybe allow multiple colors in a single line. Because actually it starts at 0 (and ends at end of string, which make me think it's probably possible to set where it will start and where it will end too)
Quote:

Because actually it starts at 0 (and ends at end of string, which make me think it's probably possible to set where it will start and where it will end too)

the function "logprintf" do a new line... i can't do this feature

Quote:

Now is missing a function GetDefaultConsoleColors() in your plugin! (because it has bug actually, when console's default color isn't black/white). Can't wait
you can use "0x0000 | 0x0007" for default color.
Reply


Messages In This Thread
[REL] Console Useful Functions 0.3 (CCT update) - by cosmy - 15.01.2009, 18:22
Re: [REL] Console Colored Text 0.1 - by kalle - 15.01.2009, 18:35
Re: [REL] Console Colored Text 0.1 - by cosmy - 15.01.2009, 18:35
Re: [REL] Console Colored Text 0.1 - by Joske_Vermeulen - 15.01.2009, 18:59
Re: [REL] Console Colored Text 0.1 - by Basss - 15.01.2009, 19:21
Re: [REL] Console Colored Text 0.1 - by Nimphious - 15.01.2009, 21:58
Re: [REL] Console Colored Text 0.1 - by boylett - 15.01.2009, 22:49
Re: [REL] Console Colored Text 0.1 - by yom - 16.01.2009, 00:02
Re: [REL] Console Colored Text 0.1 - by cosmy - 16.01.2009, 14:21
Re: [REL] Console Colored Text 0.1 - by cosmy - 16.01.2009, 14:25
Re: [REL] Console Colored Text 0.1 - by Nimphious - 16.01.2009, 18:17
Re: [REL] Console Colored Text 0.1 - by yom - 16.01.2009, 18:34
Re: [REL] Console Colored Text 0.1 - by cosmy - 17.01.2009, 12:27
Re: [REL] Console Colored Text 0.1 - by yom - 17.01.2009, 12:57
Re: [REL] Console Colored Text 0.1 - by cosmy - 17.01.2009, 14:37
Re: [REL] Console Colored Text 0.1 - by TrueCoppa - 17.01.2009, 14:47
Re: [REL] Console Colored Text 0.1 - by yom - 17.01.2009, 15:03
Re: [REL] Console Colored Text 0.2 (New version) - by cosmy - 17.01.2009, 15:07
Re: [REL] Console Colored Text 0.2 (New version) - by yom - 17.01.2009, 15:15
Re: [REL] Console Colored Text 0.2 (New version) - by cosmy - 17.01.2009, 15:21
Re: [REL] Console Colored Text 0.2 (New version) - by yom - 17.01.2009, 15:32
Re: [REL] Console Colored Text 0.2 (New version) - by cosmy - 17.01.2009, 16:06
Re: [REL] Console Colored Text 0.2 (New version) - by yom - 17.01.2009, 18:47
Re: [REL] Console Colored Text 0.2 (New version) - by cosmy - 17.01.2009, 18:51
Re: [REL] Console Colored Text 0.2 (New version) - by yom - 17.01.2009, 19:09
Re: [REL] Console Colored Text 0.2 (New version) - by ғαιιοцт - 18.01.2009, 09:31
Re: [REL] Console Colored Text 0.2 (New version) - by cosmy - 18.01.2009, 16:33
Re: [REL] Console Colored Text 0.2 (New version) - by yom - 18.01.2009, 17:02
Re: [REL] Console Colored Text 0.2 (New version) - by cosmy - 18.01.2009, 19:28
Re: [REL] Console Colored Text 0.2 (New version) - by yom - 19.01.2009, 20:39
Re: [REL] Console Colored Text 0.2 (New version) - by ғαιιοцт - 20.01.2009, 11:45
Re: [REL] Console Colored Text 0.2 (New version) - by cosmy - 20.01.2009, 16:37
Re: [REL] Console Colored Text 0.2 (New version) - by yom - 22.01.2009, 18:55
Re: [REL] Console Colored Text 0.2 (New version) - by cosmy - 26.01.2009, 12:11
Re: [REL] Console Colored Text 0.2 (New version) - by UsaBoy91 - 12.07.2009, 06:59
Re: [REL] Console Colored Text 0.2 (New version) - by MJ! - 11.12.2009, 18:37
REL Console Colored Text 0 2 New version - by Unpally09 - 13.12.2009, 18:11
Re: [REL] Console Colored Text 0.2 (New version) - by cosmy - 14.12.2009, 12:42
REL Console Colored Text 0 2 New version - by onenife09 - 14.12.2009, 15:53
Re: [REL] Console Colored Text 0.2 (New version) - by armyoftwo - 25.09.2010, 14:00
Re: [REL] Console Colored Text 0.2 (New version) - by Brian_Furious - 25.09.2010, 21:44
Re: [REL] Console Colored Text 0.2 (New version) - by Slice - 25.09.2010, 21:58
Re: [REL] Console Colored Text 0.2 (New version) - by iFriSki - 26.09.2010, 00:33
Re: [REL] Console Colored Text 0.2 (New version) - by TPD - 26.09.2010, 01:12
Re: [REL] Console Colored Text 0.2 (New version) - by [4k]Wang - 26.09.2010, 01:28
Re: [REL] Console Colored Text 0.2 (New version) - by HyperZ - 26.09.2010, 13:34
Re: [REL] Console Colored Text 0.2 (New version) - by TheGamer! - 18.07.2012, 08:39
Re: [REL] Console Colored Text 0.1 - by Cat Cola - 07.11.2012, 08:25
Re: [REL] Console Colored Text 0.1 - by Emmet_ - 07.11.2012, 11:15
Re: [REL] Console Colored Text 0.2 (New version) - by NoahF - 07.11.2012, 11:20
Re: [REL] Console Colored Text 0.2 (New version) - by Edvin - 07.11.2012, 11:35
Re: [REL] Console Colored Text 0.2 (New version) - by Plovix - 10.11.2012, 16:02
Re: [REL] Console Useful Functions 0.3 (CCT update) - by cosmy - 12.12.2012, 17:49
Re : [REL] Console Colored Text 0.2 (New version) - by DexX39 - 14.03.2014, 09:43
Re: Re : [REL] Console Colored Text 0.2 (New version) - by Kirollos - 14.03.2014, 09:55

Forum Jump:


Users browsing this thread: 3 Guest(s)