SA-MP Forums Archive
Putting information text to box - 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: Putting information text to box (/showthread.php?tid=485060)



Putting information text to box - Riwerry - 02.01.2014

Hello guys, can someone give me an example, how can I create some information box, where the header will have some color for example ъdolie, bellow header will be white text with some red parts.. Thx...


Re: Putting information text to box - Crayder - 02.01.2014

This link will help you with dialogs in general...

DIALOG_STYLE_MSGBOX is the style you will want... Use Color Embedding to color parts of your text...

Example of coloring a string...
Quote:

White = "Hello World!"
Red = "{FF0000}Hello World!"
Blue = "{0000FF}Hello World!"

To color different parts... (This will show "Hello World!")
Quote:

Red/Blue = "{FF0000}Hello {0000FF}World!"




Re: Putting information text to box - Riwerry - 03.01.2014

Yeah dude, but I want to put this "textbox" for example to down left corner and is this possible in dialog?


Re: Putting information text to box - Crayder - 03.01.2014

No, not in a dialog... If you want to do this, you will need to create a bunch of "TextDraws" or a "Menu"...

You should just create a dialog for what you need to do... (I dont like menu's and textdraw take up alot of lines... :P)

If you do refuse to use TextDraws, goto this CreateMenu page...


Re: Putting information text to box - Riwerry - 03.01.2014

I want to make something like this..

http://imageshack.us/photo/my-images/401/samp013di.png/


Re: Putting information text to box - HardRock - 03.01.2014

You can make it with TextDraws. You can use something like that - https://sampforum.blast.hk/showthread.php?tid=406833 do make textdraws.


Re: Putting information text to box - Riwerry - 03.01.2014

I am actually trying it but I dont know why when I use box I cant put the textdraw here into this box, textdraw is just right to box..