Javascript question

Hi all, new user here. Is this the right place to ask script questions?

I was wondering how I can change the position of the title command menu (New game, continue, options) as well as remove the party images from the ingame menu.

Thanks,
Its the right spot if you want to learn how to code it yourself, or where in the code to touch it. But if you want a plug-in to do this, that is Plug-In Requests. Which are you looking for? If it is the second we can move this thread so no need to repost there.
Thanks! I'm pretty comfortable with coding, just need to know where in the file these areas are and how I can modify them. More used to python, so Java takes a bit of learning lol.

I'm assuming somewhere in rpg_scenes.js?
You're looking for Window_TitleCommand.prototype in rpg_window.js which has a method called updatePlacement. Assign a new function to Window_TitleCommand.prototype.updatePlacement to change the X and Y coordinates. I dunno about the the party images yet.

Just a side node, Java is the name of a different language. I recommend shortening JavaScript to JS instead to avoid confusion.
You're looking for Window_TitleCommand.prototype in rpg_window.js which has a method called updatePlacement. Assign a new function to Window_TitleCommand.prototype.updatePlacement to change the X and Y coordinates. I dunno about the the party images yet.

Just a side node, Java is the name of a different language. I recommend shortening JavaScript to JS instead to avoid confusion.


Thanks! Is there no way to change/remove the party images in the pause menu?

upload_2018-2-1_18-39-47.png
Simply removing the status window introduces problems. Skill, Equip, Status, and Formation all rely on that window but if those are disabled then it might work.

Assign an empty function to Scene_Menu.prototype.createStatusWindow and then assign a new function to Scene_Menu.prototype.start. Copy and paste the original function but delete the this._statusWindow.refresh() line.
Thanks,

Sorry, but I'm not that well-versed in js. Could you give an example of what that code would look like?

I also posted in the plugin section of the forums to see if there's an easier way to change the menu.
Here's that.
Code:
Scene_Menu.prototype.createStatusWindow = function () {};

Scene_Menu.prototype.start = function () {
    "use strict";

    Scene_MenuBase.prototype.start.call(this);
};
@Clock Out unless I'm mistaken, OP isn't asking for removing the entire status window. What they asked for was:

Is there no way to change/remove the party images in the pause menu?

@Danielcross can you confirm, do you just want to get rid of the faces in the menu? Do you want everything else to move left to fill the empty space?
If not, can you describe more what you want?
Ah, right you are! Here's how to keep it from drawing the actor's images.
Code:
Window_MenuStatus.prototype.drawItemImage = function(index) {
    var actor = $gameParty.members()[index];
    var rect = this.itemRect(index);
    this.changePaintOpacity(actor.isBattleMember());
    // this.drawActorFace(actor, rect.x + 1, rect.y + 1, Window_Base._faceWidth, Window_Base._faceHeight);
    this.changePaintOpacity(true);
};

That only stops them from being drawn so there's a big empty spot.
Thanks guys,

I did want to just remove them from the menu, at least for now. So I think I'm too stupid to figure out your instructions, and through a bit of trial and error, I was able to remove the status and gold windows from the menu. I did this by removing

Code:
 this.addWindow(this._goldWindow);
 
   this.addWindow(this._statusWindow);

from their respective areas. So it may not be the best solution as I believe it still generates those windows, or tries to, but they're not visible.
Instead of that, comment out the entirety of the inside of the Scene_Menu.prototype.createGoldWindow and Scene_Menu.prototype.createStatusWindow functions, while not editing the whole function out (or else you'll get errors :| )

Original thread: https://forums.rpgmakerweb.com/threads/javascript-question.90721/