SA-MP Forums Archive
Colored dialogs? - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Colored dialogs? (/showthread.php?tid=204635)



Colored dialogs? - Rokzlive - 30.12.2010

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.


Re: Colored dialogs? - _rAped - 30.12.2010

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

Replace the RRGGBB with the hex code.


Re: Colored dialogs? - Rokzlive - 30.12.2010

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


Re: Colored dialogs? - _rAped - 30.12.2010

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);



Re: Colored dialogs? - Rokzlive - 30.12.2010

Why do i not put AA on the end?


Re: Colored dialogs? - _rAped - 30.12.2010

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.


Re: Colored dialogs? - _rAped - 30.12.2010

Glad I could help