[Function] addTextAreaEx |
Laagaadoo « Citoyen » 1390759800000
| 0 | ||
Hello, today I present the [url=]addTextAreaEx[/url] function. • What it does? This function creates a Text Area with the X and Y in the center. • How to use? [url=]addTextAreaEx[/url](Int _id, String _text, String _targetPlayer, Int _x, Int _y, Int _width, Int _height, Int _backgroundColor, Int _borderColor, Float _opacity, Boolean _fixed) [img]http://transformiceplus.tk/negrito/?t=- Arguments[/img] _id - The ID of the Text Area, you can only put numbers, otherwise the Text Area will not be displayed. _text - The text that will be displayed. _targetPlayer - The name of the player that will see the Text Area, use nil to display to all players. _x - The X of the Text Area, remember that the X will be the center in the horizontal of the Text Area. _y - The Y of the Text Area, remember that the Y will be the center in the vertical of the Text Area. _width - The width of the Text Area, only numbers, otherwise the Text Area will not be displayed. _height - The height of the Text Area, only numbers, otherwise the Text Area will not be displayed. _backgroundColor - The background color of the Text Area. _borderColor - The border color of the Text Area. _opacity - The opacity of the Text Area, only numbers (decimal numbers too), otherwise the Text Area will not be displayed. _fixed - Optional. Determines if the Text Area will be fixed in the screen or no, if you put nothing, automatically it assign the false value. • Image a dit : • LUA Script You can find the script here. |
Safwanrockz « Censeur » 1390760280000
| 0 | ||
Very helpful! Thanks. |
Benbirkralm « Citoyen » 1390762980000
| 0 | ||
Thank you. |
Masddss « Citoyen » 1390837740000
| 0 | ||
id - The ID of the Text Area, you can only put numbers, otherwise the Text Area will not be displayed. _text - The text that will be displayed. _targetPlayer - The name of the player that will see the Text Area, use nil to display to all players. _x - The X of the Text Area, remember that the X will be the center in the horizontal of the Text Area. _y - The Y of the Text Area, remember that the Y will be the center in the vertical of the Text Area. _width - The width of the Text Area, only numbers, otherwise the Text Area will not be displayed. _height - The height of the Text Area, only numbers, otherwise the Text Area will not be displayed. _backgroundColor - The background color of the Text Area. _borderColor - The border color of the Text Area. _opacity - The opacity of the Text Area, only numbers (decimal numbers too), otherwise the Text Area will not be displayed. _fixed - Optional. Determines if the Text Area will be fixed in the screen or no, if you put nothing, automatically it assign the false value. |
0 | ||
Wooow thank you!! |
Zebraishere « Citoyen » 1390850940000
| 0 | ||
PEW PEW PEW PEW |
Kmlcan « Citoyen » 1390852680000
| 0 | ||
Nice one. you could change the original textArea with this, by adding a "center" option after fixed option. I mean like this one; a dit : Hope you'll improve this. :3 |
Evilsantah « Citoyen » 1390854120000
| 0 | ||
Evilsantah a dit : This should work exactly the same but with a center boolean. |
Safwanrockz « Censeur » 1390854360000
| 0 | ||
Evilsantah a dit : Shorter and more functional. |
Poukidev « Citoyen » 1390923900000
| 0 | ||
You can use that too : a dit : |
Evilsantah « Citoyen » 1390930680000
| 0 | ||
Poukidev a dit : How does that even work? |
Poukidev « Citoyen » 1391079240000
| 0 | ||
This is ternaires conditions? :x |
0 | ||
Poukidev a dit : yes http://lua-users.org/wiki/TernaryOperator (Personally, I don't like it how it is done in lua and don't use it) |
Evilsantah « Citoyen » 1391081700000
| 0 | ||
Poukidev a dit : Well yeah, you just edited the code now. It looked a lot different when I posted. |