@Harken_W No problem! Also, if you want to make that polygon anywhere else but also have the icons/text etc just copy/paste the relevant portions later on labelled "//draw icon" and "//draw text", respectively.
You might run into issues later on with positioning since the entire thing uses a global x and y variable. You can remedy that by finding this part:
Code:
Bitmap.prototype.SPolyDrawStatPolygon = function(actor) {
var cx = centerX, cy = centerY;
...(etc code stuff)...
};
and changing that var cx = centerX thing to this:
Code:
Bitmap.prototype.SPolyDrawStatPolygon = function(actor, x, y) {
if (x !== undefined) {
var cx = x, cy = y;
} else {
var cx = centerX, cy = centerY;
}
...(etc code stuff)...
};
This way when you call this.contents.SPolyDrawStatPolygon(this._actor); you can also specify a center x and y coordinate.
Example:
this.contents.SPolyDrawStatPolygon(this._actor, 100, 200);
to center it at x=100 and y=200.