Scrolling up/down arrows

Hi all,

I was looking for a way to move the up/down arrows shown in menus and dialogue. It's originally in the bottom- or top-center of the window, but I would like to move it over to the right. I looked throughout rpg_windows and rpg_scene, but couldn't seem to find the script that calls it. Is it an x value I can change? Align right? I feel silly because this seems simple. If anyone knows, I'd be grateful. Thanks!
I don't know if this has it, but here is a thread about editing RTP plugins.
https://forums.rpgmakerweb.com/index.php?threads/easy-rtp-plugin-edits-guide-for-beginners.68182/
@Thomas Smith Thanks for providing that. It was a good try, but nothing listed about the scroll arrows.
@Thomas Smith Thanks for providing that. It was a good try, but nothing listed about the scroll arrows.
Oh well, that's too bad 🙁
The relevant code is actually in rpg_core.js

Paste this into a new .js file and install it in your Plugin Manager, and you can play with the x value.
It's currently set as the width of the window divided by 2 (i.e. in the middle), so you can change that value.

Code:
Window.prototype._refreshArrows = function() {
    var w = this._width;
    var h = this._height;
    var p = 24;
    var q = p/2;
    var sx = 96+p;
    var sy = 0+p;
    this._downArrowSprite.bitmap = this._windowskin;
    this._downArrowSprite.anchor.x = 0.5;
    this._downArrowSprite.anchor.y = 0.5;
    this._downArrowSprite.setFrame(sx+q, sy+q+p, p, q);
    this._downArrowSprite.move(w/2, h-q);
    //Change the x value here ^^
    this._upArrowSprite.bitmap = this._windowskin;
    this._upArrowSprite.anchor.x = 0.5;
    this._upArrowSprite.anchor.y = 0.5;
    this._upArrowSprite.setFrame(sx+q, sy, p, q);
    this._upArrowSprite.move(w/2, q);
    //Change the x value here ^^
};
@Aloe Guvner Perfect! I should have looked in rpg_core. Alright, but now there is a new problem. I tweaked the code for both arrows to be 40 less than the width, instead of half the width:

Code:
Window.prototype._refreshArrows = function() {
    var w = this._width;
    var h = this._height;
    var p = 24;
    var q = p/2;
    var sx = 96+p;
    var sy = 0+p;
    this._downArrowSprite.bitmap = this._windowskin;
    this._downArrowSprite.anchor.x = 0.5;
    this._downArrowSprite.anchor.y = 0.5;
    this._downArrowSprite.setFrame(sx+q, sy+q+p, p, q);
    this._downArrowSprite.move(w-40, h-q);
    this._upArrowSprite.bitmap = this._windowskin;
    this._upArrowSprite.anchor.x = 0.5;
    this._upArrowSprite.anchor.y = 0.5;
    this._upArrowSprite.setFrame(sx+q, sy, p, q);
    this._upArrowSprite.move(w-40, q);
};

If w/2 halves the width and brings the arrow to the center, w-40 should have nudged the arrow 40 pixels to the left of any window's width, right? It's not working. Rather, it's reverting back to the default rpg_core as if my new script has an error. What's wrong with it?

EDIT: I've already tried adjusting its placement on the plugin list.

ED-EDIT: Actually, it does work! I was testing with a dialogue box, but this bit of code is for menu windows, like Items and Skills. It works just fine. I'm sure the dialogue arrow is somewhere in rpg_core as well. I look for it now. Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/scrolling-up-down-arrows.91470/