Parallax Panda

Veteran
Veteran
Joined
Oct 29, 2015
Messages
1,127
Reaction score
1,351
First Language
Swedish
Primarily Uses
RMMZ
Hello.

So I'm using Visustella's MainMenuCore plugin for MZ and found the same "bug" that always seem to exist whenever someone gives us the option to display playtime in the main menu. And that is that unless you use a monospaced font (very few of those, even fewer that looks good) the playtime will "jump around" to the left/right as the playtime is ticking (this is because not all numbers take up the same size ofc).

In the past I've managed to work around this by changing the text alignment (left/right) of the draw text function that draw the playtime. But last time I did it was a long time ago and I don't remember exactly what I did (and I obviosuly don't understand JavaScript very well). I think this is a super easy fix though (at least I remember it to be), I just don't know how to do it myself.

I assume what needs to be edited is this piece of code that I found in the plugin settings under "Playtime Window" --> "JS":

Code:
const rows = 1;
const ww = this.mainCommandWidth();
const wh = this.calcWindowHeight(rows, false);
const wx = this.isRightInputMode() ? Graphics.boxWidth - ww : 0;
let wy = this.mainAreaBottom() - wh;
if (this._goldWindow) wy -= this._goldWindow.height;
if (this.canCreateVariableWindow()) wy -= this.variableWindowRect().height;
return new Rectangle(wx, wy, ww, wh);

I'd be super grateful if someone could help me out with this.

Thanks for reading.
 

Latest Threads

Latest Profile Posts

Another camping area.
I just found out somebody pirated my 3,99$ game. I spent over a year making it and somebody just publish it for free a week after early access released.

I should be glad, cuz if they pirate you, that means your game has to be good, but im not. I barely sold any copy. Didn't get any info from most of the sites I wrote.
So I'm hoping that I get an MRI on my knee soon, but until then, I'm on a prescription dosage of ibuprofen. It's definitely helping, but my knee is still hurting and occasionally locks up. The urgent care doctor was convinced it's a meniscus tear due to it locking, and said that if it is, I'll need surgery. :(

Forum statistics

Threads
124,635
Messages
1,164,886
Members
163,457
Latest member
hcm90
Top