SA-MP Forums Archive
3DTextLabel - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: 3DTextLabel (/showthread.php?tid=434975)



3DTextLabel - Nostrum - 04.05.2013

How do i code to change 3DTextLabel's font from this:
http://i.imgur.com/zQQZS0n.jpg

To this:

http://i.imgur.com/ZJU0Fi0.jpg


Re: 3DTextLabel - Vince - 04.05.2013

Looks exactly the same to me. If you're on about the colors, then read https://sampwiki.blast.hk/wiki/Colors_List#Color_embedding


Re: 3DTextLabel - Nostrum - 04.05.2013

Sorry for not explaining.
If you look at the screens, youll notice that 1st 3d label's color is abit gray and dark, but second label's color ir bright and shiny.


Re: 3DTextLabel - RaZzZzoR - 04.05.2013

www.colorpicker.com


Re: 3DTextLabel - Nostrum - 04.05.2013

Quote:
Originally Posted by RaZzZzoR
Посмотреть сообщение
You dont get it.. In those 2 screens, they both have the same color code, but the saturation is different.


Re: 3DTextLabel - MP2 - 04.05.2013

You mean the transparency? Change the last two 'digits' of the hex color. They should be FF.


Re: 3DTextLabel - CJay9209 - 04.05.2013

U've neglected to pay attention to the color alpha value in the hex code for the color ur using.

e.g.

0xRRGGBBAA

will give a nice kinda semi see through white

0xRRGGBBFF

will give a very vibrant white

and,

0xRRGGBB00

will give a completely invisible white.

You can also embed colors into the text in order to change it half way through,

e.g.

CreatePlayer3DTextLabel(playerid,"{0000FF}Fuel Station: {FF3300}Large Vehicle Type", 0xFFFFFFFF ,0,0,0,30.0,INVALID_PLAYER_ID,vehicleid,0);


Re: 3DTextLabel - Nostrum - 04.05.2013

Quote:
Originally Posted by CJay9209
Посмотреть сообщение
U've neglected to pay attention to the color alpha value in the hex code for the color ur using.

e.g.

0xRRGGBBAA

will give a nice kinda semi see through white

0xRRGGBBFF

will give a very vibrant white

and,

0xRRGGBB00

will give a completely invisible white.

You can also embed colors into the text in order to change it half way through,

e.g.

CreatePlayer3DTextLabel(playerid,"{0000FF}Fuel Station: {FF3300}Large Vehicle Type", 0xFFFFFFFF ,0,0,0,30.0,INVALID_PLAYER_ID,vehicleid,0);
Thanks, this helped.
But could you explain me why is it that in the both screens, the color code is 0xAA3333AA, but in 1. screen the color looks like AA, but in the 2. screen, the color is somewhere close to FF?


Re: 3DTextLabel - CJay9209 - 04.05.2013

It's most likely that the text in the first image has no embedded text coloring. Embedded text coloring overlays the default color specified and is always FF effectively. In that case the only thing the alpha code specifies is the background color which u can use to create a border around your text an make it stand out a little better.


Re: 3DTextLabel - Nostrum - 05.05.2013

Quote:
Originally Posted by CJay9209
Посмотреть сообщение
It's most likely that the text in the first image has no embedded text coloring. Embedded text coloring overlays the default color specified and is always FF effectively. In that case the only thing the alpha code specifies is the background color which u can use to create a border around your text an make it stand out a little better.
And how to code/script that?

EDIT: Nevermind, got them working.