New - Final fantasy Styled Canvas windows

Hey everyone, me again
I have a new function to give you that can turn a canvas into a window for text, menus, and more without making new images for a different size. :/
Function: IntoWindow();
Screenshots
To use this, simply put IntoWindow(); inside of Create Actor.

Function: IntoWindow();
- Code: Select all
void IntoWindow()
{
int line;
erase(255, 255, 255, .99);
for (line=3;line<height-3;line++)
{
setpen(0, line, line+124, .30, 1);
moveto(3, line);
lineto(width-3, line);
}
setpen(255, 255, 255, 0, 2);
moveto(3, 2);
lineto(width-3, 2);
setpen(255, 255, 255, 0, 2);
moveto(2, 4);
lineto(2, height-3);
moveto(3, height-2);
lineto(width-3, height-2);
moveto(width-2, height-3);
lineto(width-2, 3);
}
Screenshots
To use this, simply put IntoWindow(); inside of Create Actor.