Colored dialogs?
#1

Is there a tut on how to make certain words and lines in a dialog a certain color. For example i have a login dialog where the user enters their pass, and it says Playername is registered, please enter your password. So that playername is yellow and password is red? I just want a example.
Reply
#2

With 0.3c this is very easy {RRGGBB} text.

Replace the RRGGBB with the hex code.
Reply
#3

You really need to give me more detail xD.

pawn Код:
format(s, sizeof(s), "%s is registered.\nPlease Login.", pname);
        ShowPlayerDialog(playerid,2,DIALOG_STYLE_INPUT,"Please Login",s,"Login","Disconnect");
How would i make the name (%s) Colored as yellow?

#define COLOR_YELLOW 0xFFFF00AA
Reply
#4

Quote:
Originally Posted by Rokzlive
Посмотреть сообщение
You really need to give me more detail xD.

format(s, sizeof(s), "%s is registered.\nPlease Login.", pname);
ShowPlayerDialog(playerid,2,DIALOG_STYLE_INPUT,"Pl ease Login",s,"Login","Disconnect");

How would i make the name (%s) Colored as yellow?

#define COLOR_YELLOW 0xFFFF00AA
pawn Код:
format(s, sizeof(s), "{FFFF00}%s{FFFFFF} is registered.\nPlease Login.", pname);
Reply
#5

Why do i not put AA on the end?
Reply
#6

Quote:
Originally Posted by Rokzlive
Посмотреть сообщение
Why do i not put AA on the end?
Because you don't have to define the light/shadow (or whatever it does). This is the correct way that is used in graphic design (screen) and web-design.
Reply
#7

Glad I could help
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)