Game Development Community

dev|Pro Game Development Curriculum

Engine MOD to make creating BitmapBorder artwork much easier

by Pete Patterson · 04/03/2007 (11:22 am) · 3 comments

In engine/gui/controls/guiBitmapBorderCtrl.cpp:

enum {
BorderTopLeft,
BorderTop,
BorderTopRight,
BorderLeft,
BorderCenter,
BorderRight,
BorderBottomLeft,
BorderBottom,
BorderBottomRight,
NumBitmaps
};

This is all that's needed! Note that you must go and create the artwork and hook it up in the script datablocks, but it's a piece of cake to generate this layout of artwork as opposed to the original.

A sample piece of artwork that uses this layout is provided with this resource.

#1
03/03/2007 (9:00 am)
The image as shown on this page looks wrong, but when I try to edit, the image looks correct. It currently looks like there is no 'cut line' on the right, but there should be, and it's critical to the proper operation of the resource that the source image have said cut line.

I have tried to edit this resource, and the 'modify' button does nothing for me. Perhaps because the resource is not approved yet, perhaps because of browser incompatibility, but in any case I am unable to edit and fix this.
#2
04/03/2007 (12:16 pm)
Cool deal! It's the little things like this that typically make the difference between things being an enormous hassle or flowing smooth as silk. Thanks for putting this up!
#3
04/20/2007 (10:06 am)
Thanks for the comments and positive rating Kevin. Very glad to know that this is helpful to other people.

One small note if it's not obvious. The center-middle bitmap is not used, although it will load and consume memory. I didn't consider that to be a big deal, and when I create bitmap borders I make sure that the center-middle section of the bitmap is small and won't use up too much RAM.