How to do multi colors in textdraw select? -
JustNothing - 31.12.2016
So I want to do multi colors in textdraw select like in video. At 23 - 26 sec.
https://www.youtube.com/watch?v=6oipyI2xDa8
Re: How to do multi colors in textdraw select? -
CutX - 31.12.2016
Quote:
Originally Posted by JustNothing
|
try
TextDrawBackgroundColor or
TextDrawBoxColor?
if it's not what you were looking for, check the wiki
here all of the textdraw stuff is listed there
Re: How to do multi colors in textdraw select? -
SoLetsGO - 31.12.2016
He is probably having a transparent textdraw which lights (probably white) if he hovers it. So the background textdraw seem to have different colors.
If you want to do it make textdraws over the selections and make them invisible. The hover color should be light white so something like 0xFFFFFF4F.
Re: How to do multi colors in textdraw select? -
JustNothing - 31.12.2016
Not worked with transparent colors.
Re: How to do multi colors in textdraw select? -
SoLetsGO - 31.12.2016
Quote:
Originally Posted by JustNothing
Not worked with transparent colors.
|
You probably did it wrong. Because you always need 2 textdraws.
For example if you want to select a weapon (AK-47). Then you would have one textdraw
showing "Buy AK-47" and you have one transparent textdraw which doesnt show up at all.
But you have to make the transparent textdraw selectable but not the other one.
And then set the hovercolor to 0xFFFFFF3F.
If you are doing it right, it works.
If not, then please provide your code.
Re: How to do multi colors in textdraw select? -
JustNothing - 31.12.2016
Код HTML:
Textdraw0 = TextDrawCreate(250.000000, 10.000000, "LD_DUAL:white");
TextDrawBackgroundColor(Textdraw0, 255);
TextDrawFont(Textdraw0, 4);
TextDrawLetterSize(Textdraw0, 0.500000, 1.000000);
TextDrawColor(Textdraw0, 297332991);
TextDrawSetOutline(Textdraw0, 0);
TextDrawSetProportional(Textdraw0, 1);
TextDrawSetShadow(Textdraw0, 1);
TextDrawUseBox(Textdraw0, 1);
TextDrawBoxColor(Textdraw0, 297332991);
TextDrawTextSize(Textdraw0, 116.000000, 21.000000);
Textdraw1 = TextDrawCreate(250.000000, 10.000000, "LD_DUAL:white");
TextDrawBackgroundColor(Textdraw1, 255);
TextDrawFont(Textdraw1, 4);
TextDrawLetterSize(Textdraw1, 0.500000, 1.000000);
TextDrawColor(Textdraw1, 245222655);
TextDrawSetOutline(Textdraw1, 0);
TextDrawSetProportional(Textdraw1, 1);
TextDrawSetShadow(Textdraw1, 1);
TextDrawUseBox(Textdraw1, 1);
TextDrawBoxColor(Textdraw1, 297332991);
TextDrawTextSize(Textdraw1, 116.000000, 21.000000);
TextDrawSetSelectable(Textdraw1, 1);
TextDrawShowForPlayer(playerid, Textdraw0);
TextDrawShowForPlayer(playerid, Textdraw1);
SelectTextDraw(playerid, 0xFFFFFF4F);
if i change the color to black it shows black even if it is transparent
Re: How to do multi colors in textdraw select? -
SoLetsGO - 31.12.2016
I guess Textdraw1 is your transparent textdraw. But 297332991 does not seem to be transparent. Try color 0xFFFFFF00 for background and for BoxColor in textdraw1.
Re: How to do multi colors in textdraw select? -
AbyssMorgan - 31.12.2016
Quote:
Originally Posted by SoLetsGO
I guess Textdraw1 is your transparent textdraw. But 297332991 does not seem to be transparent. Try color 0xFFFFFF00 for background and for BoxColor in textdraw1.
|
Yes, alpha is 255.
http://8.ct8.pl/color/?type=rgba&color=297332991&dec=1
Re: How to do multi colors in textdraw select? -
SoLetsGO - 31.12.2016
Quote:
Originally Posted by AbyssMorgan
|
I was rather on about that number: 297332991