Dialog Text Colors
#1

Hi I know its possible to change the color of the text in the dialogs so how?
Reply
#2

Read the very bottom part of this page.

"Chat/dialog embedding "
Reply
#3

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
Reply
#4

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}"
Reply
#5

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");
Reply
#6

Help me
Reply
#7

You want that text whitw right?

If yes
Just place the color code before the text


Ex:-
{FFFFFF}My white text
Reply
#8

pawn Code:
ShowPlayerDialog(playerid, 3, DIALOG_STYLE_MSGBOX, ""#COL_WHITE"I want this text white", "Info", "Left", "Right");
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)