Hello everyone, it's been a while since I last posted. Today I've come to ask what you all know about how text is drawn in menus and and messages. Specifically how it gets it's X and Y values.
I've been playing around with the idea of using an image-font, and I recently hit a snag. I can't get the some sprites to draw in the proper places. Game messages creates the sprites, but shows them at the top of the screen. I think this is related to the position option, I just haven't checked yet.
The gold value and unit, display in the top left corner, and I have no idea what causes this. Actor related menu text (HP, MP, Etc) drawing to far to the left. I suspect that the issues are because I told Bitmap.prototype.drawText to create and display sprites instead of drawing text.
Capsule_Text.drawText = Bitmap.prototype.drawText;
However Im not entirely sure. I attached an image that shows the problem.
Any help would be useful.
I've been playing around with the idea of using an image-font, and I recently hit a snag. I can't get the some sprites to draw in the proper places. Game messages creates the sprites, but shows them at the top of the screen. I think this is related to the position option, I just haven't checked yet.
The gold value and unit, display in the top left corner, and I have no idea what causes this. Actor related menu text (HP, MP, Etc) drawing to far to the left. I suspect that the issues are because I told Bitmap.prototype.drawText to create and display sprites instead of drawing text.
Capsule_Text.drawText = Bitmap.prototype.drawText;
Bitmap.prototype.drawText = function(text, x, y, maxWidth, lineHeight, align) {
d = maxWidth
c = lineHeight
b = align
a.push(text)
ttext = text
if (typeof(ttext) === "number"){ttext = ttext.toString()}
ty = (y + lineHeight)
tx = x
Capsule_Text.Sprites.Create_Sprite()
};
d = maxWidth
c = lineHeight
b = align
a.push(text)
ttext = text
if (typeof(ttext) === "number"){ttext = ttext.toString()}
ty = (y + lineHeight)
tx = x
Capsule_Text.Sprites.Create_Sprite()
};
Any help would be useful.