Moving the "gold" window

Hey cool cats.
I've had a long hunt around for an answer to this one, but couldn't find the right answer.

So when you type \$ in the text box you summon a small window that shows the players current gold. Only it puts it in the top right hand corner of the screen.
Is there a way of moving it?
Currently, as I have the text boxes appear at the bottom, I'd like to see it open just above the right hand corner of the text box.

Thanks for your time.
you probably want to either overwrite it or alias it.
JavaScript:
Window_Message.prototype.updatePlacement = function() {
    this._positionType = $gameMessage.positionType();
    this.y = this._positionType * (Graphics.boxHeight - this.height) / 2;
    this._goldWindow.y = this.y > 0 ? 0 : Graphics.boxHeight - this._goldWindow.height;
};

this function set it to this.y on 0 for menu or if the message is on top (I think).

otherwise, graphic resolution height - gold window height so it fits nicely.
I'm not really into mathmetica of those positions as I mostly hard code them.

but you might want to try:

Code:
this.y > 0 ? Graphics.boxHeight - this._messageWindow - this._goldWindow.height
           : Graphics.boxHeight - this._goldWindow.height

no idea how it works out.
but you can also if you like, add something like $gameVariables._data[id] and control the
it by the id inside the game, but that is personal reference 🙂

but you gotta play around what works for you.
Before I try this, does anyone have any tried and tested methods?

Original thread: https://forums.rpgmakerweb.com/threads/moving-the-gold-window.176647/