Necro Better Text 1.0
Do you want to add images to your text?
Do you want to center align your text?
Do you want your text to auto wrap?
You can do all that and more with this new plugin!
Features
This plugin allows you to set all text to default word wrap, and set the default alignment of text. It also adds the following text codes for any text that supports text codes! (These are also in the plugin's help)
\space[x]
Force number of spaces (i.e. when whitespace is ignored for word wrap)
\wrap
Make the current text use word wrap (or not use, opposite of your default setting) (Only put once in message and applies for whole message)
\br
Force a newline (i.e. when newlines are ignored for word wrap)
\center
Centers all new text including current line
\left
Left aligns all new text including current line
\right
Right aligns all new text including current line
\pic[image][width][height][hue][smooth]
Display an image in the message with the given size (i.e. \pic[img/enemies/][Actor1_3][125][125] would display the image of img/enemies/Actor1_3.png at a size of 125 by 125) (Hue and smooth are optional parameters)
\face[x][width][height]
Display the face of the actor of the given index with the given size. (i.e. \face[2][100][100] would draw the 2nd actor's face at a size of 100 by 100)
* Note, for anytime you need both a height and width (i.e. \pic) you can give just a width and it will set the height to that as well aka make it a square (i.e. \face[1][75] would draw the 1st actor's face at a size of 75 by 75)
Requirments
This plugin doesn't require any other plugins! (But it does have support for MVC)
Demo
You can download both the demo & plugin itself from the git repo
her
FAQ
Q: Why can't it find my image?
A: Make sure you use '/' not '\' for folders, don't include the file extension, and the image is a png.
Q: When I try to display an image at x size in a message it just flashes letters and then disappears, why does this happen?
A: This happens because the image's display height is greater than the message box. Just decrease the display height of the image and it will work.
License
The plugin is under The MIT License (MIT) sos you can use, modify, copy, etc. for any purpose (commerical and non-commerical) as long as you include the License (LICENSE.md in the git repo)[/image]