Textdraw colors - 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: Textdraw colors (
/showthread.php?tid=592106)
Textdraw colors -
IndependentGaming - 20.10.2015
Hello, since the wiki sites are now loading for me somehow.. i need to know how to change the textdraw collors
this is one of my boxes, and the collor is TextDrawColor(MainMenuTxtdraw[1],
255);
See here:
PHP код:
MainMenuTxtdraw[1] = TextDrawCreate(639.000000, -1.000000, "'");
TextDrawAlignment(MainMenuTxtdraw[1], 3);
TextDrawBackgroundColor(MainMenuTxtdraw[1], 255);
TextDrawFont(MainMenuTxtdraw[1], 1);
TextDrawLetterSize(MainMenuTxtdraw[1], 0.239999, 10.900000);
TextDrawColor(MainMenuTxtdraw[1], 255);
TextDrawSetOutline(MainMenuTxtdraw[1], 0);
TextDrawSetProportional(MainMenuTxtdraw[1], 1);
TextDrawSetShadow(MainMenuTxtdraw[1], 1);
TextDrawUseBox(MainMenuTxtdraw[1], 1);
TextDrawBoxColor(MainMenuTxtdraw[1], 255);
TextDrawTextSize(MainMenuTxtdraw[1], 102.000000, 330.000000);
How do i know what the collor is ? i cant find out the 255..
Re: Textdraw colors -
karemmahmed22 - 20.10.2015
255 is white colour..
Since 0 is black so ofc 255 is white..
Re: Textdraw colors -
IndependentGaming - 20.10.2015
okay where can i find those IDS ?
Re: Textdraw colors -
Fairuz - 20.10.2015
Try to use iPleomax's Textdraw Editor to make it easier.
Re: Textdraw colors -
AbyssMorgan - 20.10.2015
RGBA
Example:
0xFF0000FF - red
0x00FF00FF - green
0x0000FFFF - blue
0xFFFFFFFF - white
Re: Textdraw colors -
Vince - 20.10.2015
Quote:
Originally Posted by karemmahmed22
255 is white colour..
Since 0 is black so ofc 255 is white..
|
Actually, no. It's full opaque black. 255 is 0x000000FF, when represented in the more common 8 digit hexadecimal format.
Quote:
Originally Posted by SacrificeGaming
okay where can i find those IDS ?
|
Use Windows Calculator and set it to programming mode. Select dword. You can then switch between decimal and hexadecimal.