Page 1 of 1

New - Final fantasy Styled Canvas windows

PostPosted: Tue Mar 23, 2010 8:43 pm
by Hblade
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();

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
Screenshot 1.JPG

Screenshot 2.JPG

Screenshot 3.JPG

Screenshot 4.JPG


To use this, simply put IntoWindow(); inside of Create Actor.