Dialog Text 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: Dialog Text Colors (
/showthread.php?tid=298664)
Dialog Text Colors -
Passout - 22.11.2011
Hi I know its possible to change the color of the text in the dialogs so how?
Re: Dialog Text Colors -
Psymetrix - 22.11.2011
Read the very bottom part of
this page.
"Chat/dialog embedding "
Re: Dialog Text Colors -
Passout - 22.11.2011
Already did does not work...The dialog includes it like if its text.
If this is how its done.
Code:
ShowPlayerDialog(playerid, 3, DIALOG_STYLE_MSGBOX, "{FFFFFF}Hello this is {0000FF}blue {FFFFFF}and this is {FF0000}red", RULEZ, "Accept", "Deny");
then
It would show up exactly like this with the codes in it and everything.
Code:
{FFFFFF}Hello this is {0000FF}blue {FFFFFF}and this is {FF0000}red
Re: Dialog Text Colors -
grand.Theft.Otto - 22.11.2011
Did you define the colours at the top of your script ?
Here's a list to get started ...
pawn Code:
#define COL_EASY "{FFF1AF}"
#define COL_WHITE "{FFFFFF}"
#define COL_BLACK "{0E0101}"
#define COL_GREY "{C3C3C3}"
#define COL_GREEN "{6EF83C}"
#define COL_RED "{F81414}"
#define COL_YELLOW "{F3FF02}"
#define COL_ORANGE "{FFAF00}"
#define COL_LIME "{B7FF00}"
#define COL_CYAN "{00FFEE}"
#define COL_LIGHTBLUE "{00C0FF}"
#define COL_BLUE "{0049FF}"
#define COL_MAGENTA "{F300FF}"
#define COL_VIOLET "{B700FF}"
#define COL_PINK "{FF00EA}"
#define COL_MARONE "{A90202}"
#define COL_CMD "{B8FF02}"
#define COL_PARAM "{3FCD02}"
#define COL_SERVER "{AFE7FF}"
#define COL_VALUE "{A3E4FF}"
#define COL_RULE "{F9E8B7}"
#define COL_RULE2 "{FBDF89}"
#define COL_RWHITE "{FFFFFF}"
#define COL_LGREEN "{C9FFAB}"
#define COL_LRED "{FFA1A1}"
#define COL_LRED2 "{C77D87}"
Re: Dialog Text Colors -
Passout - 22.11.2011
Thank you Grand.theft.Auto for that list...now I need help understanding how to change the colors
Like So?/
Code:
ShowPlayerDialog(playerid, 3, DIALOG_STYLE_MSGBOX, "COL_WHITE I want this text white", "Info", "Left", "Right");
Re: Dialog Text Colors -
Passout - 22.11.2011
Help me
Re: Dialog Text Colors -
RadioRockz - 22.11.2011
You want that text whitw right?
If yes
Just place the color code before the text
Ex:-
{FFFFFF}My white text
Re: Dialog Text Colors -
SuperViper - 22.11.2011
pawn Code:
ShowPlayerDialog(playerid, 3, DIALOG_STYLE_MSGBOX, ""#COL_WHITE"I want this text white", "Info", "Left", "Right");